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.

52 lines
768 B

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. logout() {
  8. pkill dwm
  9. }
  10. DMENU='dmenu -z 1900 -x 10 -y 10 -i'
  11. items="dwm
  12. dwmblocks
  13. mconnect
  14. dunst
  15. clipmenud
  16. quark"
  17. # Open menu
  18. selection=$(printf '%s' "$items" | $DMENU)
  19. case $selection in
  20. dwm)
  21. touch /home/yigit/.cache/dwm-restart
  22. logout
  23. ;;
  24. dwmblocks)
  25. kill -9 $(pidof dwmblocks)
  26. dwmblocks > /tmp/dwmblocks.out 2> /tmp/dwmblocks.err &
  27. ;;
  28. mconnect)
  29. kill -9 $(pidof mconnect)
  30. (cd ~/Downloads/mconnect; mconnect -d > /tmp/mconnect 2> /tmp/mconnect.err &)
  31. ;;
  32. clipmenud)
  33. pkill -f clipmenud
  34. clipmenud > /tmp/clipmenud.out 2> /tmp/clipmenud.err &
  35. ;;
  36. dunst)
  37. kill -9 $(pidof dunst)
  38. dunst &
  39. ;;
  40. quark)
  41. sudo systemctl restart quark
  42. ;;
  43. esac
  44. exit