feat(idle): add xidlehook

This commit is contained in:
doryan 2025-02-16 02:05:04 +04:00
parent 7ebd2e26b7
commit c0df750156
2 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/bash
pgrep -x sxhkd > /dev/null || sxhkd & xhost +si:localuser:$USER &
pgrep -x polybar > /dev/null || polybar & xmodmap ~/.Xmodmap
bspc monitor -d 1 2 3 4 5 bspc monitor -d 1 2 3 4 5
@ -25,11 +25,12 @@ bspc config active_border_color "#E0A3B6"
bspc config normal_border_color "#8393A1" bspc config normal_border_color "#8393A1"
bspc config focused_border_color "#93D4C5" bspc config focused_border_color "#93D4C5"
xhost +si:localuser:$USER & pgrep -x polybar > /dev/null || polybar &
xmodmap ~/.Xmodmap pgrep -x sxhkd > /dev/null || sxhkd &
xmousepasteblock &
xsetroot -cursor_name left_ptr
picom & picom &
feh --bg-fill ~/.bg/bg_5.png & feh --bg-fill ~/.bg/bg_5.png &
dunst & dunst &
xmousepasteblock & pgrep -x xidlehook > /dev/null/ || xidlehook --not-when-fullscreen --not-when-audio --timer 30 'betterlockscreen -l' '' --timer 360 'sudo zzz' ''
xsetroot -cursor_name left_ptr &

View File

@ -35,3 +35,4 @@ feh --bg-fill ~/.bg/bg_5.png ~/.bg/bg_5.png &
dunst & dunst &
xmousepasteblock & xmousepasteblock &
xsetroot -cursor_name left_ptr & 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' ''