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.

42 lines
1.1 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. # This might not work correctly on anything besides Ubuntu 15.10.
  6. # Unity is hot garbage
  7. # unity-settings-daemon &
  8. gnome-settings-daemon &
  9. # Load resources
  10. xrdb -merge .Xresources
  11. xmodmap ~/.xmodmap
  12. # Set up an icon tray
  13. trayer --SetDockType true --SetPartialStrut true --edge bottom --align right --widthtype percent --width 10 --height 18 --alpha 10 --tint "0x00ff00" &
  14. # Set the background color
  15. xsetroot -solid midnightblue
  16. # Fire up apps
  17. volumeicon &
  18. redshift-gtk &
  19. gpg-agent --daemon
  20. # xscreensaver -no-splash &
  21. # --sm-disable is apparently "session manager disable".
  22. # I don't really know what that means in practice.
  23. if [ -x /usr/bin/nm-applet ] ; then
  24. nm-applet --sm-disable &
  25. fi
  26. # You might want this on a laptop, or at any rate there was a time when you
  27. # might have.
  28. if [ -x /usr/bin/gnome-power-manager ] ; then
  29. sleep 3
  30. gnome-power-manager &
  31. fi
  32. exec xmonad-session