From acd2e23913d6d0f574db6c745f3a2620f7a44edf Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 30 Jan 2022 23:42:34 -0500 Subject: [PATCH] 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?). --- .xsession | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 .xsession diff --git a/.xsession b/.xsession new file mode 100755 index 0000000..d689b8d --- /dev/null +++ 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 -- libgit2 1.1.1