From 694384e0e7165b358cd0a7b421df83e6ec29f272 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Mon, 24 Aug 2020 11:27:01 -0300 Subject: Added emojis to polybar, compressed information a bit --- .config/polybar/mullvad_status.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 .config/polybar/mullvad_status.sh (limited to '.config/polybar/mullvad_status.sh') 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 -- cgit v1.2.3