about summary refs log tree commit diff stats
path: root/openbsd/conf/skel/.xsession
diff options
context:
space:
mode:
authorpunk <punk@libernaut>2021-04-21 15:26:19 +0100
committerpunk <punk@libernaut>2021-04-21 15:26:19 +0100
commiteac48b5a8d709135a95abcc2243b369095f074f4 (patch)
treea2e34d995cef5ac8068ec7047e93b1125c80d175 /openbsd/conf/skel/.xsession
parent3bd43803fc8cb7a39a87394cb7c491ddc151e06b (diff)
parent452477a2635d85ecf772a5242ce97d9479503bb3 (diff)
downloaddoc-eac48b5a8d709135a95abcc2243b369095f074f4.tar.gz
release 0.7.0
Diffstat (limited to 'openbsd/conf/skel/.xsession')
-rw-r--r--openbsd/conf/skel/.xsession33
1 files changed, 33 insertions, 0 deletions
diff --git a/openbsd/conf/skel/.xsession b/openbsd/conf/skel/.xsession
new file mode 100644
index 0000000..43fb48b
--- /dev/null
+++ b/openbsd/conf/skel/.xsession
@@ -0,0 +1,33 @@
+# use UTF-8 everywhere
+export LANG=en_US.UTF-8
+
+# specify location of kshrc
+export ENV=$HOME/.kshrc
+
+# load Xresources file
+xrdb -merge $HOME/.Xresources
+
+# set your background color
+xsetroot -solid dimgray
+
+# xidle will lock your display after a period of inactivity
+xidle &
+
+# sadly, xclock has a bug where the font selection is ignored when UTF-8
+# is enabled, so we unset LANG here.
+#LANG= xclock -strftime "%a %e %b %Y %H:%M" &
+
+# disable system beep
+xset b off
+
+# if you have a ThinkPad, the following lines enable TrackPoint
+# scrolling by dragging with the middle button.
+xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
+xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
+xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
+
+# use caps lock as ctrl key
+setxkbmap -option ctrl:nocaps
+
+# start spectrwm!
+exec spectrwm