commit b4ca44433abf5aafd04677d72391ca782c95487f
parent 9efe011e6e5fa487d7101b89c6286636bf2da102
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date: Fri, 24 Oct 2025 21:22:27 +0200
dwmblock scripts update
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/dwmblock-internet b/scripts/dwmblock-internet
@@ -3,7 +3,6 @@
# Show wifi 📶 and percent strength or 📡 if none.
# Show 🌐 if connected to ethernet or ❎ if none.
# Show 🔒 if a vpn connection is active
-set -x
# Interfaces:
# (list with `nmcli --get-values GENERAL.DEVICE,GENERAL.TYPE device show`)
wired="enp0s31f6 eth0"
diff --git a/scripts/dwmblock-tmuxlist b/scripts/dwmblock-tmuxlist
@@ -3,8 +3,8 @@ case $BUTTON in
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-n_sessions="$(tmux list-sessions | wc -l)"
-attached="$(tmux list-sessions | grep '(attached)')"
+n_sessions="$(tmux list-sessions 2>/dev/null | wc -l)"
+attached="$(tmux list-sessions 2>/dev/null | grep '(attached)')"
if [ "$n_sessions" -gt 0 ] && [ -z "$attached" ]; then
printf " %s" "$n_sessions"
fi