This commit is contained in:
parent
4581e8ff1f
commit
6e3b5d3321
3 changed files with 68 additions and 59 deletions
|
@ -35,7 +35,7 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
|
|
||||||
general = {
|
general = {
|
||||||
gaps_in = 3;
|
gaps_in = 3;
|
||||||
gaps_out = 10;
|
gaps_out = 3;
|
||||||
|
|
||||||
border_size = 2;
|
border_size = 2;
|
||||||
|
|
||||||
|
@ -56,6 +56,7 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
numlock_by_default = true;
|
numlock_by_default = true;
|
||||||
kb_options = "compose:caps";
|
kb_options = "compose:caps";
|
||||||
kb_layout = osConfig.console.keyMap;
|
kb_layout = osConfig.console.keyMap;
|
||||||
|
natural_scroll = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
decoration = {
|
decoration = {
|
||||||
|
@ -131,6 +132,9 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
preserve_split = true;
|
preserve_split = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe = true;
|
||||||
|
};
|
||||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||||
misc = {
|
misc = {
|
||||||
force_default_wallpaper = 0;
|
force_default_wallpaper = 0;
|
||||||
|
@ -141,8 +145,7 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
|
|
||||||
bindm = [ "$mod,mouse:272,movewindow" ];
|
bindm = [ "$mod,mouse:272,movewindow" ];
|
||||||
|
|
||||||
bind =
|
bind = [
|
||||||
[
|
|
||||||
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
|
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
|
||||||
"$mod, E, exec, ${lib.my.getExe osConfig.modules.system.roles.desktop.filemanager}"
|
"$mod, E, exec, ${lib.my.getExe osConfig.modules.system.roles.desktop.filemanager}"
|
||||||
"$mod, Return, exec, ${lib.my.getExe osConfig.modules.system.roles.desktop.terminal}"
|
"$mod, Return, exec, ${lib.my.getExe osConfig.modules.system.roles.desktop.terminal}"
|
||||||
|
@ -178,27 +181,31 @@ mkIf osConfig.programs.hyprland.enable {
|
||||||
",XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next"
|
",XF86AudioNext, exec, ${pkgs.playerctl}/bin/playerctl next"
|
||||||
",XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl previous"
|
",XF86AudioPrev, exec, ${pkgs.playerctl}/bin/playerctl previous"
|
||||||
#: }}}
|
#: }}}
|
||||||
]
|
|
||||||
++ (
|
# Workspaces
|
||||||
# workspaces
|
"$mod, code:10, workspace, 1"
|
||||||
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
|
"$mod, code:11, workspace, 2"
|
||||||
builtins.concatLists (
|
"$mod, code:12, workspace, 3"
|
||||||
builtins.genList (
|
"$mod, code:13, workspace, 4"
|
||||||
x:
|
"$mod, code:14, workspace, 5"
|
||||||
let
|
"$mod, code:15, workspace, 6"
|
||||||
ws =
|
"$mod, code:16, workspace, 7"
|
||||||
let
|
"$mod, code:17, workspace, 8"
|
||||||
c = (x + 1) / 10;
|
"$mod, code:18, workspace, 9"
|
||||||
in
|
"$mod, code:19, workspace, 10"
|
||||||
builtins.toString (x + 1 - (c * 10));
|
|
||||||
in
|
# Send to Workspaces
|
||||||
[
|
"$mod SHIFT, code:10, movetoworkspace, 1"
|
||||||
"$mod, ${ws}, workspace, ${toString (x + 1)}"
|
"$mod SHIFT, code:11, movetoworkspace, 2"
|
||||||
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
|
"$mod SHIFT, code:12, movetoworkspace, 3"
|
||||||
]
|
"$mod SHIFT, code:13, movetoworkspace, 4"
|
||||||
) 10
|
"$mod SHIFT, code:14, movetoworkspace, 5"
|
||||||
)
|
"$mod SHIFT, code:15, movetoworkspace, 6"
|
||||||
);
|
"$mod SHIFT, code:16, movetoworkspace, 7"
|
||||||
|
"$mod SHIFT, code:17, movetoworkspace, 8"
|
||||||
|
"$mod SHIFT, code:18, movetoworkspace, 9"
|
||||||
|
"$mod SHIFT, code:19, movetoworkspace, 10"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,10 @@ in
|
||||||
|
|
||||||
modules = {
|
modules = {
|
||||||
system = {
|
system = {
|
||||||
roles.desktop.enable = true;
|
roles = {
|
||||||
|
desktop.enable = true;
|
||||||
|
gaming.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
"DP-2" = {
|
"DP-2" = {
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
system = {
|
system = {
|
||||||
roles = {
|
roles = {
|
||||||
desktop.enable = true;
|
desktop.enable = true;
|
||||||
gaming.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue