From c8782a4f6aa7b2a2d02989a106e91247590d34bc Mon Sep 17 00:00:00 2001 From: doryan Date: Thu, 13 Mar 2025 21:32:30 +0400 Subject: [PATCH] feat(xidlehook): update xidlehook autostart configuration --- Laptop/bspwm/bspwmrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Laptop/bspwm/bspwmrc b/Laptop/bspwm/bspwmrc index 800b1d5..c3110dc 100755 --- a/Laptop/bspwm/bspwmrc +++ b/Laptop/bspwm/bspwmrc @@ -1,5 +1,7 @@ #!/bin/bash +export PRIMARY_DISPLAY="$(xrandr | awk '/ primary/{print $1}')" + xhost +si:localuser:$USER & xmodmap ~/.Xmodmap @@ -27,7 +29,7 @@ bspc config focused_border_color "#93D4C5" pgrep -x polybar > /dev/null || polybar & pgrep -x sxhkd > /dev/null || sxhkd & -pgrep -x xidlehook > /dev/null || xidlehook --not-when-fullscreen --not-when-audio --timer 300 'betterlockscreen -l' '' --timer 1200 'sudo zzz' '' & +pgrep -x xidlehook > /dev/null || xidlehook --detect-sleep --not-when-fullscreen --not-when-audio --timer 300 'betterlockscreen -l' '' --timer 1200 'sudo zzz' '' & pgrep -x xmousepasteblock > /dev/null || xmousepasteblock & pgrep -x syndaemon > /dev/null || syndaemon -d -i 0.5 &