diff --git a/home/hypr/hyprland/general.nix b/home/hypr/hyprland/general.nix index b9079d9..4ac2b0a 100644 --- a/home/hypr/hyprland/general.nix +++ b/home/hypr/hyprland/general.nix @@ -12,13 +12,26 @@ "col.inactive_border" = "rgba(31313600)"; resize_on_border = true; allow_tearing = true; - layout = "dwindle"; + layout = "scroller"; }; - dwindle = { - preserve_split = true; - smart_split = false; - smart_resizing = false; + plugin = { + scroller = { + column_default_width = "one"; + focus_wrap = false; + column_widths = "onehalf one twothirds"; + center_row_first = true; + }; + hyprexpo = { + columns = 3; + gap_size = 8; + bg_col = "rgb(000000)"; + workspace_method = "center current"; + enable_gesture = true; + gesture_fingers = 3; + gesture_distance = 300; + gesture_positive = true; + }; }; decoration = { @@ -28,8 +41,12 @@ inactive_opacity = 1.0; dim_inactive = true; dim_strength = 0.05; - blur = { enabled = false; }; - shadow = { enabled = false; }; + blur = { + enabled = false; + }; + shadow = { + enabled = false; + }; }; input = { diff --git a/home/hypr/hyprland/keybinds.nix b/home/hypr/hyprland/keybinds.nix index da8fcf0..7424dbe 100644 --- a/home/hypr/hyprland/keybinds.nix +++ b/home/hypr/hyprland/keybinds.nix @@ -12,12 +12,15 @@ in ]; bind = [ - # workspace navigation + # workspace "CTRL $mainMod, right, workspace, r+1" "CTRL $mainMod, left, workspace, r-1" + "$mainMod, R, scroller:cyclewidth, next" + "$mainMod, C, scroller:alignwindow, c" + "$mainMod SHIFT, R, scroller:resetheight," # interface - "$mainMod, Tab, exec, ${ipc} launcher windows" + "$mainMod, Tab, hyprexpo:expo, toggle" "$mainMod, P, exec, ${ipc} bar toggle" "CTRL ALT, Delete, exec, ${ipc} sessionMenu toggle" # plugins @@ -43,16 +46,15 @@ in "$mainMod ALT, P, pin" # focus windows - "$mainMod, left, movefocus, l" - "$mainMod, right, movefocus, r" - "$mainMod, up, movefocus, u" - "$mainMod, down, movefocus, d" + "$mainMod, left, scroller:movefocus, l" + "$mainMod, right, scroller:movefocus, r" + "$mainMod, up, scroller:movefocus, u" + "$mainMod, down, scroller:movefocus, d" - # move windows - "$mainMod SHIFT, left, movewindow, l" - "$mainMod SHIFT, right, movewindow, r" - "$mainMod SHIFT, up, movewindow, u" - "$mainMod SHIFT, down, movewindow, d" + "$mainMod SHIFT, left, scroller:movewindow, l" + "$mainMod SHIFT, right, scroller:movewindow, r" + "$mainMod SHIFT, up, scroller:movewindow, u" + "$mainMod SHIFT, down, scroller:movewindow, d" # workspace navigation "$mainMod, 1, workspace, 1" diff --git a/home/hyprland.nix b/home/hyprland.nix index e976a99..a1748b4 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -9,5 +9,8 @@ enable = true; xwayland.enable = true; systemd.enable = true; + plugins = [ + pkgs.hyprlandPlugins.hyprscroller + pkgs.hyprlandPlugins.hyprexpo + ]; }; -}