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 &
pgrep -x polybar > /dev/null || polybar &
xhost +si:localuser:$USER &
xmodmap ~/.Xmodmap
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 focused_border_color "#93D4C5"
xhost +si:localuser:$USER &
xmodmap ~/.Xmodmap
pgrep -x polybar > /dev/null || polybar &
pgrep -x sxhkd > /dev/null || sxhkd &
xmousepasteblock &
xsetroot -cursor_name left_ptr
picom &
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' ''

View File

@ -35,3 +35,4 @@ feh --bg-fill ~/.bg/bg_5.png ~/.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' ''