dotfiles/xinitrc/.xinitrc

49 lines
1,017 B
Text
Raw Permalink Normal View History

2018-06-14 16:26:08 +02:00
#!/bin/sh
#xrandr --setprovideroutputsource modesetting NVIDIA-0
#xrandr --auto
2018-06-14 16:26:08 +02:00
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
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
2020-02-03 11:13:15 +01:00
# maps caps lock to esc
setxkbmap -option caps:escape
2018-06-14 16:26:08 +02:00
# Enable tap-to-click
2021-07-04 14:21:36 +02:00
xinput set-prop 'DELL097D:00 04F3:311C Touchpad' 'libinput Tapping Enabled' 1
2018-06-14 16:26:08 +02:00
2018-07-02 14:31:09 +02:00
# Enable Drag & Drag Lock
2021-07-04 14:21:36 +02:00
xinput set-prop 'DELL097D:00 04F3:311C Touchpad' 'libinput Tapping Drag Enabled' 1
xinput set-prop 'DELL097D:00 04F3:311C Touchpad' 'libinput Tapping Drag Lock Enabled' 1
2018-06-14 16:26:08 +02:00
exec i3