fix(hyprland): keep layout comment attached
This commit is contained in:
@@ -17,7 +17,6 @@ let
|
|||||||
|
|
||||||
# Flip the tiling strategy between the two built-in layouts, since neither a
|
# Flip the tiling strategy between the two built-in layouts, since neither a
|
||||||
# dispatcher nor a keyword toggles it on its own.
|
# dispatcher nor a keyword toggles it on its own.
|
||||||
user = config.user.name;
|
|
||||||
toggleLayout = pkgs.writeShellScript "hypr-toggle-layout" ''
|
toggleLayout = pkgs.writeShellScript "hypr-toggle-layout" ''
|
||||||
if [ "$(hyprctl getoption -j general:layout | ${pkgs.jq}/bin/jq -r .str)" = dwindle ]; then
|
if [ "$(hyprctl getoption -j general:layout | ${pkgs.jq}/bin/jq -r .str)" = dwindle ]; then
|
||||||
hyprctl keyword general:layout master
|
hyprctl keyword general:layout master
|
||||||
@@ -25,6 +24,7 @@ let
|
|||||||
hyprctl keyword general:layout dwindle
|
hyprctl keyword general:layout dwindle
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
user = config.user.name;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.modules.desktop.session.hyprland = {
|
options.modules.desktop.session.hyprland = {
|
||||||
|
|||||||
Reference in New Issue
Block a user