From ae3d6b345dac2b470e571c2e64d3a2034f1792b0 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 14 Apr 2020 00:00:04 -0400 Subject: [PATCH] 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 --- X11/xinitrc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/X11/xinitrc b/X11/xinitrc index 7ac3b77..4e4d80c 100644 --- 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 -- libgit2 0.28.4