some vim stuff and x, i3 gpg
[dotfiles.git] / i3 / bar
diff --git a/i3/bar b/i3/bar
index cdebaf8..fe1c8d0 100755 (executable)
--- a/i3/bar
+++ b/i3/bar
@@ -1,29 +1,6 @@
 #!/bin/bash
-function net {
-       grep -q "$1" /run/network/ifstate && echo "$2 <$(iwconfig "$1" 2>/dev/null | grep -Po "(?<=ESSID:\").*(?=\")")> | "
-}
-
-function volume {
-       volume=$(amixer | grep -A4 Master | grep -o "[0-9]\{1,3\}%\|\[off\]")
-       echo -ne "♬: $volume | "
-}
-
-function temp {
-       temp=$(sensors|grep temp1|head -1|awk '{print $2}')
-       echo -ne "⚠: $temp | "
-}
-
-function battery {
-       pa="/sys/class/power_supply/BAT0"
-       power=$(echo "$(cat $pa/charge_now)*100/$(cat $pa/charge_full)" | bc)
-       charge=""
-       if [ "$(cat $pa/status)" = "Charging" ]; then
-               charge="(C)"
-       fi
-       echo -ne "⚡: $power%$charge | "
-}
-
-while [ 1 ]; do
-       echo "$(volume)$(net wlan0 W)$(net eth0 E)$(net usb0 U)$(temp)$(battery)$(date +%y-%m-%d\ %H:%M)"
-       sleep 5
+while true;
+do
+       date
+       sleep 1
 done