diff options
author | Case Duckworth | 2024-05-30 12:47:11 -0500 |
---|---|---|
committer | Case Duckworth | 2024-05-30 12:47:11 -0500 |
commit | 22bc1e1879da0d99e5e1d79b10742b8cc9fd0521 (patch) | |
tree | cd813c6d8bfeebe83901b2d749ce97f1231dd547 /xinitrc | |
download | dots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.tar.gz dots-22bc1e1879da0d99e5e1d79b10742b8cc9fd0521.zip |
Initial commit
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 | ||