Some build system cleanup.
[sysstatus.git] / runstatus.sh
index c2b1564772736ae141cf36dda541e9086589274e..0b73a7bee8a631c1080b07ef65186eb323bc2aa8 100755 (executable)
@@ -6,7 +6,12 @@ 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 ]
+then
+       RESX=1920
+fi
+
 cd ~/sysstatus/
 killall sysstatus
-./sysstatus | dzen2  -ta l -fn "$FONT" -bg black -y $((RESY+82)) -h 18 -ta r -expand left -e ""
+./sysstatus | dzen2  -ta l -fn "$FONT" -bg black -w $((RESX)) -y $((RESY+82)) -h 18 -ta r -expand left -e ""
 #./sysstatus | tee /dev/shm/sysstatus-log | dzen2  -ta l -fn "$FONT" -bg black -y $((RESY+82)) -h 18 -ta r -expand left -e ""