mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 00:03:55 +01:00
hyprland: Fix swap-bg script for files with spaces
This commit is contained in:
parent
65c815d155
commit
d87ae2c7de
@ -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"
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user