From 1ed7ce2e894c18eaf5941eab3179a1f5ffa4659b Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Sat, 15 Feb 2025 12:14:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=9F=20Move=20windows=20with=20arrowkey?= =?UTF-8?q?s,=20moved=20zen=20package=20to=20/zen=20dir=20in=20home?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.nix | 1 - home-manager/hyprland/binds.nix | 7 +++++++ home-manager/zen/default.nix | 11 ++++++++--- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index e6b52f3..9574f83 100644 --- a/configuration.nix +++ b/configuration.nix @@ -51,7 +51,6 @@ in gimp vlc vdhcoapp - inputs.zen-browser.packages.${system}.default # beta onlyoffice-desktopeditors ]; diff --git a/home-manager/hyprland/binds.nix b/home-manager/hyprland/binds.nix index 205263c..d9e3b82 100644 --- a/home-manager/hyprland/binds.nix +++ b/home-manager/hyprland/binds.nix @@ -7,6 +7,7 @@ in wayland.windowManager.hyprland.settings = { "$mainMod" = "SUPER"; "$shiftMod" = "$mainMod SHIFT"; + "$ctrlMod" = "$mainMod CTRL"; "$menu" = "rofi -show drun"; bind = [ @@ -29,6 +30,12 @@ in "$mainMod, up, movefocus, u" "$mainMod, down, movefocus, d" + # Move window with ctrl + mainMod + arrow keys + "$ctrlMod, left, movewindow, l" + "$ctrlMod, right, movewindow, r" + "$ctrlMod, up, movewindow, u" + "$ctrlMod, down, movewindow, d" + # Switch workspaces with mainMod + [0-9] "$mainMod, 1, workspace, 1" "$mainMod, 2, workspace, 2" diff --git a/home-manager/zen/default.nix b/home-manager/zen/default.nix index 8e27113..b8d3278 100644 --- a/home-manager/zen/default.nix +++ b/home-manager/zen/default.nix @@ -1,7 +1,12 @@ +{ pkgs, inputs, ... }: + { # TODO programatically get default name - home.file.".zen/audtxq7n.default/chrome" = { - source = ./chrome; - recursive = true; + home = { + file.".zen/audtxq7n.default/chrome" = { + source = ./chrome; + recursive = true; + }; + packages = with pkgs; [ inputs.zen-browser.packages.${system}.default ]; # Beta }; }