From f0e668c4142628b5afabe10f24dfae656a96118d Mon Sep 17 00:00:00 2001 From: xyz Date: Tue, 4 Jan 2022 16:07:29 -0800 Subject: always vpn --- home/xyz/.local/bin/sbar | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'home/xyz/.local/bin/sbar') diff --git a/home/xyz/.local/bin/sbar b/home/xyz/.local/bin/sbar index 52aa1b64..5beeaf16 100755 --- a/home/xyz/.local/bin/sbar +++ b/home/xyz/.local/bin/sbar @@ -28,9 +28,9 @@ update_net () { net="$(bool < /sys/class/net/wlp6s0/operstate)" } -update_vpn () { - vpn="$(mullvad status | awk '{print $3}' | bool)" -} +#update_vpn () { +# vpn="$(mullvad status | awk '{print $3}' | bool)" +#} update_vol () { # $(NF-1) for both alsa and pulseaudio @@ -56,10 +56,10 @@ update_bat () { # modules that don't update on their own need to be run at the start for getting their initial value update_vol update_mic -update_vpn +#update_vpn display () { - xsetroot -name "$(echo "$time | N $net V $vpn | M $vol C $mic | $cap | $bat")" + xsetroot -name "$(echo "$time | N $net | M $vol C $mic | $cap | $bat")" } # SIGNALLING @@ -69,7 +69,7 @@ trap "update_vol;display" "RTMIN+1" # xev can't read my toggle internet keyboard key, don't know what key to use in sxhkd to send signal #trap "update_net;display" "RTMIN+2" trap "update_cap;display" "RTMIN+3" -trap "update_vpn;display" "RTMIN+4" +#trap "update_vpn;display" "RTMIN+4" # to update it from external commands ## kill -m "$(cat "$XDG_CACHE_HOME/pidofbar")" # where m = 34 + n -- cgit v1.2.3-70-g09d2