tileos-settings-sway/usr/share/sway
Alexander Oakman 8dc7da2815 Fix the idle-inhibitor script
It turns out that the idle-inhibitor provided by sway only works
with views (application windows), i.e. inhibition cannot be run
on empty workspaces because they do not contain views.
Also, when switching between different workspaces, the views of
the previous workspace may have idle inhibitors, causing inhibition
to be active even if no sound is played until the old views are
updated. To update the old views, it is necessary to switch to the
appropriate workspace and wait for the script to execute, which
will remove the inhibitors that is incorrect and inconvenient.
This patch introduces a new inhibit method based on
systemd-inhibit, which has none of the above problems.
2024-08-25 05:34:38 +03:00
..
scripts Fix the idle-inhibitor script 2024-08-25 05:34:38 +03:00