From a7ab7c4b2525eaa6e29accfebeec778dbb4f1c93 Mon Sep 17 00:00:00 2001 From: Penelope Gwen Date: Fri, 21 Mar 2025 14:00:08 -0700 Subject: [PATCH] New backup 2025-03-21 14:00:08 --- de/home/.config/eww/scripts/bar/volume-status | 8 -------- de/home/.config/eww/scripts/bar/vpn-status | 16 ---------------- 2 files changed, 24 deletions(-) delete mode 100755 de/home/.config/eww/scripts/bar/volume-status delete mode 100755 de/home/.config/eww/scripts/bar/vpn-status diff --git a/de/home/.config/eww/scripts/bar/volume-status b/de/home/.config/eww/scripts/bar/volume-status deleted file mode 100755 index dc1857a..0000000 --- a/de/home/.config/eww/scripts/bar/volume-status +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh - -if [ "$(pactl get-sink-mute @DEFAULT_SINK@)" = "Mute: yes" ]; then - echo 0 - exit -else - echo "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | sed 's/[^0-9]//g')" -fi diff --git a/de/home/.config/eww/scripts/bar/vpn-status b/de/home/.config/eww/scripts/bar/vpn-status deleted file mode 100755 index 0d77b97..0000000 --- a/de/home/.config/eww/scripts/bar/vpn-status +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/bash - -nm_active=`nmcli con show --active` -vpn_active='false' - -if [ -z ${1} ];then - if echo "${nm_active}" | grep -q 'vpn' || echo "${nm_active}" | grep -q 'wireguard';then - vpn_active='true' - fi -else - if echo "${nm_active}" | grep -q "${1}";then - vpn_active='true' - fi -fi - -printf '%s' "${vpn_active}"