2024-04-07 22:16:33 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-07-07 01:36:41 -04:00
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-04-07 22:16:33 -04:00
|
|
|
...
|
2024-07-09 23:40:10 -04:00
|
|
|
}: let
|
|
|
|
cfg = config.ar.home;
|
|
|
|
in {
|
|
|
|
config = lib.mkIf cfg.desktop.hyprland.enable {
|
2024-07-19 12:01:43 -04:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
2024-07-19 12:37:11 -04:00
|
|
|
settings =
|
2024-07-19 13:16:37 -04:00
|
|
|
import ./settings.nix {inherit config lib pkgs;};
|
2024-07-19 10:50:27 -04:00
|
|
|
|
2024-07-19 12:50:03 -04:00
|
|
|
extraConfig = ''
|
2024-07-15 00:14:18 -04:00
|
|
|
submap=resize
|
|
|
|
binde=,down,resizeactive,0 10
|
|
|
|
binde=,left,resizeactive,-10 0
|
|
|
|
binde=,right,resizeactive,10 0
|
|
|
|
binde=,up,resizeactive,0 -10
|
|
|
|
binde=,j,resizeactive,0 10
|
|
|
|
binde=,h,resizeactive,-10 0
|
|
|
|
binde=,l,resizeactive,10 0
|
|
|
|
binde=,k,resizeactive,0 -10
|
|
|
|
bind=,escape,submap,reset
|
|
|
|
submap=reset
|
|
|
|
|
|
|
|
submap=move
|
|
|
|
# Move window with keys ++
|
|
|
|
# Move workspaces across monitors with CONTROL + keys.
|
|
|
|
${
|
2024-07-07 01:36:41 -04:00
|
|
|
lib.strings.concatLines
|
|
|
|
(
|
|
|
|
lib.attrsets.mapAttrsToList (key: direction: ''
|
|
|
|
bind = , ${key}, movewindow, ${direction}
|
|
|
|
bind = CONTROL, ${key}, movecurrentworkspacetomonitor, ${direction}
|
|
|
|
'')
|
2024-07-19 12:50:03 -04:00
|
|
|
cfg.desktop.hyprland.windowManagerBinds
|
2024-07-07 01:36:41 -04:00
|
|
|
)
|
2024-06-10 20:15:27 -04:00
|
|
|
}
|
2024-04-14 14:07:37 -04:00
|
|
|
|
2024-07-15 00:14:18 -04:00
|
|
|
# Move active window to a workspace with [1-9]
|
|
|
|
${
|
2024-07-07 01:36:41 -04:00
|
|
|
lib.strings.concatMapStringsSep "\n"
|
|
|
|
(x: "bind = , ${toString x}, movetoworkspace, ${toString x}")
|
2024-07-19 13:15:53 -04:00
|
|
|
[1 2 3 4 5 6 7 8 9]
|
2024-07-07 01:36:41 -04:00
|
|
|
}
|
2024-06-04 21:06:17 -04:00
|
|
|
|
2024-07-15 00:14:18 -04:00
|
|
|
# hyprnome
|
2024-07-19 12:37:11 -04:00
|
|
|
bind = , comma, exec, ${lib.getExe pkgs.hyprnome} --previous --move
|
|
|
|
bind = , period, exec, ${lib.getExe pkgs.hyprnome} --move
|
2024-07-15 00:14:18 -04:00
|
|
|
bind=,escape,submap,reset
|
|
|
|
submap=reset
|
2024-07-07 01:36:41 -04:00
|
|
|
'';
|
|
|
|
};
|
2024-07-09 23:40:10 -04:00
|
|
|
};
|
2024-03-28 22:12:08 -04:00
|
|
|
}
|