diff --git a/bin/sp-lock b/bin/sp-lock index 54e5c85..8775806 100755 --- a/bin/sp-lock +++ b/bin/sp-lock @@ -1,6 +1,7 @@ #!/bin/bash source "/usr/lib/sp-functions" +lock_script="${conf_dir}/lockscript" unlock_script="${conf_dir}/unlockscript" outputs=( $(swaymsg -t get_outputs | jq -r '.[] | {name} | "\(.name)"') ) @@ -14,6 +15,9 @@ for o in ${outputs[@]};do sl_args="${sl_args}--image ${o}:${sl_imgpath} " done +if [ -f "${lock_script}" ]; then + bash -c "${lock_script}" +fi swaylock ${sl_args} if [ -f "${unlock_script}" ]; then bash -c "${unlock_script}" diff --git a/debian/changelog b/debian/changelog index 711c04a..4718ed6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sway-profiles (0.3.1) unstable; urgency=medium + + * added sp-lock lock scripts + + -- Penelope Gwen Wed, 05 Jun 2024 15:44:39 -0600 + sway-profiles (0.3) unstable; urgency=medium * added sp-lock unlock scripts