blob: 820bfeb7d89edca78c6541d830624de445eab55c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/nu
let wallpapers_path = "~/wallpapers/low-poly"
swaymsg -t get_outputs |
rg name |
str trim -a |
split row "," |
split column ":" |
get column2 |
str trim | str trim -c '"' |
each {|output|
swaymsg $"output ($output) bg `find ($wallpapers_path) -type f | shuf -n 1` fill"
}
|