blob: 8108a102ba619f27299f1352bfacbddcf3993e9d (
plain)
1
2
3
4
5
6
7
8
9
10
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"
}
|