#!/bin/bash xrdb -merge /etc/X11/xinit/.Xresources xmodmap /etc/X11/xinit/.Xmodmap xrdb -merge "$HOME/.Xresources" xmodmap "$HOME/.Xmodmap" xrandr -o right xinput --set-prop 'HX121A:00 4858:121A' 'Coordinate Transformation Matrix' 0 1 0 -1 0 1 0 0 1 touchpad='ZNT0000:00 14E5:E650 Touchpad' xinput --set-prop "${touchpad}" 'libinput Tapping Enabled' 1 xinput --set-prop "${touchpad}" 'libinput Natural Scrolling Enabled' 1 xinput --set-prop "${touchpad}" 'libinput Disable While Typing Enabled' 0 if [ -d /etc/X11/xinit/xinitrc.d ] ; then for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do [ -x "$f" ] && . "$f" done unset f fi # https://unix.stackexchange.com/questions/613080/are-the-altctlfn-key-combinations-aka-srvrkeys-hardcoded-into-xorg exec systemd-inhibit --what=handle-power-key --who=i3 --why="interactive shutdown" i3