summaryrefslogtreecommitdiff
path: root/.config/polybar
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2024-05-12 20:05:57 -0300
committerRoger Gonzalez <roger@rogs.me>2024-05-12 20:05:57 -0300
commit2d69d91b8d4ff39694b309266b5a717a998f1411 (patch)
tree9f5beb41f2edcdd623a7f4192957e52abc303bc5 /.config/polybar
parent74330422a0e9ca0bb7592d041e42dcfa931bc417 (diff)
Added new dock and changed Mullvad for ProtonVPN
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