mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-31 05:10:12 +00:00
More on the hyprland configuration
This commit is contained in:
parent
93e377be7a
commit
b5d38d1211
@ -24,13 +24,33 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [ pkgs.rofi-wayland ];
|
home.packages = [
|
||||||
|
pkgs.rofi-wayland
|
||||||
|
pkgs.brightnessctl
|
||||||
|
];
|
||||||
|
|
||||||
programs.kitty.enable = true;
|
programs.kitty.enable = true;
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
# Mod key (SUPER)
|
|
||||||
|
monitor = [ ",preferred,auto,1" ];
|
||||||
|
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
input = {
|
||||||
|
natural_scroll = true;
|
||||||
|
scroll_factor = 0.4;
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true;
|
||||||
|
scroll_factor = 0.4;
|
||||||
|
tap-to-click = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"$shiftMod" = "SUPER_SHIFT";
|
"$shiftMod" = "SUPER_SHIFT";
|
||||||
|
|
||||||
@ -40,6 +60,8 @@
|
|||||||
"$mod, Q, killactive"
|
"$mod, Q, killactive"
|
||||||
"$mod, SPACE, exec, rofi -show drun"
|
"$mod, SPACE, exec, rofi -show drun"
|
||||||
|
|
||||||
|
"$mod, F, fullscreen"
|
||||||
|
|
||||||
"$mod, H, movefocus, l"
|
"$mod, H, movefocus, l"
|
||||||
"$mod, J, movefocus, d"
|
"$mod, J, movefocus, d"
|
||||||
"$mod, K, movefocus, u"
|
"$mod, K, movefocus, u"
|
||||||
@ -49,7 +71,23 @@
|
|||||||
"$shiftMod, J, movewindow, d"
|
"$shiftMod, J, movewindow, d"
|
||||||
"$shiftMod, K, movewindow, u"
|
"$shiftMod, K, movewindow, u"
|
||||||
"$shiftMod, L, movewindow, r"
|
"$shiftMod, L, movewindow, r"
|
||||||
];
|
|
||||||
|
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
|
||||||
|
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||||
|
]
|
||||||
|
++ builtins.concatLists (
|
||||||
|
builtins.genList (
|
||||||
|
i:
|
||||||
|
let
|
||||||
|
code = "1${toString i}";
|
||||||
|
ws = toString (i + 1);
|
||||||
|
in
|
||||||
|
[
|
||||||
|
"$mod, code:${code}, workspace, ${ws}"
|
||||||
|
"$shiftMod, code:${code}, movetoworkspace, ${ws}"
|
||||||
|
]
|
||||||
|
) 9
|
||||||
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user