commit acd2e23913d6d0f574db6c745f3a2620f7a44edf (patch)
parent 30f89f49cf0a68454f95b5baa4b7db5f23c51c9d
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 30 Jan 2022 23:42:34 -0500
X11: Add primitive .xsession for xenodm(8)
I know I'm leaving a bit of config behind here (specifically
the "scroll with the red thinkpad nub" wsmouse calls that I found
way back on reddit), but to stay true to my license, this is 100%
clean-room reimplemented.
And hey, I like the color (ok the color is from the OpenBSD website
dark theme... but that's OK to lift, I think?).
Diffstat:
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/.xsession b/.xsession
@@ -0,0 +1,18 @@
+#!/bin/sh
+# .xsession - xenodm(8) user session script
+
+# Most importantly -- make caps a ctrl!
+# see xkeyboard-config(7) for other options!
+setxkbmap -option ctrl:nocaps
+
+# Set the background to something that isn't the default
+# (this color is from www.openbsd.org's dark theme!)
+xsetroot -solid "#1E1F21"
+
+# Source ~/.profile to set up the PATH so terminals like st(1)
+# that don't spawn login shells get the env vars they expect
+# (also for cwm's program launcher to find things)
+. "$HOME/.profile"
+
+# Finally, launch my preferred desktop--currently cwm(1)
+exec cwm