Break .xsessionrc into .xsessionrc.{shared,device}
This allows configuration for device specific settings - usually or perhaps exclusively hardware related. Supporting disabling laptop touchscreen, increasing laptop cursor speed, reversing the scroll direction of the laptop mouse.
This commit is contained in:
parent
61b40b3012
commit
14972986e3
4 changed files with 37 additions and 26 deletions
5
configs/desktop/x_server/.xsessionrc.device
Normal file
5
configs/desktop/x_server/.xsessionrc.device
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# setup OSX style scrolling for desktop
|
||||||
|
xinput --set-prop 'PixArt Lenovo USB Optical Mouse' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
|
||||||
|
# increase mouse speed
|
||||||
|
xinput --set-prop 'PixArt Lenovo USB Optical Mouse' 'libinput Accel Speed' 1
|
8
configs/laptop/x_server/.xsessionrc.device
Normal file
8
configs/laptop/x_server/.xsessionrc.device
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# setup OSX style scrolling for laptop
|
||||||
|
xinput --set-prop 'DLL07BF:01 06CB:7A13 Touchpad' 'libinput Natural Scrolling Enabled' 1
|
||||||
|
|
||||||
|
# increase cursor speed
|
||||||
|
xinput --set-prop 'DLL07BF:01 06CB:7A13 Touchpad' 'libinput Accel Speed' 1
|
||||||
|
|
||||||
|
# disable touchscreen on laptop
|
||||||
|
xinput disable 'ELAN Touchscreen'
|
|
@ -1,28 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
source ~/.profile
|
source ~/.xsessionrc.shared
|
||||||
|
source ~/.xsessionrc.device # desktop, laptop, cloudtop
|
||||||
export DESKTOP_SESSION=cinnamon # gnome for trusty.
|
|
||||||
|
|
||||||
# NOTE: This may break your compose key.
|
|
||||||
# See http://g/i3-users/YBexXGbik7E for more details.
|
|
||||||
export GTK_IM_MODULE=xim
|
|
||||||
|
|
||||||
# Desktop background color.
|
|
||||||
xsetroot -solid "#333333"
|
|
||||||
|
|
||||||
# start the urxvt daemon
|
|
||||||
urxvtd -q -f -o
|
|
||||||
|
|
||||||
# set kbds
|
|
||||||
xmodmap -e 'remove Lock = Caps_Lock'
|
|
||||||
xmodmap -e 'keysym Caps_Lock = Escape'
|
|
||||||
|
|
||||||
# set key repeat preferences
|
|
||||||
xset r rate 250 60
|
|
||||||
|
|
||||||
# setup OSX style scrolling for gLinux Mouse
|
|
||||||
xinput --set-prop 'PixArt Lenovo USB Optical Mouse' 'libinput Natural Scrolling Enabled' 1
|
|
||||||
|
|
||||||
# increase mouse speed
|
|
||||||
xinput --set-prop 'PixArt Lenovo USB Optical Mouse' 'libinput Accel Speed' 1
|
|
||||||
|
|
22
configs/shared/x_server/.xsessionrc.shared
Normal file
22
configs/shared/x_server/.xsessionrc.shared
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
source ~/.profile
|
||||||
|
|
||||||
|
export DESKTOP_SESSION=cinnamon # gnome for trusty.
|
||||||
|
|
||||||
|
# NOTE: This may break your compose key.
|
||||||
|
# See http://g/i3-users/YBexXGbik7E for more details.
|
||||||
|
export GTK_IM_MODULE=xim
|
||||||
|
|
||||||
|
# Desktop background color.
|
||||||
|
xsetroot -solid "#333333"
|
||||||
|
|
||||||
|
# start the urxvt daemon
|
||||||
|
urxvtd -q -f -o
|
||||||
|
|
||||||
|
# set kbds
|
||||||
|
xmodmap -e 'remove Lock = Caps_Lock'
|
||||||
|
xmodmap -e 'keysym Caps_Lock = Escape'
|
||||||
|
|
||||||
|
# set key repeat preferences
|
||||||
|
xset r rate 250 60
|
Loading…
Reference in a new issue