mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Travis, use makefile
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
language: bash
|
language: bash
|
||||||
|
sudo: required
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- bash neofetch
|
- make install
|
||||||
|
- bash neofetch --ascii
|
||||||
|
2
neofetch
2
neofetch
@@ -1282,7 +1282,7 @@ getresolution () {
|
|||||||
case "$refresh_rate" in
|
case "$refresh_rate" in
|
||||||
"on") resolution=$(xrandr --nograb --current | awk 'match($0,/[0-0]{2,3}.[0-9]{2}\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}') ;;
|
"on") resolution=$(xrandr --nograb --current | awk 'match($0,/[0-0]{2,3}.[0-9]{2}\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}') ;;
|
||||||
"off") resolution=$(xrandr --nograb --current | awk '/*/ {printf $1 ", "}') ;;
|
"off") resolution=$(xrandr --nograb --current | awk '/*/ {printf $1 ", "}') ;;
|
||||||
esac
|
esac
|
||||||
resolution=${resolution//\*}
|
resolution=${resolution//\*}
|
||||||
|
|
||||||
elif type -p xdpyinfo >/dev/null 2>&1; then
|
elif type -p xdpyinfo >/dev/null 2>&1; then
|
||||||
|
Reference in New Issue
Block a user