summaryrefslogtreecommitdiffstats
path: root/awesome_bar.sh
diff options
context:
space:
mode:
Diffstat (limited to 'awesome_bar.sh')
-rwxr-xr-xawesome_bar.sh33
1 files changed, 0 insertions, 33 deletions
diff --git a/awesome_bar.sh b/awesome_bar.sh
deleted file mode 100755
index edcd148..0000000
--- a/awesome_bar.sh
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/zsh
-
-SCREEN=0
-
-func_power() {
- if [ -e /proc/acpi/battery/BAT0/info ]; then
- CAP=$(grep full /proc/acpi/battery/BAT0/info | awk '{print $4}')
- REM=$(grep remaining /proc/acpi/battery/BAT0/state | awk '{print $3}')
- STATE=$(($REM * 100 / $CAP))"%"
-
- echo $STATE
- else
- echo "No Battery"
- fi
-}
-
-func_mem() {
- TOT=$(free -m | grep Mem | awk '{print $2}')
- USE=$(free -m | grep buffers/cache | awk '{print $3}')
- MEM=$(($USE * 100 / $TOT))
- echo $MEM
-}
-
-while true; do
- echo $SCREEN widget_tell topbar power text " `func_power` " | awesome-client
- echo $SCREEN widget_tell topbar wlan text " $(ip r | awk '{print $9}' | head -n 1) " | awesome-client
- echo $SCREEN widget_tell topbar clock text " `date +"%x %T"` " | awesome-client
- echo $SCREEN widget_tell topbar hostname text " `hostname` " | awesome-client
-
- sleep 1
-done
-
-# vim: set tw=0 ts=4: