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.

43 lines
547 B

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