diff --git a/home/hyprland.nix b/home/hyprland.nix index 9059a851..b3dcde6c 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -346,12 +346,12 @@ in text = /* fish */ '' #!/usr/bin/env fish - set M "$(swww query | choose -1)" - set M1 "$(echo "$M" | head -n 1)" - set M2 "$(echo "$M" | tail -n 1)" + set M "$(swww query | cut -d ':' -f 5)" + set M1 "$(echo "$M" | head -n 1 | awk '{$1=$1};1')" + set M2 "$(echo "$M" | tail -n 1 | awk '{$1=$1};1')" - ~/.config/${setBackgroundScript} "$(swww query | choose 0 | choose -c 0..-1 | tail -n 1)" $M1 - ~/.config/${setBackgroundScript} "$(swww query | choose 0 | choose -c 0..-1 | head -n 1)" $M2 + ~/.config/${setBackgroundScript} "$(swww query | choose 0 | choose -c 0..-1 | tail -n 1)" "$M1" + ~/.config/${setBackgroundScript} "$(swww query | choose 0 | choose -c 0..-1 | head -n 1)" "$M2" ''; };