From 2d69d91b8d4ff39694b309266b5a717a998f1411 Mon Sep 17 00:00:00 2001 From: Roger Gonzalez Date: Sun, 12 May 2024 20:05:57 -0300 Subject: Added new dock and changed Mullvad for ProtonVPN --- .config/polybar/config | 6 +++--- .config/polybar/mullvad_status.sh | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100755 .config/polybar/mullvad_status.sh (limited to '.config/polybar') 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 -- cgit v1.2.3