1 line
1.6 KiB
Plaintext
1 line
1.6 KiB
Plaintext
<!-- SC_OFF --><div class="md"><p>I find it annoying that i have to set an idle inhibitor on a window that is playing sound or downloading something. How do you guys get around this problem? My current sleep setup consists of two files as following...</p> <p>I have these line in my sway config which set brightness to 10% after 10 mins, restores it to original when resumed, same thing with screen power after 15 mins, lock my system before sleep and call idlehint to indicate an idle session to systemd after 30 mins ``` swayidle -w \ timeout 600 'brightnessctl set 10% -s' resume 'brightnessctl -r' \ timeout 900 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ before-sleep 'swaylock --daemonize --show-failed-attempts --image "/mnt/Lenovo/Home/Pictures/wallpapers/summer-vibes.jpg" ' \ idlehint 1800</p> <h2>```</h2> <p>and i have this file <code>/etc/systemd/logind.conf.d/15-auto-suspend.conf</code> which overrides the default login.conf to make the system go to sleep after 1 minute of an idle session <code> [Login] IdleAction=suspend IdleActionSec=1 min </code> how can I integrate a solution to this problem with my setup.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/FierceFusion"> /u/FierceFusion </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/qzhbz9/prevent_sleep_while_downloading_or_playing_sound/">[link]</a></span>   <span><a href="https://www.reddit.com/r/archlinux/comments/qzhbz9/prevent_sleep_while_downloading_or_playing_sound/">[comments]</a></span> |