os/pkgs/swaylock-bg.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
335 B
Nix
Raw Normal View History

2024-08-19 10:38:46 +00:00
self: with self; ''
2021-05-30 19:10:28 +00:00
# Dependencies:
# swaylock
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
exec ${swaylock}/bin/swaylock --daemonize $LOCKARGS
2021-05-30 19:10:28 +00:00
''