From 41fa4263c042bcef66918092efcdbb6a991bc84f Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Mon, 13 Dec 2021 16:34:55 -0500 Subject: more renames --- dot_dzen/temperature.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 dot_dzen/temperature.sh (limited to 'dot_dzen/temperature.sh') diff --git a/dot_dzen/temperature.sh b/dot_dzen/temperature.sh new file mode 100755 index 0000000..4badbc5 --- /dev/null +++ b/dot_dzen/temperature.sh @@ -0,0 +1,26 @@ +#!/bin/sh +# +# original script by lyon8 +# modifications from original by +# show your laptop battery state in dzen +# Taken from http://www.webframp.com/2008/08/17/switchdzen/ and modified by Ryan +# Kavanagh 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 -- cgit v1.2.3