From b04d42c0ae0ff9f30da4c4eaa74aa67725cd78be Mon Sep 17 00:00:00 2001 From: doryan Date: Thu, 13 Mar 2025 21:32:03 +0400 Subject: [PATCH] feat(xidlehook): add display variable for xidlehook, update window_gap, remove redundant arguments for feh execution and fix pgrep xmousepaste execution command --- PC/bspwm/bspwmrc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/PC/bspwm/bspwmrc b/PC/bspwm/bspwmrc index 2d43b38..d9b189c 100755 --- a/PC/bspwm/bspwmrc +++ b/PC/bspwm/bspwmrc @@ -1,14 +1,16 @@ #!/bin/sh +export PRIMARY_DISPLAY="$(xrandr | awk '/ primary/{print $1}')" + pipewire & -pgrep -x sxhkd > /dev/null || sxhkd & -pgrep -x polybar > /dev/null || polybar & +xhost +si:localuser:$USER & +xmodmap ~/.Xmodmap & bspc monitor DVI-D-0 -d I II III IV V bspc monitor HDMI-0 -d VI VII VIII IX X bspc config border_width 3 -bspc config window_gap 5 +bspc config window_gap 3 bspc config pointer_modifier super bspc config focus_follows_pointer true @@ -27,12 +29,12 @@ bspc config active_border_color "#E0A3B6" bspc config normal_border_color "#8393A1" bspc config focused_border_color "#93D4C5" -xhost +si:localuser:$USER & -xmodmap ~/.Xmodmap & +pgrep -x polybar > /dev/null || polybar & +pgrep -x sxhkd > /dev/null || sxhkd & +pgrep -x xidlehook > /dev/null || xidlehook --detect-sleep --not-when-fullscreen --not-when-audio --timer 300 'betterlockscreen -l' '' --timer 1200 'sudo zzz' '' & +pgrep -x xmousepaste > /dev/null || xmousepasteblock & +xsetroot -cursor_name left_ptr picom & -feh --bg-fill ~/.bg/bg_5.png ~/.bg/bg_5.png & +feh --bg-fill ~/.bg/bg_5.png & dunst & -xmousepasteblock & -xsetroot -cursor_name left_ptr & -pgrep -x xidlehook > /dev/null/ || xidlehook --not-when-fullscreen --not-when-audio --timer 30 'betterlockscreen -l' '' --timer 360 'sudo zzz' ''