- #!/bin/bash
-
- # This can go in /usr/local/bin and, at least on Ubuntu or Debian systems,
- # should be pointed at by /usr/share/xsessions/xmonad.desktop. Lately I have
- # just been keeping it in ~/bin.
-
- # This might not work correctly on anything besides Ubuntu 15.10.
-
- # Unity is hot garbage
- # unity-settings-daemon &
- gnome-settings-daemon &
-
- # Load resources
- xrdb -merge .Xresources
- xmodmap ~/.xmodmap
-
- # Set up an icon tray
- trayer --SetDockType true --SetPartialStrut true --edge bottom --align right --widthtype percent --width 10 --height 18 --alpha 10 --tint "0x00ff00" &
-
- # Set the background color
- xsetroot -solid midnightblue
-
- # Fire up apps
- volumeicon &
- redshift-gtk &
- gpg-agent --daemon
- # xscreensaver -no-splash &
-
- # --sm-disable is apparently "session manager disable".
- # I don't really know what that means in practice.
- if [ -x /usr/bin/nm-applet ] ; then
- nm-applet --sm-disable &
- fi
-
- # You might want this on a laptop, or at any rate there was a time when you
- # might have.
- if [ -x /usr/bin/gnome-power-manager ] ; then
- sleep 3
- gnome-power-manager &
- fi
-
- exec xmonad-session
|