2020-02-08 23:43:37 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-04-13 05:38:59 +00:00
|
|
|
# The clickable help menu. Middle click to restart wm.
|
|
|
|
|
|
|
|
# If dwm is running, use dwm's readme and restart.
|
2020-06-01 19:29:57 +00:00
|
|
|
pgrep -f "\sdwm$" &&
|
2020-04-13 05:38:59 +00:00
|
|
|
READMEFILE=/usr/local/share/dwm/larbs.mom
|
|
|
|
restartwm() { pkill -HUP dwm ;} ||
|
|
|
|
restartwm() { i3 restart ;}
|
|
|
|
|
2019-11-23 21:23:24 +00:00
|
|
|
case $BLOCK_BUTTON in
|
2020-05-07 21:31:42 +00:00
|
|
|
1) groff -mom "${READMEFILE:-${XDG_DATA_HOME:-$HOME/.local/share}/larbs/readme.mom}" -Tpdf | zathura - ;;
|
|
|
|
2) restartwm ;;
|
|
|
|
3) notify-send "❓ Help module" "\- Left click to open LARBS guide.
|
|
|
|
- Middle click to refresh window manager." ;;
|
|
|
|
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
2019-11-23 21:23:24 +00:00
|
|
|
esac; echo "❓"
|