Some changes

This commit is contained in:
2025-02-04 21:02:12 -08:00
parent f40f9f5277
commit ee1321e857
6 changed files with 83 additions and 28 deletions

View File

@ -14,11 +14,11 @@ function has-rootful-xwayland-p {
function run {
# ensure multiple instances do not run
mkdir -p "$(dirname "${LOCKFILE}")"
mkdir -p "${LOCKFILE:h}"
exec 4<>"${LOCKFILE}"
flock -n 4 || exit 0
dunstctl set-paused true
if has-rootful-xwayland-p; then
if [[ "${XDG_CURRENT_DESKTOP}" == 'river' ]] && has-rootful-xwayland-p; then
swaylock ${empty_flag} --color '#000000'
else
swayidle -w -C /dev/null \