diff --git a/home/executable_dot_xinitrc b/home/executable_dot_xinitrc index e987c23..2c1f251 100644 --- a/home/executable_dot_xinitrc +++ b/home/executable_dot_xinitrc @@ -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 ;; diff --git a/home/executable_dot_xprofile b/home/executable_dot_xprofile index 7ab1b60..7efea29 100644 --- a/home/executable_dot_xprofile +++ b/home/executable_dot_xprofile @@ -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 diff --git a/home/private_dot_config/autorandr/executable_postswitch b/home/private_dot_config/autorandr/executable_postswitch index c97820d..ece69be 100644 --- a/home/private_dot_config/autorandr/executable_postswitch +++ b/home/private_dot_config/autorandr/executable_postswitch @@ -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