Skip to content

Instantly share code, notes, and snippets.

@CootCraig
Last active August 29, 2015 14:14
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 CootCraig/e36ae014508538c25f70 to your computer and use it in GitHub Desktop.
Save CootCraig/e36ae014508538c25f70 to your computer and use it in GitHub Desktop.
logitech marble mouse setup
# /usr/local/share/lightdm/ivie2.sh
#!/bin/sh
xrandr --output HDMI3 --mode 1280x960 --pos 1280x0 --rotate normal --output HDMI2 --mode 1280x960 --pos 0x0 --rotate normal --output HDMI1 --off --output DP1 --off --output VGA1 --off
xinput --set-button-map "Logitech USB Trackball" 1 9 3 4 5 6 7 8 2
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 8 1
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 8 8
xinput set-int-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 8 6 7 4 5
#/etc/lightdm/lightdm.conf
session-setup-script=/usr/local/share/lightdm/ivie2.sh
# at work on craigws
# /etc/lightdm/lightdm.conf
...
display-setup-script=/opt/lightdm/triple.sh
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment