Skip to content

Commit

Permalink
Add transparentButtons option in hyprpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherhadi committed Oct 15, 2024
1 parent 391d3dd commit 1c477ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions home/system/hyprpanel/default.nix
Original file line number Diff line number Diff line change
@@ -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}";
Expand Down Expand Up @@ -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}",
Expand Down
1 change: 1 addition & 0 deletions hosts/laptop/variables.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

bar = {
transparent = true;
transparentButtons = false;
floating = true;
};
};
Expand Down

0 comments on commit 1c477ba

Please sign in to comment.