summaryrefslogtreecommitdiff
path: root/mut
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-10-15 18:55:34 +0000
committerMike Vink <mike1994vink@gmail.com>2023-10-15 18:55:34 +0000
commit0d7bccb081ecdbc5dea7e2988fc9819287800cfa (patch)
tree52d2fb39160eeea691cb51848cd53da00f67166f /mut
parentf7759d3fe51aec9d621ed610b2c76eb2b5103abf (diff)
fix dwmblocks
Diffstat (limited to 'mut')
-rwxr-xr-xmut/bin/sb-battery2
-rwxr-xr-xmut/bin/sb-clock2
-rwxr-xr-xmut/bin/sb-internet2
-rwxr-xr-xmut/bin/sb-mailbox2
-rwxr-xr-xmut/bin/sb-nettraf2
-rwxr-xr-xmut/bin/sb-news2
m---------mut/dwm0
m---------mut/dwmblocks0
8 files changed, 6 insertions, 6 deletions
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/<b><span color=\"cyan\">/;s|..0m|</span></b>|")" && 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
diff --git a/mut/dwm b/mut/dwm
-Subproject 8aba66977b5f5234e252ce0df0ebc8f205cad20
+Subproject 6cc3722cfb35e478af34debd12a703b0c71e5bb
diff --git a/mut/dwmblocks b/mut/dwmblocks
new file mode 160000
+Subproject 36675e3bbb519a0741477d4e969bb521e5c8bfc