summaryrefslogtreecommitdiffstats
path: root/.local/bin/chaman
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2022-12-24 16:09:15 -0500
committerAmin Bandali <bandali@gnu.org>2022-12-24 16:09:40 -0500
commit8c1ecff38afe44dc3abbc340ae10e94e83f106ea (patch)
tree1488360cea2193beeb84f6b8143187932b4e8091 /.local/bin/chaman
parent838a2e40a4e359db890b5502c083a161c2aba71b (diff)
downloadconfigs-8c1ecff38afe44dc3abbc340ae10e94e83f106ea.tar.gz
configs-8c1ecff38afe44dc3abbc340ae10e94e83f106ea.tar.xz
configs-8c1ecff38afe44dc3abbc340ae10e94e83f106ea.zip
Differentiate between host-specific startup progs and profiles
Mainly, that startup progs are programs/commands that need to be run when starting a window manager, whereas profiles are generally sourced at login time (including over ssh or tty) and don't necessarily have anything to do with starting window managers.
Diffstat (limited to '.local/bin/chaman')
-rw-r--r--.local/bin/chaman/startup12
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/chaman/startup b/.local/bin/chaman/startup
new file mode 100644
index 0000000..1c68d03
--- /dev/null
+++ b/.local/bin/chaman/startup
@@ -0,0 +1,12 @@
+# -*- mode: sh; sh-shell: sh -*-
+
+if [ $DISPLAY ]; then
+ if [ -x "$(command -v xinput)" ]; then
+ xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Natural Scrolling Enabled' 1
+ xinput set-prop 'DLL07BE:01 06CB:7A13 Touchpad' 'libinput Click Method Enabled' 0 1
+ fi
+ setxkbmap \
+ -layout us,ir \
+ -option ctrl:swap_rwin_rctl \
+ -option grp:shifts_toggle
+fi