From 1ec73cc2c14d2f62c32046d9585c3a745531d37a Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Sun, 4 Dec 2022 18:23:46 -0600 Subject: Fresh start --- bin/wallpaper-shuffle | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 bin/wallpaper-shuffle (limited to 'bin/wallpaper-shuffle') diff --git a/bin/wallpaper-shuffle b/bin/wallpaper-shuffle new file mode 100755 index 0000000..8108a10 --- /dev/null +++ b/bin/wallpaper-shuffle @@ -0,0 +1,11 @@ +#!/bin/nu +let wallpapers_path = "~/wallpapers/low-poly" +swaymsg -t get_outputs | + rg name | + split row "\n" | + split column ":" | + get column2 | + str trim | str trim -c "," | str trim -c '"' | + each {|output| + swaymsg $"output ($output) bg `find ($wallpapers_path) -type f | shuf -n 1` fill" + } -- cgit v1.2.3-70-g09d2