Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.2 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/sh
  2. killprogs() {
  3. pkill -x udisks-glue
  4. pkill -x panel
  5. pkill -x redshift
  6. }
  7. DMENU='dmenu -z 1900 -x 10 -y 10 -i'
  8. items="dwm
  9. dwmblocks
  10. mconnect
  11. dunst
  12. clipmenud
  13. quark
  14. devmon
  15. mpd
  16. mpd-mpris"
  17. # Open menu
  18. selection=$(printf '%s' "$items" | $DMENU)
  19. case $selection in
  20. dwm)
  21. kill -9 $(pidof dwm)
  22. ;;
  23. dwmblocks)
  24. kill -9 $(pidof dwmblocks)
  25. dwmblocks > $XDG_RUNTIME_DIR/dwmblocks.out 2> $XDG_RUNTIME_DIR/dwmblocks.err &
  26. ;;
  27. mconnect)
  28. kill -9 $(pidof mconnect)
  29. (cd ~/Downloads/mconnect; mconnect -d > $XDG_RUNTIME_DIR/mconnect 2> $XDG_RUNTIME_DIR/mconnect.err &)
  30. ;;
  31. clipmenud)
  32. pkill -f clipmenud
  33. clipmenud > $XDG_RUNTIME_DIR/clipmenud.out 2> $XDG_RUNTIME_DIR/clipmenud.err &
  34. ;;
  35. mpd)
  36. kill -9 $(pidof mpd)
  37. mpd &
  38. mpd-mpris &
  39. ;;
  40. mpd-mpris)
  41. kill -9 $(pidof mpd-mpris)
  42. mpd-mpris &
  43. ;;
  44. dunst)
  45. kill -9 $(pidof dunst)
  46. dunst &
  47. ;;
  48. devmon)
  49. pkill -f devmon
  50. ~/.local/bin/devmon --exec-on-drive "/sbin/notify-send '禍 drive mounted' '%l (%f) at %d '" \
  51. --exec-on-remove "/sbin/notify-send '禍 drive removed' '%l (%f) from %d '" \
  52. --exec-on-unmount "/sbin/notify-send '禍 drive unmounted' '%l (%f) from %d '" \
  53. --no-unmount --no-gui &
  54. ;;
  55. quark)
  56. sudo systemctl restart quark
  57. ;;
  58. esac
  59. exit