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.

56 lines
1.4 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. xsetroot -mod 15 7 -fg gray -bg darkgray
  25. eval "$(ssh-agent)"
  26. # Fire up apps
  27. volumeicon &
  28. pasystray &
  29. diodon &
  30. gpg-agent --daemon
  31. xautolock -time 15 -locker "phoonlock" -notify 15 -notifier "notify-send -t 5000 'Locking in 15 seconds'" &
  32. # redshift - coords here prevent it trying to use geoclue:
  33. redshift-gtk -l 40.015:-105.270556 &
  34. # --sm-disable is apparently "session manager disable".
  35. # I don't really know what that means in practice.
  36. if [ -x /usr/bin/nm-applet ]; then
  37. nm-applet --sm-disable &
  38. fi
  39. # compton -b
  40. exec xmonad-session