From 8a446964aed9b72ca6cf1ac9262ef1adfa104f8c Mon Sep 17 00:00:00 2001 From: albert Date: Sat, 26 Aug 2023 20:08:18 +0900 Subject: [PATCH] Add resize shortcuts in hyprland --- .../desktops/hyprland/hyprland-conf.nix | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/home-manager/hosts/nixos-laptop/desktops/hyprland/hyprland-conf.nix b/home-manager/hosts/nixos-laptop/desktops/hyprland/hyprland-conf.nix index 8dcd6c28..72b62beb 100644 --- a/home-manager/hosts/nixos-laptop/desktops/hyprland/hyprland-conf.nix +++ b/home-manager/hosts/nixos-laptop/desktops/hyprland/hyprland-conf.nix @@ -9,7 +9,7 @@ monitor=,highrr,auto,1.25 # https://wiki.hyprland.org/Configuring/Variables/ # env = XCURSOR_SIZE,24 - env = GDK_SCALE,1 + env = GDK_SCALE,2 env = XCURSOR_SIZE,48 # unscale XWayland @@ -26,10 +26,10 @@ env = WLR_NO_HARDWARE_CURSORS,1 general { - gaps_in = 5 + gaps_in = 10 gaps_out = 20 border_size = 3 - # First six are color, last 2 are opacity? + # First six are color, last 2 are opacity col.active_border = rgba(d5c4a1bb) # Gruvbox fg2, opacity bb col.inactive_border = rgba(504945dd) # Gruvbox bg2, opacity aa resize_on_border = true @@ -58,7 +58,7 @@ disable_hyprland_logo = true } decoration { - rounding = 10 + rounding = 5 active_opacity = 0.9 inactive_opacity = 0.7 fullscreen_opacity = 0.9 @@ -218,7 +218,21 @@ # bind = , XF86 # Use rofi as an alt-tab switcher - # bind = ALT, TAB, exec, rofi -show window + # bind = ALT, TAB, exec, rofi -show window + + # Resize + bind = $mainMod, R, submap, resize + submap = resize + binde = , H, resizeactive,-50 0 + binde = , L, resizeactive,50 0 + binde = , K, resizeactive,0 -50 + binde = , J, resizeactive,0 50 + binde = , left, resizeactive,-50 0 + binde = , right, resizeactive,50 0 + binde = , up, resizeactive,0 -50 + binde = , down, resizeactive,0 50 + bind = , escape, submap, reset + submap = reset # Start the config: # https://wiki.hyprland.org/FAQ/#some-of-my-apps-take-a-really-long-time-to-open