fix for dunst update
This commit is contained in:
parent
72095821e9
commit
fd57c4350b
15 changed files with 21 additions and 38 deletions
|
@ -38,7 +38,7 @@
|
||||||
# %n progress value if set without any extra characters
|
# %n progress value if set without any extra characters
|
||||||
# %% Literal %
|
# %% Literal %
|
||||||
# Markup is allowed
|
# Markup is allowed
|
||||||
format = "%s\n%b"
|
format = "<b>%s</b>\n%b"
|
||||||
|
|
||||||
alignment = left
|
alignment = left
|
||||||
show_age_threshold = 60
|
show_age_threshold = 60
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
# Give a battery name (e.g. BAT0) as an argument.
|
# Give a battery name (e.g. BAT0) as an argument.
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>🔋 Battery module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "🔋 Battery module" "🔋: discharging
|
||||||
🔋: discharging
|
|
||||||
🛑: not charging
|
🛑: not charging
|
||||||
♻: stagnant charge
|
♻: stagnant charge
|
||||||
🔌: charging
|
🔌: charging
|
||||||
|
|
|
@ -3,9 +3,8 @@
|
||||||
date '+%Y %b %d (%a) %I:%M%p'
|
date '+%Y %b %d (%a) %I:%M%p'
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) pgrep -x dunst >/dev/null && notify-send "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "$(calcurse -D ~/.config/calcurse -d3)" ;;
|
1) pgrep -x dunst >/dev/null && notify-send "This Month" "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "Appointments" "$(calcurse -D ~/.config/calcurse -d3)" ;;
|
||||||
2) "$TERMINAL" -e calcurse -D ~/.config/calcurse ;;
|
2) "$TERMINAL" -e calcurse -D ~/.config/calcurse ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>📅 Time/date module:</b>
|
3) pgrep -x dunst >/dev/null && 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\`
|
||||||
- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
|
|
||||||
- Middle click opens calcurse if installed" ;;
|
- Middle click opens calcurse if installed" ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) notify-send "<b>🖥 CPU hogs</b>:
|
1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;;
|
||||||
$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;;
|
3) notify-send "🖥 CPU module " "\- Shows CPU temperature.
|
||||||
3) notify-send "<b>🖥 CPU module:</b>
|
|
||||||
- Shows CPU temperature.
|
|
||||||
- Click to show intensive processes.
|
- Click to show intensive processes.
|
||||||
- % is of single core." ;;
|
- % is of single core." ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -10,10 +10,8 @@ icon="$2"
|
||||||
[ -z "$2" ] && icon="$1"
|
[ -z "$2" ] && icon="$1"
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) pgrep -x dunst >/dev/null && notify-send "<b>💽 Disk space:</b>
|
1) pgrep -x dunst >/dev/null && notify-send "💽 Disk space" "$(df -h --output=target,used,size)" ;;
|
||||||
$(df -h --output=target,used,size)" ;;
|
3) pgrep -x dunst >/dev/null && notify-send "💽 Disk module" "\- Shows used hard drive space.
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>💽 Hard drive space remaining:</b>
|
|
||||||
- Shows used hard drive space.
|
|
||||||
- Click to show all disk info." ;;
|
- Click to show all disk info." ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) groff -mom ~/.readme.mom -Tpdf | zathura - ;;
|
1) groff -mom ~/.readme.mom -Tpdf | zathura - ;;
|
||||||
2) i3 restart ;;
|
2) i3 restart ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>❓ Help module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "❓ Help module" "\- Left click to open LARBS guide.
|
||||||
- Left click to open LARBS guide.
|
|
||||||
- Middle click to refresh i3.";;
|
- Middle click to refresh i3.";;
|
||||||
esac; echo "❓"
|
esac; echo "❓"
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e nmtui ;;
|
1) $TERMINAL -e nmtui ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>🌐 Internet module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "🌐 Internet module" "\- Click to connect
|
||||||
- Click for \`nmtui\` for wifi access
|
|
||||||
📡: no wifi connection
|
📡: no wifi connection
|
||||||
📶: wifi connection with quality
|
📶: wifi connection with quality
|
||||||
❎: no ethernet
|
❎: no ethernet
|
||||||
|
|
|
@ -7,11 +7,10 @@
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) "$TERMINAL" -e neomutt ;;
|
1) "$TERMINAL" -e neomutt ;;
|
||||||
2) setsid $HOME/.config/mutt/etc/mailsync.sh >/dev/null & ;;
|
2) setsid $HOME/.config/mutt/etc/mailsync.sh >/dev/null & ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>📬 Mail module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "📬 Mail module" "\- Shows unread mail
|
||||||
- Shows unread mail
|
|
||||||
- Shows 🔃 if syncing mail
|
- Shows 🔃 if syncing mail
|
||||||
- Left click opens neomutt
|
- Left click opens neomutt
|
||||||
- Middle click syncs mail" ;;
|
- Middle click syncs mail" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
echo "$(du -a ~/.mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon 2>/dev/null)"
|
echo "$(du -a ~/.local/share/mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon 2>/dev/null)"
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) notify-send "<b>🧠 Memory hogs:</b>
|
1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
|
||||||
$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
|
3) notify-send "🧠 Memory module" "\- Shows Memory Used/Total.
|
||||||
3) notify-send "<b>🧠 Memory module:</b>
|
|
||||||
- Shows Memory Used/Total.
|
|
||||||
- Click to show memory hogs." ;;
|
- Click to show memory hogs." ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,7 @@ filter() {
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) mpc status | filter && setsid "$TERMINAL" -e ncmpcpp & ;; # right click, pause/unpause
|
1) mpc status | filter && setsid "$TERMINAL" -e ncmpcpp & ;; # right click, pause/unpause
|
||||||
2) mpc toggle | filter ;; # right click, pause/unpause
|
2) mpc toggle | filter ;; # right click, pause/unpause
|
||||||
3) mpc status | filter && pgrep -x dunst >/dev/null && notify-send "<b>🎵 Music module:</b>
|
3) mpc status | filter && pgrep -x dunst >/dev/null && notify-send "🎵 Music module" "\- Shows mpd song playing.
|
||||||
- Shows mpd song playing.
|
|
||||||
- Italic when paused.
|
- Italic when paused.
|
||||||
- Left click opens ncmpcpp.
|
- Left click opens ncmpcpp.
|
||||||
- Middle click pauses.
|
- Middle click pauses.
|
||||||
|
@ -16,4 +15,4 @@ case $BLOCK_BUTTON in
|
||||||
4) mpc prev | filter ;; # scroll up, previous
|
4) mpc prev | filter ;; # scroll up, previous
|
||||||
5) mpc next | filter ;; # scroll down, next
|
5) mpc next | filter ;; # scroll down, next
|
||||||
*) mpc status | filter ;;
|
*) mpc status | filter ;;
|
||||||
esac
|
esac; exit
|
||||||
|
|
|
@ -7,8 +7,7 @@
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid "$TERMINAL" -e newsboat ;;
|
1) setsid "$TERMINAL" -e newsboat ;;
|
||||||
2) setsid newsup >/dev/null & exit ;;
|
2) setsid newsup >/dev/null & exit ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>📰 News module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "📰 News module" "\- Shows unread news items
|
||||||
- Shows unread news items
|
|
||||||
- Shows 🔃 if updating with \`newsup\`
|
- Shows 🔃 if updating with \`newsup\`
|
||||||
- Left click opens newsboat
|
- Left click opens newsboat
|
||||||
- Middle click syncs RSS feeds
|
- Middle click syncs RSS feeds
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e popupgrade ;;
|
1) $TERMINAL -e popupgrade ;;
|
||||||
2) notify-send "$(/usr/bin/pacman -Qu)" ;;
|
2) notify-send "$(/usr/bin/pacman -Qu)" ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>Upgrade module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "Upgrade module" "📦: number of upgradable packages
|
||||||
📦: number of upgradable packages
|
|
||||||
- Left click to upgrade packages
|
- Left click to upgrade packages
|
||||||
- Middle click to show upgradable packages" ;;
|
- Middle click to show upgradable packages" ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -18,8 +18,7 @@ transmission-remote -l | grep % |
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e transmission-remote-cli ;;
|
1) $TERMINAL -e transmission-remote-cli ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>Torrent module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "Torrent module" "🛑: paused
|
||||||
🛑: paused
|
|
||||||
⏳: idle (seeds needed)
|
⏳: idle (seeds needed)
|
||||||
🔼: uploading (unfinished)
|
🔼: uploading (unfinished)
|
||||||
🔽: downloading
|
🔽: downloading
|
||||||
|
|
|
@ -5,8 +5,7 @@ case $BLOCK_BUTTON in
|
||||||
2) pulsemixer --toggle-mute ;;
|
2) pulsemixer --toggle-mute ;;
|
||||||
4) pulsemixer --change-volume +5 ;;
|
4) pulsemixer --change-volume +5 ;;
|
||||||
5) pulsemixer --change-volume -5 ;;
|
5) pulsemixer --change-volume -5 ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>📢 Volume module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
|
||||||
- Shows volume 🔊, 🔇 if muted.
|
|
||||||
- Middle click to mute.
|
- Middle click to mute.
|
||||||
- Scroll to change."
|
- Scroll to change."
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -10,8 +10,7 @@ sed '13q;d' "$HOME/.local/share/weatherreport" | grep -o "m\\(-\\)*[0-9]\\+" | s
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e less -S "$HOME/.local/share/weatherreport" ;;
|
1) $TERMINAL -e less -S "$HOME/.local/share/weatherreport" ;;
|
||||||
2) getforecast && showweather ;;
|
2) getforecast && showweather ;;
|
||||||
3) pgrep -x dunst >/dev/null && notify-send "<b>🌈 Weather module:</b>
|
3) pgrep -x dunst >/dev/null && notify-send "🌈 Weather module" "\- Left click for full forecast.
|
||||||
- Left click for full forecast.
|
|
||||||
- Middle click to update forecast.
|
- Middle click to update forecast.
|
||||||
☔: Chance of rain/snow
|
☔: Chance of rain/snow
|
||||||
❄: Daily low
|
❄: Daily low
|
||||||
|
|
Loading…
Reference in a new issue