attempt to fix WM startup

This commit is contained in:
Daylin Morgan 2022-08-05 12:13:22 -05:00
parent 3467301dba
commit d976235353
3 changed files with 8 additions and 8 deletions

View file

@ -36,10 +36,6 @@ fi
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
not_leftwm() {
unclutter --timeout 1 &
}
# $1 is xterm
# $2 is the wm arg passed to startx
# i.e. startx qtile
@ -58,12 +54,10 @@ xmonad)
xmonad
;;
qtile)
not_leftwm
export DESKTOP_SESSION=qtile
exec qtile start
;;
*)
not_leftwm
export DESKTOP_SESSION=qtile
exec qtile start
;;

View file

@ -5,5 +5,6 @@ xinput --map-to-output 'ELAN901C:00 04F3:2C29' eDP-1
xss-lock -- ~/bin/lock &
SKIP_WM_RESET=1
autorandr -c
unclutter --timeout 1 &
SKIP_WM_RESET=1 autorandr -c --default default

View file

@ -1,5 +1,10 @@
#!/usr/bin/env bash
if [[ -n $SKIP_WM_RESET ]]; then
notify-send 'autorandr' '\nmonitor change detected\nskipping WM reset'
exit 0
fi
# WM Agnostic
notify-send 'autorandr' '\nmonitor change detected\nresetting WM'
sleep 3