diff options
author | xyz <gky44px1999@gmail.com> | 2022-02-22 00:03:33 -0800 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2022-02-22 00:03:33 -0800 |
commit | 54115bd68afdd6976d07eb7e8440b1f2a93ede74 (patch) | |
tree | 56c85047b95cbadd68560720e117ad2454966f50 /home | |
parent | 6ca0b26af4c02f847f27a58e3f262e792307490c (diff) |
sbar, I use remind so no need for calcurse and update_event
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/sbar | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/home/xyz/.local/bin/sbar b/home/xyz/.local/bin/sbar index ce80ceda..19789091 100755 --- a/home/xyz/.local/bin/sbar +++ b/home/xyz/.local/bin/sbar @@ -32,13 +32,6 @@ update_bat () { bat="$(cat /sys/class/power_supply/BAT1/capacity)%" } -# For calcurse users, refer https://github.com/pystardust/automeet -#update_event () { -# event="$(calcurse -n | sed 1d | \ -# sed -E "s_^ *\[(.*):(.*)\] ([^\t]*)\t?.*_[\1h \2m->\3]_")" -# [ "[]" = "$event" ] && event="" -#} - display () { xsetroot -name "$time | N $net V $vpn | M $vol C $mic | $cap | $bat" } @@ -56,7 +49,7 @@ trap "update_vol;display" "RTMIN+1" trap "update_net;display" "RTMIN+2" trap "update_cap;display" "RTMIN+3" # to update it from external commands -## kill -m "$(cat "$XDG_CACHE_HOME/pidofbar")" +## kill -m $(pidof -x sbar) # where m = 34 + n while :; do @@ -66,7 +59,6 @@ while :; do [ $((sec % 60)) -eq 0 ] && update_net update_cap [ $((sec % 60)) -eq 0 ] && update_bat - #[ $((sec % 300)) -eq 1 ] && update_event # how often the display updates ( 5 seconds ) [ $((sec % 5 )) -eq 0 ] && display sec=$((sec + 1)) |