mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-10 07:58:30 +01:00
hyprland: Migrate gaps script from bash to fish
Makes the code base more consistent when everything is written in one shell language.
This commit is contained in:
parent
375d85cd76
commit
a9d96a06d9
@ -12,7 +12,7 @@ let
|
|||||||
raiseVolumeScript = "hypr/raise-volume.fish";
|
raiseVolumeScript = "hypr/raise-volume.fish";
|
||||||
lowerVolumeScript = "hypr/lower-volume.fish";
|
lowerVolumeScript = "hypr/lower-volume.fish";
|
||||||
muteScript = "hypr/mute.fish";
|
muteScript = "hypr/mute.fish";
|
||||||
gapsScript = "hypr/gaps.sh";
|
gapsScript = "hypr/gaps.fish";
|
||||||
randomBackgroundScript = "hypr/random-bg.fish";
|
randomBackgroundScript = "hypr/random-bg.fish";
|
||||||
swapBackgroundScript = "hypr/swap-bg.fish";
|
swapBackgroundScript = "hypr/swap-bg.fish";
|
||||||
setBackgroundScript = "hypr/set-bg.fish";
|
setBackgroundScript = "hypr/set-bg.fish";
|
||||||
@ -290,12 +290,13 @@ in
|
|||||||
|
|
||||||
xdg.configFile.${gapsScript} = {
|
xdg.configFile.${gapsScript} = {
|
||||||
executable = true;
|
executable = true;
|
||||||
text = /* bash */ ''
|
text = /* fish */ ''
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env fish
|
||||||
hyprctl keyword general:gaps_out $((10 - $(hyprctl getoption general:gaps_out -j | jq -r ".custom" | choose 1)))
|
|
||||||
hyprctl keyword general:gaps_in $((5 - $(hyprctl getoption general:gaps_in -j | jq -r ".custom" | choose 1)))
|
hyprctl keyword general:gaps_out $(math 10 - $(hyprctl getoption general:gaps_out -j | jq -r ".custom" | choose 1))
|
||||||
hyprctl keyword general:border_size $((2 - $(hyprctl getoption general:border_size -j | jq -r ".int")))
|
hyprctl keyword general:gaps_in $(math 5 - $(hyprctl getoption general:gaps_in -j | jq -r ".custom" | choose 1))
|
||||||
hyprctl keyword decoration:rounding $((8 - $(hyprctl getoption decoration:rounding -j | jq -r ".int")))
|
hyprctl keyword general:border_size $(math 2 - $(hyprctl getoption general:border_size -j | jq -r ".int"))
|
||||||
|
hyprctl keyword decoration:rounding $(math 8 - $(hyprctl getoption decoration:rounding -j | jq -r ".int"))
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user