mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 09:53:10 -05:00
11 lines
346 B
Text
11 lines
346 B
Text
|
#!/bin/bash
|
||
|
|
||
|
# Wait on pipewire or "--not-when-audio" will break everything
|
||
|
until pgrep -u $UID -x pipewire-pulse >/dev/null; do sleep 1; done
|
||
|
|
||
|
# lock screen after 10 minutes
|
||
|
echo "---" | tee -a /tmp/xidlehook.log
|
||
|
xidlehook --not-when-audio --not-when-fullscreen \
|
||
|
--timer 600 "xset s activate" "" \
|
||
|
2>&1 | tee -a /tmp/xidlehook.log & disown
|