home/hyprland: remove workspaces option

This commit is contained in:
Aly Raffauf 2024-07-19 13:15:53 -04:00
parent cf5ce8202f
commit 071b3ae117
3 changed files with 3 additions and 9 deletions

View file

@ -43,7 +43,7 @@ in {
${
lib.strings.concatMapStringsSep "\n"
(x: "bind = , ${toString x}, movetoworkspace, ${toString x}")
cfg.desktop.hyprland.workspaces
[1 2 3 4 5 6 7 8 9]
}
# hyprnome

View file

@ -93,8 +93,8 @@ in {
"CTRL ALT,M,submap,move"
"CTRL ALT,R,submap,resize"
]
++ builtins.map (x: "$mod, ${toString x}, workspace, ${toString x}") cfg.desktop.hyprland.workspaces
++ builtins.map (x: "$mod SHIFT, ${toString x}, movetoworkspace, ${toString x}") cfg.desktop.hyprland.workspaces
++ builtins.map (x: "$mod, ${toString x}, workspace, ${toString x}") [1 2 3 4 5 6 7 8 9]
++ builtins.map (x: "$mod SHIFT, ${toString x}, movetoworkspace, ${toString x}") [1 2 3 4 5 6 7 8 9]
++ lib.attrsets.mapAttrsToList (key: direction: "$mod, ${key}, movefocus, ${direction}") cfg.desktop.hyprland.windowManagerBinds
++ lib.attrsets.mapAttrsToList (key: direction: "$mod SHIFT, ${key}, movewindow, ${direction}") cfg.desktop.hyprland.windowManagerBinds
++ lib.attrsets.mapAttrsToList (key: direction: "$mod CONTROL SHIFT, ${key}, movecurrentworkspacetomonitor, ${direction}") cfg.desktop.hyprland.windowManagerBinds;

View file

@ -151,12 +151,6 @@ in {
type = lib.types.bool;
};
workspaces = lib.mkOption {
description = "Default numbered workspaces to create.";
default = [1 2 3 4 5 6 7 8 9];
type = lib.types.listOf lib.types.int;
};
windowManagerBinds = lib.mkOption {
description = "Default binds for window management.";
default = {