Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3546

Raspberry Pi OS • Re: Screen timeout

$
0
0
I use a script and manually enable/disable the screensaver for my laptop
I went manual because it would turn off during movies

so can give you the commands

kill it:

Code:

pkill swayidle
start it,1 min is what I have mine set to blank:

Code:

swayidle -w timeout 60 'wlopm --off \*' resume 'wlopm --on \*' &
my script:

Code:

if pgrep -x swayidle 2>/dev/null; thenpkill swayidlewfpanelctl notify "\nScreensaver Off\n"elseswayidle -w timeout 60 'wlopm --off \*' resume 'wlopm --on \*' &wfpanelctl notify "\nScreensaver On\n"fi

Statistics: Posted by kerry_s — Thu May 15, 2025 2:29 am



Viewing all articles
Browse latest Browse all 3546

Trending Articles