diff options
author | Ryan Kavanagh <rak@rak.ac> | 2021-12-13 17:12:49 -0500 |
---|---|---|
committer | Ryan Kavanagh <rak@rak.ac> | 2021-12-13 17:12:49 -0500 |
commit | 3e394ad7b407f03ce447cc6c72d1279e114d9726 (patch) | |
tree | e30a966dd2b73b8b2116442aa74820a8af264d81 /dot_dzen/executable_temperature.sh | |
parent | urxvt cleanup (diff) |
dzen scripts are executable
Diffstat (limited to 'dot_dzen/executable_temperature.sh')
-rwxr-xr-x | dot_dzen/executable_temperature.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dot_dzen/executable_temperature.sh b/dot_dzen/executable_temperature.sh new file mode 100755 index 0000000..4badbc5 --- /dev/null +++ b/dot_dzen/executable_temperature.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# original script by lyon8 <lyon8@gmx.net> +# modifications from original by <sean.escriva@gmail.com> +# show your laptop battery state in dzen +# Taken from http://www.webframp.com/2008/08/17/switchdzen/ and modified by Ryan +# Kavanagh <ryanakca@kubuntu.org> to add support for a missing battery and use +# /sys instead of /proc/acpi/battery + +BG='#171717' # dzen backgrounad +FG='#11DD11' # dzen foreground +W=130 # width of the dzen bar +GW=50 # width of the gauge +GFG='#33ccff' # color of the gauge +GH=7 # height of the gauge +GBG='#333' # color of gauge background +X=922 # x position +Y=0 # y position +FN='snap' # font +TIME_INT=10 + +TEMPERATURE=`acpi -t` + +while true; do + echo $TEMPERATURE | sed -e 's/.*ok, //g' && sleep $TIME_INT +done | dzen2 -ta c -tw $W -y $Y -x $X -fg $FG -bg $BG #-fn $FN |