scripts

scripts to make my pc work
Index Commits Files Refs
statusbar/sb-help-icon (568B)
   1 #!/bin/sh
   2 
   3 # The clickable help menu. Middle click to restart wm.
   4 
   5 # If dwm is running, use dwm's readme and restart.
   6 pidof dwm >/dev/null &&
   7     READMEFILE=/usr/local/share/dwm/larbs.mom
   8     restartwm() { pkill -HUP dwm ;} ||
   9         restartwm() { i3 restart ;}
  10 
  11 case $BLOCK_BUTTON in
  12     1) groff -mom "${READMEFILE:-${XDG_DATA_HOME:-$HOME/.local/share}/larbs/readme.mom}" -Tpdf | zathura - ;;
  13     2) restartwm ;;
  14     3) notify-send "❓ Help module" "\- Left click to open LARBS guide.
  15 - Middle click to refresh window manager." ;;
  16     6) "$TERMINAL" -e "$EDITOR" "$0" ;;
  17 esac; echo "❓"