feat: hyperland scrolling layout
This commit is contained in:
@@ -21,6 +21,7 @@ in
|
|||||||
enable = window_manager == "hyprland" || window_manager == "all";
|
enable = window_manager == "hyprland" || window_manager == "all";
|
||||||
plugins = [
|
plugins = [
|
||||||
pkgs.hyprlandPlugins.hyprsplit
|
pkgs.hyprlandPlugins.hyprsplit
|
||||||
|
pkgs.hyprlandPlugins.hyprscrolling
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
|
|
||||||
@@ -52,6 +53,17 @@ in
|
|||||||
num_workspaces = 10;
|
num_workspaces = 10;
|
||||||
persistent_workspaces = true;
|
persistent_workspaces = true;
|
||||||
};
|
};
|
||||||
|
hyprscrolling = {
|
||||||
|
fullscreen_on_one_column = false;
|
||||||
|
column_width = 0.7;
|
||||||
|
explicit_column_widths = [
|
||||||
|
0.333
|
||||||
|
0.5
|
||||||
|
0.667
|
||||||
|
1.0
|
||||||
|
];
|
||||||
|
focus_fit_method = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
env = [
|
env = [
|
||||||
@@ -171,9 +183,10 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||||
gestures = {
|
#gestures = {
|
||||||
workspace_swipe = true;
|
# workspace_swipe = true;
|
||||||
};
|
# workspace_swipe_cancel_ratio = 0.15;
|
||||||
|
#};
|
||||||
|
|
||||||
# Example per-device config
|
# Example per-device config
|
||||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||||
@@ -195,12 +208,14 @@ in
|
|||||||
",Print, exec, grim -g \"$(slurp)\" - | swappy -f -"
|
",Print, exec, grim -g \"$(slurp)\" - | swappy -f -"
|
||||||
"${mod}, P, pseudo, " # dwindle
|
"${mod}, P, pseudo, " # dwindle
|
||||||
#focus with mainMod + arrow keys
|
#focus with mainMod + arrow keys
|
||||||
"${mod}, H, movefocus, l"
|
#"${mod}, H, movefocus, l"
|
||||||
"${mod}, L, movefocus, r"
|
#"${mod}, L, movefocus, r"
|
||||||
"${mod}, K, movefocus, u"
|
"${mod}, K, movefocus, u"
|
||||||
"${mod}, J, movefocus, d"
|
"${mod}, J, movefocus, d"
|
||||||
"${mod} SHIFT, H, movewindow, l"
|
"${mod} SHIFT, H, movewindow, l"
|
||||||
|
"${mod}, h, layoutmsg, move -col"
|
||||||
"${mod} SHIFT, L, movewindow, r"
|
"${mod} SHIFT, L, movewindow, r"
|
||||||
|
"${mod}, L, layoutmsg, move +col"
|
||||||
"${mod} SHIFT, K, movewindow, u"
|
"${mod} SHIFT, K, movewindow, u"
|
||||||
"${mod} SHIFT, J, movewindow, d"
|
"${mod} SHIFT, J, movewindow, d"
|
||||||
|
|
||||||
|
|||||||
@@ -3,13 +3,14 @@
|
|||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
inputs,
|
inputs,
|
||||||
|
window_manager,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
quickshellPackage = inputs.quickshell.packages.${pkgs.system}.default;
|
quickshellPackage = inputs.quickshell.packages.${pkgs.system}.default;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
systemd.user.services.quickshell = {
|
systemd.user.services.quickshell = lib.mkIf (window_manager == "hyprland") {
|
||||||
Unit = {
|
Unit = {
|
||||||
Description = "QuickShell Application";
|
Description = "QuickShell Application";
|
||||||
After = [ "graphical-session.target" ];
|
After = [ "graphical-session.target" ];
|
||||||
|
|||||||
Reference in New Issue
Block a user