added sp-lock lock script
This commit is contained in:
parent
74d77b3fb4
commit
5282d13176
2 changed files with 10 additions and 0 deletions
|
@ -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
6
debian/changelog
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue