From 0d7bccb081ecdbc5dea7e2988fc9819287800cfa Mon Sep 17 00:00:00 2001 From: Mike Vink Date: Sun, 15 Oct 2023 18:55:34 +0000 Subject: fix dwmblocks --- mut/bin/sb-battery | 2 +- mut/bin/sb-clock | 2 +- mut/bin/sb-internet | 2 +- mut/bin/sb-mailbox | 2 +- mut/bin/sb-nettraf | 2 +- mut/bin/sb-news | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'mut/bin') diff --git a/mut/bin/sb-battery b/mut/bin/sb-battery index aeb7413..93cbe08 100755 --- a/mut/bin/sb-battery +++ b/mut/bin/sb-battery @@ -3,7 +3,7 @@ # Prints all batteries, their percentage remaining and an emoji corresponding # to charge status (🔌 for plugged up, 🔋 for discharging on battery, etc.). -case $BUTTON in +case $BLOCK_BUTTON in 3) notify-send "🔋 Battery module" "🔋: discharging 🛑: not charging ♻: stagnant charge diff --git a/mut/bin/sb-clock b/mut/bin/sb-clock index ba9e43d..7649523 100755 --- a/mut/bin/sb-clock +++ b/mut/bin/sb-clock @@ -18,7 +18,7 @@ case "$clock" in "12") icon="🕛" ;; esac -case $BUTTON in +case $BLOCK_BUTTON in 1) notify-send "This Month" "$(cal --color=always | sed "s/..7m//;s|..0m||")" && notify-send "Appointments" "$(calcurse -d3)" ;; 2) setsid -f "$TERMINAL" -e calcurse ;; 3) notify-send "📅 Time/date module" "\- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\` diff --git a/mut/bin/sb-internet b/mut/bin/sb-internet index 225d376..94b7da2 100755 --- a/mut/bin/sb-internet +++ b/mut/bin/sb-internet @@ -4,7 +4,7 @@ # Show 🌐 if connected to ethernet or ❎ if none. # Show 🔒 if a vpn connection is active -case $BUTTON in +case $BLOCK_BUTTON in 1) "$TERMINAL" -e nmtui; pkill -RTMIN+4 dwmblocks ;; 3) notify-send "🌐 Internet module" "\- Click to connect ❌: wifi disabled diff --git a/mut/bin/sb-mailbox b/mut/bin/sb-mailbox index ab1669e..ca77f5c 100755 --- a/mut/bin/sb-mailbox +++ b/mut/bin/sb-mailbox @@ -3,7 +3,7 @@ # Displays number of unread mail and an loading icon if updating. # When clicked, brings up `neomutt`. -case $BUTTON in +case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e neomutt ;; 2) setsid -f mailsync >/dev/null ;; 3) notify-send "📬 Mail module" "\- Shows unread mail diff --git a/mut/bin/sb-nettraf b/mut/bin/sb-nettraf index 06b3c49..178f677 100755 --- a/mut/bin/sb-nettraf +++ b/mut/bin/sb-nettraf @@ -4,7 +4,7 @@ # transmitted (TX) since the previous time this script ran. So if run every # second, gives network traffic per second. -case $BUTTON in +case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e bmon ;; 3) notify-send "🌐 Network traffic module" "🔻: Traffic received 🔺: Traffic transmitted" ;; diff --git a/mut/bin/sb-news b/mut/bin/sb-news index a155c0a..fe701db 100755 --- a/mut/bin/sb-news +++ b/mut/bin/sb-news @@ -3,7 +3,7 @@ # Displays number of unread news items and an loading icon if updating. # When clicked, brings up `newsboat`. -case $BUTTON in +case $BLOCK_BUTTON in 1) setsid "$TERMINAL" -e newsboat ;; 2) setsid -f newsup >/dev/null exit ;; 3) notify-send "📰 News module" "\- Shows unread news items -- cgit v1.2.3