2024-08-19 10:38:46 +00:00
|
|
|
self: with self; ''
|
2021-05-30 19:10:28 +00:00
|
|
|
# Dependencies:
|
|
|
|
# swaylock
|
2022-09-01 12:37:14 +00:00
|
|
|
IMAGE="$XDG_CONFIG_HOME/wallpaper.jpg"
|
2021-05-30 19:10:28 +00:00
|
|
|
LOCKARGS=""
|
|
|
|
|
2023-11-20 17:47:00 +00:00
|
|
|
for OUTPUT in $(${sway}/bin/swaymsg --type get_outputs | ${jq}/bin/jq --raw-output '.[].name')
|
2021-05-30 19:10:28 +00:00
|
|
|
do
|
|
|
|
LOCKARGS="''${LOCKARGS} --image ''${OUTPUT}:''${IMAGE}"
|
|
|
|
done
|
2023-11-11 14:43:09 +00:00
|
|
|
exec ${swaylock}/bin/swaylock --daemonize $LOCKARGS
|
2021-05-30 19:10:28 +00:00
|
|
|
''
|