diff --git a/bin/sp-lock b/bin/sp-lock index a2fb489..54e5c85 100755 --- a/bin/sp-lock +++ b/bin/sp-lock @@ -1,6 +1,7 @@ #!/bin/bash source "/usr/lib/sp-functions" +unlock_script="${conf_dir}/unlockscript" outputs=( $(swaymsg -t get_outputs | jq -r '.[] | {name} | "\(.name)"') ) @@ -14,3 +15,6 @@ for o in ${outputs[@]};do done swaylock ${sl_args} +if [ -f "${unlock_script}" ]; then + bash -c "${unlock_script}" +fi diff --git a/debian/changelog b/debian/changelog index 8ef8bcf..1b2815e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sway-profiles (0.2) UNRELEASED; urgency=medium + + * added sp-lock unlock scripts + + -- Penelope Gwen Wed, 05 Jun 2024 15:29:28 -0600 + sway-profiles (0.1) unstable; urgency=medium * Initial release.