mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Fix for dunst markup
This commit is contained in:
parent
ad0f1b7e05
commit
c1dc0918c5
BIN
.config/wall.png
BIN
.config/wall.png
Binary file not shown.
|
Before Width: | Height: | Size: 785 KiB After Width: | Height: | Size: 2.5 MiB |
@ -4,8 +4,8 @@
|
||||
battery="$(acpi -i)"
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) pgrep -x dunst >/dev/null && notify-send "${battery}";;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "<b>🔋 Battery module:</b>
|
||||
1) pgrep -x dunst >/dev/null && notify-send " " "${battery}";;
|
||||
3) pgrep -x dunst >/dev/null && notify-send " " "<b>🔋 Battery module:</b>
|
||||
🔋: discharging
|
||||
🛑: not charging
|
||||
♻: stagnant charge
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
#date '+%Y %b %d (%a) %I:%M%p'
|
||||
date '+%I:%M%p'
|
||||
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 " " "$(cal --color=always | sed "s/..7m/<b><span color=\"red\">/;s/..27m/<\/span><\/b>/")" && notify-send "$(calcurse -D ~/.config/calcurse -d3)" ;;
|
||||
2) "$TERMINAL" -e calcurse -D ~/.config/calcurse ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "<b>📅 Time/date module:</b>
|
||||
- Left click to show upcoming appointments for the next three days via \`calcurse -d3\` and show the month via \`cal\`
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) notify-send "<b>🖥 CPU hogs</b>:
|
||||
1) notify-send " " "<b>🖥 CPU hogs</b>:
|
||||
$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;;
|
||||
3) notify-send "<b>🖥 CPU module:</b>
|
||||
3) notify-send " " "<b>🖥 CPU module:</b>
|
||||
- Shows CPU temperature.
|
||||
- Click to show intensive processes.
|
||||
- % is of single core." ;;
|
||||
|
||||
@ -10,9 +10,9 @@ icon="$2"
|
||||
[ -z "$2" ] && icon="$1"
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) pgrep -x dunst >/dev/null && notify-send "<b>💽 Disk space:</b>
|
||||
1) pgrep -x dunst >/dev/null && notify-send " " "<b>💽 Disk space:</b>
|
||||
$(df -h --output=target,used,size)" ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "<b>💽 Hard drive space remaining:</b>
|
||||
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." ;;
|
||||
esac
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
case $BLOCK_BUTTON in
|
||||
1) groff -mom ~/.readme.mom -Tpdf | zathura - ;;
|
||||
2) i3 restart ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "<b>❓ Help module:</b>
|
||||
3) pgrep -x dunst >/dev/null && notify-send " " "<b>❓ Help module:</b>
|
||||
- Left click to open LARBS guide.
|
||||
- Middle click to refresh i3.";;
|
||||
esac; echo "❓"
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e nmtui ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "<b>🌐 Internet module:</b>
|
||||
3) pgrep -x dunst >/dev/null && notify-send " " "<b>🌐 Internet module:</b>
|
||||
- Click for \`nmtui\` for wifi access
|
||||
📡: no wifi connection
|
||||
📶: wifi connection with quality
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
case $BLOCK_BUTTON in
|
||||
1) "$TERMINAL" -e neomutt ;;
|
||||
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 " " "<b>📬 Mail module:</b>
|
||||
- Shows unread mail
|
||||
- Shows 🔃 if syncing mail
|
||||
- Left click opens neomutt
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) notify-send "<b>🧠 Memory hogs:</b>
|
||||
1) notify-send " " "<b>🧠 Memory hogs:</b>
|
||||
$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
|
||||
3) notify-send "<b>🧠 Memory module:</b>
|
||||
3) notify-send " " "<b>🧠 Memory module:</b>
|
||||
- Shows Memory Used/Total.
|
||||
- Click to show memory hogs." ;;
|
||||
esac
|
||||
|
||||
@ -7,7 +7,7 @@ filter() {
|
||||
case $BLOCK_BUTTON in
|
||||
1) mpc status | filter && setsid "$TERMINAL" -e ncmpcpp & ;; # 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 " " "<b>🎵 Music module:</b>
|
||||
- Shows mpd song playing.
|
||||
- Italic when paused.
|
||||
- Left click opens ncmpcpp.
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
case $BLOCK_BUTTON in
|
||||
1) setsid "$TERMINAL" -e newsboat ;;
|
||||
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 " " "<b>📰 News module:</b>
|
||||
- Shows unread news items
|
||||
- Shows 🔃 if updating with \`newsup\`
|
||||
- Left click opens newsboat
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
1) $TERMINAL -e popupgrade ;;
|
||||
2) notify-send "$(/usr/bin/pacman -Qu)" ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send "<b>Upgrade module:</b>
|
||||
2) notify-send " " "$(/usr/bin/pacman -Qu)" ;;
|
||||
3) pgrep -x dunst >/dev/null && notify-send " " "<b>Upgrade module:</b>
|
||||
📦: number of upgradable packages
|
||||
- Left click to upgrade packages
|
||||
- Middle click to show upgradable packages" ;;
|
||||
|
||||
@ -18,7 +18,7 @@ transmission-remote -l | grep % |
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
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 " " "<b>Torrent module:</b>
|
||||
🛑: paused
|
||||
⏳: idle (seeds needed)
|
||||
🔼: uploading (unfinished)
|
||||
|
||||
@ -6,7 +6,7 @@ case $BLOCK_BUTTON in
|
||||
2) pulsemixer --toggle-mute ;;
|
||||
4) 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 " " "<b>📢 Volume module:</b>
|
||||
- Shows volume 🔊, 🔇 if muted.
|
||||
- Middle click to mute.
|
||||
- Scroll to change."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user