diff options
author | Roger Gonzalez <roger@rogs.me> | 2020-08-24 11:27:01 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2020-08-24 11:27:01 -0300 |
commit | 694384e0e7165b358cd0a7b421df83e6ec29f272 (patch) | |
tree | 1e2c50b67514349b3ee0bdc67e24e50f171ace94 /.config/polybar/mullvad_status.sh | |
parent | 76b48e4389f473862ec5f631e64f3c8befd5cd21 (diff) |
Added emojis to polybar, compressed information a bit
Diffstat (limited to '.config/polybar/mullvad_status.sh')
-rwxr-xr-x | .config/polybar/mullvad_status.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.config/polybar/mullvad_status.sh b/.config/polybar/mullvad_status.sh new file mode 100755 index 00000000..fbca326c --- /dev/null +++ b/.config/polybar/mullvad_status.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -euo pipefail +IFS=$'\n\t' + +MULLVAD_STATUS=$(mullvad status) + +if echo $MULLVAD_STATUS | grep -q 'Connected'; then + echo "%{u#75d85a}VPN %{T5}✅%{T-}" + elif echo $MULLVAD_STATUS | grep -q 'Connecting'; then + echo "VPN ..." + else + echo "%{u#f90000}VPN %{T5}🚫%{T-}" +fi |