summaryrefslogtreecommitdiff
path: root/runstatus.sh
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2012-10-08 18:30:56 +0100
committernorly <ny-git@enpas.org>2012-10-08 18:31:57 +0100
commit0d20dbbfde089b69a3e925d049bb864816c14599 (patch)
tree312540c8a91c13c1eb8bc0a60bfe2f51218e3af7 /runstatus.sh
parent433b88cb6dd4cadc08a9a91e4a49382430e4c321 (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-xrunstatus.sh6
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/