added sp-lock lock script

This commit is contained in:
Penelope Gwen 2024-06-05 15:45:07 -06:00
parent 74d77b3fb4
commit 5282d13176
2 changed files with 10 additions and 0 deletions

View file

@ -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}"

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
sway-profiles (0.3.1) unstable; urgency=medium
* added sp-lock lock scripts
-- Penelope Gwen <support@pogmom.me> Wed, 05 Jun 2024 15:44:39 -0600
sway-profiles (0.3) unstable; urgency=medium
* added sp-lock unlock scripts