From 10bddd9ec8207cfb357402bb4d0a436a52d3f2b3 Mon Sep 17 00:00:00 2001 From: Christian Ott Date: Sat, 4 May 2024 12:57:56 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20hyprland?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Basically nothing works except firefox 😬 --- home.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/home.nix b/home.nix index 5ccd4c2..0a7aa63 100644 --- a/home.nix +++ b/home.nix @@ -5,8 +5,35 @@ home.username = "${username}"; home.homeDirectory = "/home/${username}"; + wayland.windowManager.hyprland.enable = true; + wayland.windowManager.hyprland.settings = { + "$mod" = "SUPER"; + bind = + [ + "$mod, F, exec, firefox" + ", Print, exec, grimblast copy area" + ] + ++ ( + # workspaces + # binds $mod + [shift +] {1..10} to [move to] workspace {1..10} + builtins.concatLists (builtins.genList ( + x: let + ws = let + c = (x + 1) / 10; + in + builtins.toString (x + 1 - (c * 10)); + in [ + "$mod, ${ws}, workspace, ${toString (x + 1)}" + "$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}" + ] + ) + 10) + ); + }; + # Packages that should be installed to the user profile. home.packages = with pkgs; [ + kitty eza pkgs-unstable.obsidian jq