88 lines
2.2 KiB
Nix
88 lines
2.2 KiB
Nix
|
{
|
||
|
lib,
|
||
|
config,
|
||
|
inputs,
|
||
|
system,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib) mkEnableOption mkOption mkIf getExe;
|
||
|
|
||
|
cfg = config.marleyos.wayland.hyprland;
|
||
|
in {
|
||
|
options.marleyos.wayland.hyprland = {
|
||
|
enable = mkEnableOption "hyprland";
|
||
|
|
||
|
monitors = mkOption {
|
||
|
description = "Monitor configuration.";
|
||
|
type = with lib.types; listOf str;
|
||
|
default = [];
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
marleyos.programs.wofi.enable = true;
|
||
|
|
||
|
wayland.windowManager.hyprland = {
|
||
|
enable = true;
|
||
|
|
||
|
systemd.enable = true;
|
||
|
xwayland.enable = true;
|
||
|
|
||
|
settings = {
|
||
|
monitor = cfg.monitors;
|
||
|
|
||
|
# TODO: Use overlay once it's made.
|
||
|
"$terminal" = getExe inputs.wezterm.packages."${system}".default;
|
||
|
"$launcher" = "wofi --show drun";
|
||
|
|
||
|
"$mod" = "SUPER";
|
||
|
|
||
|
bind = [
|
||
|
"$mod, Q, killactive,"
|
||
|
"$mod SHIFT, E, exit,"
|
||
|
|
||
|
"$mod SHIFT, SPACE, togglefloating"
|
||
|
|
||
|
"$mod, RETURN, exec, $terminal"
|
||
|
"$mod, R, exec, $launcher"
|
||
|
|
||
|
"$mod, h, movefocus, l"
|
||
|
"$mod, j, movefocus, d"
|
||
|
"$mod, k, movefocus, u"
|
||
|
"$mod, l, movefocus, r"
|
||
|
|
||
|
"$mod, 1, workspace, 1"
|
||
|
"$mod, 2, workspace, 2"
|
||
|
"$mod, 3, workspace, 3"
|
||
|
"$mod, 4, workspace, 4"
|
||
|
"$mod, 5, workspace, 5"
|
||
|
"$mod, 6, workspace, 6"
|
||
|
"$mod, 7, workspace, 7"
|
||
|
"$mod, 8, workspace, 8"
|
||
|
"$mod, 9, workspace, 9"
|
||
|
"$mod, 0, workspace, 10"
|
||
|
|
||
|
"$mod SHIFT, 1, movetoworkspace, 1"
|
||
|
"$mod SHIFT, 2, movetoworkspace, 2"
|
||
|
"$mod SHIFT, 3, movetoworkspace, 3"
|
||
|
"$mod SHIFT, 4, movetoworkspace, 4"
|
||
|
"$mod SHIFT, 5, movetoworkspace, 5"
|
||
|
"$mod SHIFT, 6, movetoworkspace, 6"
|
||
|
"$mod SHIFT, 7, movetoworkspace, 7"
|
||
|
"$mod SHIFT, 8, movetoworkspace, 8"
|
||
|
"$mod SHIFT, 9, movetoworkspace, 9"
|
||
|
"$mod SHIFT, 0, movetoworkspace, 10"
|
||
|
];
|
||
|
|
||
|
# bindm = [
|
||
|
# "$mod, mouse_down, workspace, e+1"
|
||
|
# "$mod, mouse_up, workspace, e-1"
|
||
|
#
|
||
|
# "$mod, mouse:272, movewindow"
|
||
|
# "$mod, mouse:273, resizewindow"
|
||
|
# ];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|