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