hyprland: Use new custom field for gaps in/out

Now the script works as expected with the latest commit on main for
Hyprland.
This commit is contained in:
Donovan Glover 2024-03-08 21:46:06 -05:00
parent 7c1a9a248a
commit 2fb756acda
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -15,8 +15,8 @@ in
executable = true;
text = /* bash */ ''
#!/usr/bin/env bash
hyprctl keyword general:gaps_out $((10 - $(hyprctl getoption general:gaps_out -j | jq -r ".int")))
hyprctl keyword general:gaps_in $((5 - $(hyprctl getoption general:gaps_in -j | jq -r ".int")))
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:border_size $((2 - $(hyprctl getoption general:border_size -j | jq -r ".int")))
hyprctl keyword decoration:rounding $((8 - $(hyprctl getoption decoration:rounding -j | jq -r ".int")))
'';