aboutsummaryrefslogtreecommitdiff
path: root/dwm-status.sh
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-04-14 22:32:43 +0200
committerLukasz Kasprzak <lukasz.kasprzak@pm.me>2026-04-14 22:32:43 +0200
commit83f7fe4b8402bab171d110703a1b1115efbc9b28 (patch)
tree19110702c7d740f6bd8ee4f5d2ebcb97442be237 /dwm-status.sh
parent51d43498b07dc97d795947964534f0903cd05db5 (diff)
downloadbin-83f7fe4b8402bab171d110703a1b1115efbc9b28.tar.gz
bin-83f7fe4b8402bab171d110703a1b1115efbc9b28.zip
cleaned up many scrits and deleted some that were of no use; renamed a lot
Diffstat (limited to 'dwm-status.sh')
-rwxr-xr-xdwm-status.sh31
1 files changed, 0 insertions, 31 deletions
diff --git a/dwm-status.sh b/dwm-status.sh
deleted file mode 100755
index 7674482..0000000
--- a/dwm-status.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-
-while true; do
- datetime="$(date '+%d %a %H:%M')"
-
- # Volume
- if command -v pamixer >/dev/null 2>&1; then
- vol="$(pamixer --get-volume-human 2>/dev/null)"
- elif command -v amixer >/dev/null 2>&1; then
- vol="$(amixer get Master | awk -F'[][]' 'END{print $2}')"
- else
- vol="n/a"
- fi
-
- # Network on/off
- if ping -c1 -W1 8.8.8.8 >/dev/null 2>&1; then
- net="online"
- else
- net="offline"
- fi
-
- # VPN (tun0 / wg0 / proton0 – adjust to match your system)
- if ip link show tun0 >/dev/null 2>&1 || ip link show wg0 >/dev/null 2>&1 || ip link show proton0 >/dev/null 2>&1; then
- vpn="VPN on"
- else
- vpn="VPN off"
- fi
-
- xsetroot -name "VOL $vol | NET $net | $vpn | $datetime "
- sleep 5
-done