mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 22:31:55 -05:00
sway: cleaned up random wallpaper script
This commit is contained in:
parent
aef572f922
commit
55f5b50754
|
@ -12,14 +12,13 @@
|
|||
|
||||
if [ -d "$directory" ]; then
|
||||
while true; do
|
||||
|
||||
for pid in ''${OLD_PIDS[@]}; do
|
||||
kill $pid
|
||||
done
|
||||
|
||||
OLD_PIDS=()
|
||||
|
||||
monitor=`${config.wayland.windowManager.sway.package}/bin/swaymsg -t get_outputs -p | grep Output | awk '{print $2}'`
|
||||
|
||||
for m in ''${monitor[@]}; do
|
||||
random_background=$(ls $directory/*.{png,jpg} | shuf -n 1)
|
||||
${pkgs.swaybg}/bin/swaybg -o $m -i $random_background &
|
||||
|
|
Loading…
Reference in a new issue