forked from pub-solar/os
13 lines
335 B
Nix
13 lines
335 B
Nix
self: with self; ''
|
|
# Dependencies:
|
|
# swaylock
|
|
IMAGE="$XDG_CONFIG_HOME/wallpaper.jpg"
|
|
LOCKARGS=""
|
|
|
|
for OUTPUT in $(${sway}/bin/swaymsg --type get_outputs | ${jq}/bin/jq --raw-output '.[].name')
|
|
do
|
|
LOCKARGS="''${LOCKARGS} --image ''${OUTPUT}:''${IMAGE}"
|
|
done
|
|
exec ${swaylock}/bin/swaylock --daemonize $LOCKARGS
|
|
''
|