From 7bf8c855b8b5b8ee363d23906b89fa348ac4db46 Mon Sep 17 00:00:00 2001 From: Remy Moll Date: Mon, 24 Feb 2025 12:13:33 +0100 Subject: [PATCH] some more keybindings --- .../home-manager/hyprland-customization.nix | 69 +++++++++++-------- modules/home-manager/keepassxc.nix | 1 - 2 files changed, 41 insertions(+), 29 deletions(-) diff --git a/modules/home-manager/hyprland-customization.nix b/modules/home-manager/hyprland-customization.nix index 6c051bd..ef59f2f 100644 --- a/modules/home-manager/hyprland-customization.nix +++ b/modules/home-manager/hyprland-customization.nix @@ -2,29 +2,51 @@ { programs.kitty.enable = true; + home.packages = [ + pkgs.hyprshot + pkgs.nautilus + pkgs.gnome-control-center + pkgs.brightnessctl + ]; + + wayland.windowManager.hyprland = { enable = true; systemd.enable = true; settings = { "$mod" = "SUPER"; - bind = - [ - "$mod, F, exec, firefox" - "$mod, return, exec, walker" - "$mod_SHIFT, return, exec, kitty" - "$mod, s, exec, code" - "$mod, Q, killactive," # Close window - "$mod, T, togglefloating," # Toggle Floating - "$mod, left, movefocus, l" # Move focus left - "$mod, right, movefocus, r" # Move focus Right - "$mod, up, movefocus, u" # Move focus Up - "$mod, down, movefocus, d" # Move focus Down - # "$shiftMod, up, focusmonitor, -1" # Focus previous monitor - # "$shiftMod, down, focusmonitor, 1" # Focus next monitor - # "$shiftMod, left, layoutmsg, addmaster" # Add to master - # "$shiftMod, right, layoutmsg, removemaster" # Remove from master - ]; + # Global bindings + bind = [ + "$mod, return, exec, walker" + "$mod+Shift, return, exec, kitty" + "$mod, F, exec, firefox" + "$mod, s, exec, code" + "$mod, e, exec, nautilus" + "$mod+Shift, Q, killactive," # Close window + "$mod+Shift, T, togglefloating," # Toggle Floating + + # Move the focus + "$mod, left, movefocus, l" + "$mod, right, movefocus, r" + "$mod, up, movefocus, u" + "$mod, down, movefocus, d" + + # Move the window + "$mod+Shift, left, movewindow, l" + "$mod+Shift, right, movewindow, r" + "$mod+Shift, up, movewindow, u" + "$mod+Shift, down, movewindow, d" + + # Switch workspace + "$mod+Ctrl, left, workspace, -1" + "$mod+Ctrl, right, workspace, +1" + + # Screenshot + "$mod, Print, exec, hyprshot -m region -o ~/Pictures/Screenshots" + "$mod+Shift, Print, exec, hyprshot -m window -o ~/Pictures/Screenshots" + ]; + general = { resize_on_border = true; gaps_in = 5; @@ -32,7 +54,7 @@ border_size = 1; layout = "master"; }; - + misc = { disable_hyprland_logo = true; }; @@ -54,11 +76,10 @@ workspace_swipe_fingers = 4; workspace_swipe_touch = true; }; - + decoration = { rounding = 5; }; - # plugin.virtual-desktops = {} monitor = [ "eDP-1, highres, 0x0, 1.5" # the internal laptop monitor @@ -104,7 +125,6 @@ }; }; }; - }; @@ -122,13 +142,6 @@ websearch.prefix = "?"; switcher.prefix = "/"; }; - - # If this is not set the default styling is used. - # style = '' - # * { - # color: #dcd7ba; - # } - # ''; }; diff --git a/modules/home-manager/keepassxc.nix b/modules/home-manager/keepassxc.nix index 5a0edcf..58ecc70 100644 --- a/modules/home-manager/keepassxc.nix +++ b/modules/home-manager/keepassxc.nix @@ -3,5 +3,4 @@ home.packages = [ pkgs.keepassxc ]; - }