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.

48 lines
718 B

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. # Open menu
  17. selection=$(printf '%s' "$items" | $DMENU)
  18. case $selection in
  19. dwm)
  20. touch /home/yigit/.cache/dwm-restart
  21. logout
  22. ;;
  23. dwmblocks)
  24. kill -9 $(pidof dwmblocks)
  25. dwmblocks > /tmp/dwmblocks.out 2> /tmp/dwmblocks.err &
  26. ;;
  27. mconnect)
  28. kill -9 $(pidof mconnect)
  29. (cd ~/Downloads/mconnect; mconnect -d > /tmp/mconnect 2> /tmp/mconnect.err &)
  30. ;;
  31. clipmenud)
  32. pkill -f clipmenud
  33. clipmenud > /tmp/clipmenud.out 2> /tmp/clipmenud.err &
  34. ;;
  35. dunst)
  36. kill -9 $(pidof dunst)
  37. dunst &
  38. ;;
  39. esac
  40. exit