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.

41 lines
978 B

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/bash
  2. pkill -f clipmenud
  3. pkill -9 devmon
  4. pkill -f "bash /sbin/clipmenud"
  5. pkill -f "/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh"
  6. pkill -f devmon
  7. cat << EOF > "$XDG_CACHE_HOME/dbus_settings"
  8. export DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS
  9. export DBUS_SESSION_BUS_PID=$DBUS_SESSION_BUS_PID
  10. export DBUS_SESSION_BUS_WINDOWID=$DBUS_SESSION_BUS_WINDOWID
  11. EOF
  12. chmod +x "$XDG_CACHE_HOME/dbus_settings"
  13. rm -rf $XDG_RUNTIME_DIR/day_cache
  14. export XSESSION_PID="$$"
  15. source ~/.config/config.env
  16. pactl upload-sample /usr/share/sounds/freedesktop/stereo/bell.oga x11-bell
  17. pactl load-module module-x11-bell sample=x11-bell display=$DISPLAY
  18. xset b 100
  19. xset dpms 600 600 600
  20. xrdb ~/.config/X11/Xresources &
  21. restarted=0
  22. while true;
  23. do
  24. if [ $restarted = 0 ]; then
  25. restarted=1
  26. else
  27. notify-send -a " Desktop Manager" "Dwm Restarted"
  28. fi
  29. dwm > $XDG_RUNTIME_DIR/dwm.log 2> $XDG_RUNTIME_DIR/dwm.err
  30. sleep 0.5
  31. done