From d97623535393fdbe39bc062bb8de457203d81bfb Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 5 Aug 2022 12:13:22 -0500 Subject: [PATCH] attempt to fix WM startup --- home/executable_dot_xinitrc | 6 ------ home/executable_dot_xprofile | 5 +++-- home/private_dot_config/autorandr/executable_postswitch | 5 +++++ 3 files changed, 8 insertions(+), 8 deletions(-) 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