summaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
Diffstat (limited to '.config/polybar')
-rw-r--r--.config/polybar/config6
-rwxr-xr-x.config/polybar/mullvad_status.sh13
2 files changed, 3 insertions, 16 deletions
diff --git a/.config/polybar/config b/.config/polybar/config
index 20b633c4..6814a4be 100644
--- a/.config/polybar/config
+++ b/.config/polybar/config
@@ -35,7 +35,7 @@ font-4 = FontAwesome:size=10;0
font-5 = Noto Color Emoji:scale=12;0
modules-left = i3 music
modules-center = xwindow
-modules-right = pulseaudio xkeyboard cpu memory wireless-network mullvad-status battery clock
+modules-right = pulseaudio xkeyboard cpu memory wireless-network protonvpn-status battery clock
[module/i3]
@@ -136,9 +136,9 @@ interval = 1
label = %output%
exec = ~/.config/polybar/music
-[module/mullvad-status]
+[module/protonvpn-status]
type = custom/script
-exec = /home/roger/.config/polybar/mullvad_status.sh
+exec = /home/roger/.config/polybar/protonvpn_status.sh
interval = 1
[module/cpu-temperature]
diff --git a/.config/polybar/mullvad_status.sh b/.config/polybar/mullvad_status.sh
deleted file mode 100755
index fbca326c..00000000
--- a/.config/polybar/mullvad_status.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/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