diff --git a/home/system/hyprpanel/default.nix b/home/system/hyprpanel/default.nix index ca7285f..020287c 100644 --- a/home/system/hyprpanel/default.nix +++ b/home/system/hyprpanel/default.nix @@ -1,5 +1,7 @@ { pkgs, config, ... }: let + transparentButtons = config.var.theme.bar.transparentButtons; + accent = "#${config.lib.stylix.colors.base0D}"; accent-alt = "#${config.lib.stylix.colors.base03}"; background = "#${config.lib.stylix.colors.base00}"; @@ -195,11 +197,15 @@ in { "theme.bar.menus.tooltip.text": "${foreground}", "theme.bar.menus.dropdownmenu.background":"${background-alt}", "theme.bar.menus.dropdownmenu.text": "${foreground}", - "theme.bar.background": "${background}", + "theme.bar.background": "${ + background + (if transparentButtons then "00" else "") + }", "theme.bar.buttons.style": "default", "theme.bar.buttons.monochrome": true, "theme.bar.buttons.text": "${foreground}", - "theme.bar.buttons.background": "${background-alt}", + "theme.bar.buttons.background": "${ + background-alt + (if transparentButtons then "00" else "") + }", "theme.bar.buttons.icon": "${accent}", "theme.bar.buttons.notifications.background": "${background-alt}", "theme.bar.buttons.hover": "${background}", diff --git a/hosts/laptop/variables.nix b/hosts/laptop/variables.nix index f65b774..84f2621 100644 --- a/hosts/laptop/variables.nix +++ b/hosts/laptop/variables.nix @@ -35,6 +35,7 @@ bar = { transparent = true; + transparentButtons = false; floating = true; }; };