diff options
Diffstat (limited to 'xinitrc')
-rw-r--r-- | xinitrc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/xinitrc b/xinitrc new file mode 100644 index 0000000..508257c --- /dev/null +++ b/xinitrc | |||
@@ -0,0 +1,33 @@ | |||
1 | # Set up X.org | ||
2 | xrdb ~/.xresources | ||
3 | xmodmap ~/.xmodmap | ||
4 | #xsetroot -cursor_name left_ptr | ||
5 | xhost +SI:localhost:$USER | ||
6 | |||
7 | # https://wiki.archlinux.org/title/Libinput and libinput(4) | ||
8 | touchpad_set(){ | ||
9 | # get 9 from xinput list, then run xinput list-props 9 | ||
10 | (sleep 2 && xinput set-prop 9 "$@") & | ||
11 | } | ||
12 | touchpad_set "libinput Natural Scrolling Enabled" 1 | ||
13 | touchpad_set "libinput Horizontal Scroll Enabled" 1 | ||
14 | touchpad_set "libinput Tapping Enabled" 1 | ||
15 | touchpad_set "libinput Tapping Drag Enabled" 1 | ||
16 | touchpad_set "libinput Tapping Drag Lock Enabled" 1 | ||
17 | |||
18 | # Environment variables | ||
19 | export GTK_OVERLAY_SCROLLING=0 | ||
20 | |||
21 | # Autostart | ||
22 | eval $(dbus-launch --sh-syntax --exit-with-x11) | ||
23 | /usr/libexec/pipewire-launcher & | ||
24 | brightnessctl set 40% | ||
25 | if test -x ~/.fehbg | ||
26 | then ~/.fehbg | ||
27 | else xsetroot -grey | ||
28 | fi | ||
29 | |||
30 | keepassxc & | ||
31 | |||
32 | # WM | ||
33 | exec dbus-run-session i3 | ||