attempt to fix WM startup
This commit is contained in:
parent
3467301dba
commit
d976235353
3 changed files with 8 additions and 8 deletions
|
@ -36,10 +36,6 @@ fi
|
||||||
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
||||||
export SSH_AUTH_SOCK
|
export SSH_AUTH_SOCK
|
||||||
|
|
||||||
not_leftwm() {
|
|
||||||
unclutter --timeout 1 &
|
|
||||||
}
|
|
||||||
|
|
||||||
# $1 is xterm
|
# $1 is xterm
|
||||||
# $2 is the wm arg passed to startx
|
# $2 is the wm arg passed to startx
|
||||||
# i.e. startx qtile
|
# i.e. startx qtile
|
||||||
|
@ -58,12 +54,10 @@ xmonad)
|
||||||
xmonad
|
xmonad
|
||||||
;;
|
;;
|
||||||
qtile)
|
qtile)
|
||||||
not_leftwm
|
|
||||||
export DESKTOP_SESSION=qtile
|
export DESKTOP_SESSION=qtile
|
||||||
exec qtile start
|
exec qtile start
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
not_leftwm
|
|
||||||
export DESKTOP_SESSION=qtile
|
export DESKTOP_SESSION=qtile
|
||||||
exec qtile start
|
exec qtile start
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -5,5 +5,6 @@ xinput --map-to-output 'ELAN901C:00 04F3:2C29' eDP-1
|
||||||
|
|
||||||
xss-lock -- ~/bin/lock &
|
xss-lock -- ~/bin/lock &
|
||||||
|
|
||||||
SKIP_WM_RESET=1
|
unclutter --timeout 1 &
|
||||||
autorandr -c
|
|
||||||
|
SKIP_WM_RESET=1 autorandr -c --default default
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
if [[ -n $SKIP_WM_RESET ]]; then
|
||||||
|
notify-send 'autorandr' '\nmonitor change detected\nskipping WM reset'
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# WM Agnostic
|
# WM Agnostic
|
||||||
notify-send 'autorandr' '\nmonitor change detected\nresetting WM'
|
notify-send 'autorandr' '\nmonitor change detected\nresetting WM'
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
Loading…
Reference in a new issue