Dotfiles, utilities, and other apparatus.
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
1.2 KiB

  1. #!/bin/bash
  2. # This can go in /usr/local/bin and, at least on Ubuntu or Debian systems,
  3. # should be pointed at by /usr/share/xsessions/xmonad.desktop. Lately I have
  4. # just been keeping it in ~/bin.
  5. # Set up $PATH, etc. - also invoked by regular bash/zsh:
  6. if [ -f "$HOME/.sh_common" ]; then
  7. # following directive just silences a warning:
  8. # shellcheck source=/dev/null
  9. . "$HOME/.sh_common"
  10. fi
  11. # gnome-settings-daemon &
  12. # .screenlayout/screenparity.sh
  13. # Load resources
  14. xrdb -merge .Xresources
  15. # This may now be handled by /etc/defaults/keyboard:
  16. # xmodmap ~/.xmodmap
  17. xsettingsd &
  18. # Start dunst for notifications:
  19. dunst &
  20. # Set up an icon tray
  21. trayer --SetDockType true --SetPartialStrut true --edge bottom --align right --widthtype percent --width 10 --height 25 --alpha 10 --tint "0x00ff00" &
  22. # Set the background color
  23. xsetroot -solid midnightblue
  24. eval "$(ssh-agent)"
  25. # Fire up apps
  26. volumeicon &
  27. redshift-gtk &
  28. clipit &
  29. gpg-agent --daemon
  30. xautolock -time 15 -locker "phoonlock" -notify 15 -notifier "notify-send -t 5000 'Locking in 15 seconds'" &
  31. # --sm-disable is apparently "session manager disable".
  32. # I don't really know what that means in practice.
  33. if [ -x /usr/bin/nm-applet ]; then
  34. nm-applet --sm-disable &
  35. fi
  36. # compton -b
  37. exec xmonad-session