Skip to content

Instantly share code, notes, and snippets.

@schlueter
Created February 19, 2017 22:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schlueter/e2c203fa485329ba5ff983805c229dce to your computer and use it in GitHub Desktop.
Save schlueter/e2c203fa485329ba5ff983805c229dce to your computer and use it in GitHub Desktop.
My xinitrc
#!/bin/sh
# Set cursor
xsetroot -cursor_name left_ptr &
# Set background
xsetroot -solid black &
feh --bg-center background.png &
# Enable a second monitor if present
xrandr --output eDP1 --auto --output HDMI2 --auto --right-of eDP1 &
# Start a terminal session
terminology --exec 'tmux attach || tmux new' &
# Enable horizontal scroll on track pads
synclient HorizTwoFingerScroll=1 &
# Setup keychain
eval $(gnome-keyring-daemon --start) &
export GNOME_KEYRING_SOCKET GNOME_KEYRING_PID SSH_AUTH_SOCK
# Start dropbox
./.dropbox-dist/dropboxd &
# Start window manager
exec xmonad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment