Add a rofi module to the desktop group, enabled by the aggregator. It runs the drun application launcher, bound on Super+R. A session menu built on the same themed rofi is bound on Super+Shift+X, and every rofi -dmenu call inherits the Stylix theme, so later utility menus reuse it for free. Also give layer surfaces their own fade-in (layersIn and fadeLayersIn) a touch quicker than the window animation, so the launcher fades in briskly rather than snapping into place.
21 lines
818 B
Nix
21 lines
818 B
Nix
{ config, lib, ... }:
|
|
# The desktop aggregator: one flag brings up the whole graphical session.
|
|
let
|
|
cfg = config.modules.desktop;
|
|
in
|
|
{
|
|
options.modules.desktop.enable = lib.mkEnableOption "the keyboard-driven Hyprland desktop";
|
|
|
|
# Each piece is turned on at default priority, so a host can still override
|
|
# any one of them while the single flag above enables the whole desktop.
|
|
config = lib.mkIf cfg.enable {
|
|
modules.desktop.hyprland.enable = lib.mkDefault true;
|
|
modules.desktop.login.enable = lib.mkDefault true;
|
|
modules.desktop.rofi.enable = lib.mkDefault true;
|
|
modules.desktop.terminal.enable = lib.mkDefault true;
|
|
modules.desktop.theming.enable = lib.mkDefault true;
|
|
modules.desktop.waybar.enable = lib.mkDefault true;
|
|
modules.desktop.audio.enable = lib.mkDefault true;
|
|
};
|
|
}
|