diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-07-04 22:58:28 +0200 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2024-07-04 22:58:28 +0200 |
| commit | 333f134ec64739abf0c3e46e59a4a8ad88b883b5 (patch) | |
| tree | 5c41313437176f100116883b353c7efd4b9b7ab3 /share/cfg/hyprland.nix | |
| parent | 430d063f50824b0b268e73c8577705dc2c4fc318 (diff) | |
formatting
Diffstat (limited to 'share/cfg/hyprland.nix')
| -rw-r--r-- | share/cfg/hyprland.nix | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/share/cfg/hyprland.nix b/share/cfg/hyprland.nix index b9353ef..629f105 100644 --- a/share/cfg/hyprland.nix +++ b/share/cfg/hyprland.nix @@ -17,8 +17,7 @@ let }; terminal = "kitty"; }; -in -{ +in { wayland.windowManager.hyprland = { extraConfig = '' $mod = SUPER @@ -36,22 +35,12 @@ in # workspaces # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} - ${builtins.concatStringsSep "\n" ( - builtins.genList ( - x: - let - ws = - let - c = (x + 1) / 10; - in - builtins.toString (x + 1 - (c * 10)); - in - '' - bind = $mod, ${ws}, workspace, ${toString (x + 1)} - bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)} - '' - ) 10 - )} + ${builtins.concatStringsSep "\n" (builtins.genList (x: + let ws = let c = (x + 1) / 10; in builtins.toString (x + 1 - (c * 10)); + in '' + bind = $mod, ${ws}, workspace, ${toString (x + 1)} + bind = $mod SHIFT, ${ws}, movetoworkspacesilent, ${toString (x + 1)} + '') 10)} bind = $mod SHIFT, C, killactive bind = $mod SHIFT, F, togglefloating |
