Skip to content

Instantly share code, notes, and snippets.

@trusktr
Last active August 29, 2015 14:02
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 trusktr/e8be89f0dd0a01ed4eca to your computer and use it in GitHub Desktop.
Save trusktr/e8be89f0dd0a01ed4eca to your computer and use it in GitHub Desktop.
Xorg initrc configuration.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# CUSTOM, trusktr
# Enable natural scrolling (i.e. swap scrolling directions)
xinput set-button-map "SynPS/2 Synaptics TouchPad" 1 2 3 5 4 7 6
# TODO: do this in system-wide configuration instead.
# END CUSTOM
# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment