commit ae3d6b345dac2b470e571c2e64d3a2034f1792b0 (patch)
parent 5bbd1073e9c02824ece6979eac5f022823da1662
Author: Alex Karle <alex@karle.co>
Date: Tue, 14 Apr 2020 00:00:04 -0400
X11: Launch Window Manager with ssh-agent
On non-OpenBSD systems, we need to launch dwm with ssh-agent ourselves.
This is a super nice feature when ssh'ing around to a lot of machines.
Oh and use --bg-fill. Just fits better on my current monitor
Diffstat:
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/X11/xinitrc b/X11/xinitrc
@@ -2,7 +2,7 @@
setxkbmap -option caps:ctrl_modifier
slstatus &
-[ -e ~/background.png ] && feh --bg-center ~/background.png
+[ -e ~/background.png ] && feh --bg-fill ~/background.png
if [ $(uname) = "OpenBSD" ]; then
# On my thinkpad, I seem to need these xinput calls to get
@@ -18,6 +18,9 @@ if [ $(uname) = "OpenBSD" ]; then
# Prefer UTF-8 in X for unicode character support
export LC_CTYPE="en_US.UTF-8"
-fi
-exec dwm
+ # xenodm handles ssh-agent for us
+ exec dwm
+else
+ ssh-agent dwm
+fi