From c5fc03396b3f17ac56143c5849decb0b038f7f66 Mon Sep 17 00:00:00 2001 From: mitchell Date: Mon, 17 May 2021 10:14:08 -0400 Subject: [PATCH] Lock bspwm on start, allow dropping to shell when auto-starting X --- .config/bspwm/bspwmrc | 1 + .config/fish/functions/start_x_at_login.fish | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/bspwm/bspwmrc b/.config/bspwm/bspwmrc index 3a357b6..5942a10 100755 --- a/.config/bspwm/bspwmrc +++ b/.config/bspwm/bspwmrc @@ -1,5 +1,6 @@ #!/bin/sh +slock & setxkbmap -option altwin:swap_alt_win setxkbmap -option ctrl:swapcaps xset s off -dpms diff --git a/.config/fish/functions/start_x_at_login.fish b/.config/fish/functions/start_x_at_login.fish index 94b20e1..3b77bc6 100644 --- a/.config/fish/functions/start_x_at_login.fish +++ b/.config/fish/functions/start_x_at_login.fish @@ -1,7 +1,7 @@ function start_x_at_login if status is-login if test -z "$DISPLAY" -a "$XDG_VTNR" = 1 - exec startx -- -keeptty + startx -- -keeptty end end end