diff options
author | norly <ny-git@enpas.org> | 2012-10-08 18:30:56 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2012-10-08 18:31:57 +0100 |
commit | 0d20dbbfde089b69a3e925d049bb864816c14599 (patch) | |
tree | 312540c8a91c13c1eb8bc0a60bfe2f51218e3af7 /runstatus.sh | |
parent | 433b88cb6dd4cadc08a9a91e4a49382430e4c321 (diff) |
Check if battery/netif present, add fan support
Also change power reading to work on newer kernels.
Diffstat (limited to 'runstatus.sh')
-rwxr-xr-x | runstatus.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/runstatus.sh b/runstatus.sh index 0b73a7b..a7681f7 100755 --- a/runstatus.sh +++ b/runstatus.sh @@ -1,14 +1,16 @@ #!/bin/sh +MAXRESX=1680 + RES=$(xrandr --prop | sed "s/Screen 0:[^,]*, current \(.*\) x \(.*\),.*/\1,\2/g;te;d;:e") RESX=${RES%%,*} RESY=${RES##*,} FONT="-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso8859-1" #FONT="-*-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*" -if [ $((RESX)) -gt 1920 ] +if [ $((RESX)) -gt $((MAXRESX)) ] then - RESX=1920 + RESX=$((MAXRESX)) fi cd ~/sysstatus/ |