From 13aec0311a8a988256920a3fed9238d80e0c6dea Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Fri, 14 Nov 2025 14:20:52 +0100 Subject: [PATCH] Modules/Hyprland: Add option to control hyprpanel autostart --- home/modules/hyprland/autostart.nix | 2 +- home/modules/hyprland/options.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/home/modules/hyprland/autostart.nix b/home/modules/hyprland/autostart.nix index cdf2cb29..c6ef1faf 100644 --- a/home/modules/hyprland/autostart.nix +++ b/home/modules/hyprland/autostart.nix @@ -6,6 +6,7 @@ }: builtins.concatLists [ (lib.optionals hyprland.dunst.enable ["dunst"]) # Notifications + (lib.optionals hyprland.hyprpanel.enable ["hyprpanel"]) # Panel [ # Start clipboard management "wl-paste -t text --watch clipman store --no-persist" @@ -13,7 +14,6 @@ builtins.concatLists [ "hyprctl setcursor ${config.home.pointerCursor.name} ${builtins.toString config.home.pointerCursor.size}" "hyprsunset --identity" - "hyprpanel" # HACK: Hyprland doesn't set the xwayland/x11 keymap correctly "setxkbmap -layout ${hyprland.keyboard.layout} -variant ${hyprland.keyboard.variant} -option ${hyprland.keyboard.option} -model pc104" diff --git a/home/modules/hyprland/options.nix b/home/modules/hyprland/options.nix index fa661a31..b44a7b2b 100644 --- a/home/modules/hyprland/options.nix +++ b/home/modules/hyprland/options.nix @@ -10,6 +10,7 @@ dynamicCursor.enable = lib.mkEnableOption "Enable dynamic cursors"; trails.enable = lib.mkEnableOption "Enable dynamic window trails"; hyprspace.enable = lib.mkEnableOption "Enable hyprspace workspace overview"; + hyprpanel.enable = lib.mkEnableOption "Enable hyprpanel"; keyboard = { layout = lib.mkOption {