diff --git a/bin/sp-lock b/bin/sp-lock index ef14430..df583e8 100755 --- a/bin/sp-lock +++ b/bin/sp-lock @@ -8,14 +8,10 @@ if [ -f "${lock_script}" ]; then bash -c "${lock_script}" fi lock_args=() -if [ -f "/usr/lib/$(uname -m)-linux-gnu/gtklock/userinfo-module.so" ];then +for s in "/usr/lib/$(uname -m)-linux-gnu/gtklock/"*"-module.so";do lock_args+=("-m") - lock_args+=("/usr/lib/$(uname -m)-linux-gnu/gtklock/userinfo-module.so") -fi -if [ -f "/usr/lib/$(uname -m)-linux-gnu/gtklock/playerctl-module.so" ];then - lock_args+=("-m") - lock_args+=("/usr/lib/$(uname -m)-linux-gnu/gtklock/playerctl-module.so") -fi + lock_args+=("${s}") +done if [ ! -z "${lock_monitor}" ];then lock_args+=("-M") lock_args+=("${lock_monitor}") diff --git a/debian/changelog b/debian/changelog index 16ef1a3..f49feda 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sway-profiles (0.3.10) unstable; urgency=medium + + * better support for gtklock modules + + -- Penelope Gwen Fri, 28 Feb 2025 00:47:10 +0000 + sway-profiles (0.3.9) unstable; urgency=medium * support for gtklock modules diff --git a/debian/control b/debian/control index 9f7809f..3547c93 100644 --- a/debian/control +++ b/debian/control @@ -1,7 +1,7 @@ Source: sway-profiles Section: X11 Priority: optional -Maintainer: Penelope Gwen +Maintainer: Penelope Gwen Rules-Requires-Root: no Build-Depends: debhelper-compat (= 13),