Theme ironbar

This commit is contained in:
DashieTM 2025-03-17 20:43:38 +01:00
parent 16e3985e87
commit 41b539eea8
4 changed files with 39 additions and 36 deletions

View file

@ -79,22 +79,6 @@
''; '';
}; };
ironbar = {
modules = lib.mkOption {
default = [];
example = [
{
type = "upower";
class = "memory-usage";
}
];
type = with lib.types; listOf attrs;
description = ''
Adds modules to ironbar. See https://github.com/JakeStanger/ironbar/wiki/ for more information.
'';
};
};
bootParams = lib.mkOption { bootParams = lib.mkOption {
default = []; default = [];
example = ["resume=something"]; example = ["resume=something"];

View file

@ -110,6 +110,7 @@ in {
zen.view.welcome-screen.seen = true; zen.view.welcome-screen.seen = true;
zen.theme.accent-color = "#b4bbff"; zen.theme.accent-color = "#b4bbff";
extensions.autoDisableScopes = 0; extensions.autoDisableScopes = 0;
cookiebanners.service.mode = 2;
}; };
isDefault = true; isDefault = true;
id = 0; id = 0;

View file

@ -251,6 +251,7 @@
default = with pkgs; [ default = with pkgs; [
# broke # broke
#bear #bear
gdb
gcc gcc
clang-tools clang-tools
]; ];

View file

@ -1,10 +1,14 @@
{ {
lib, lib,
config, config,
pkgs,
inputs,
options, options,
... ...
}: let }: let
username = config.conf.username; username = config.conf.username;
base16 = pkgs.callPackage inputs.base16.lib {};
scheme = base16.mkSchemeAttrs config.stylix.base16Scheme;
in { in {
options.mods = { options.mods = {
hyprland.ironbar = { hyprland.ironbar = {
@ -22,6 +26,19 @@ in {
Use preconfigured ironbar config. Use preconfigured ironbar config.
''; '';
}; };
modules = lib.mkOption {
default = [];
example = [
{
type = "upower";
class = "memory-usage";
}
];
type = with lib.types; listOf attrs;
description = ''
Adds modules to ironbar. See https://github.com/JakeStanger/ironbar/wiki/ for more information.
'';
};
customConfig = lib.mkOption { customConfig = lib.mkOption {
default = {}; default = {};
example = {}; example = {};
@ -61,11 +78,14 @@ in {
style = style =
if config.mods.hyprland.ironbar.useDefaultCss if config.mods.hyprland.ironbar.useDefaultCss
then then
/*
css
*/
'' ''
@import url("/home/${username}/.config/gtk-3.0/gtk.css"); @import url("/home/${username}/.config/gtk-3.0/gtk.css");
* { * {
color: #71bbe6; color: #${scheme.base0D};
padding: 0px; padding: 0px;
margin: 0px; margin: 0px;
} }
@ -77,8 +97,7 @@ in {
.workspaces { .workspaces {
margin: 2px 0px 0px 5px; margin: 2px 0px 0px 5px;
border-radius: 10px; border-radius: 10px;
/* background-color: #2b2c3b; */ background-color: #${scheme.base00};
background-color: #1E1E2E;
padding: 2px 5px 2px 5px; padding: 2px 5px 2px 5px;
} }
@ -91,16 +110,16 @@ in {
} }
.workspaces .item:hover { .workspaces .item:hover {
background-color: #3e4152; background-color: #${scheme.base02};
} }
.workspaces .item.focused { .workspaces .item.focused {
background-color: #3e4152; background-color: #${scheme.base02};
} }
.audio-box { .audio-box {
padding: 2em; padding: 2em;
background-color: #1E1E2E; background-color: #${scheme.base00};
border-radius: 5px; border-radius: 5px;
} }
@ -121,10 +140,8 @@ in {
} }
.focused { .focused {
/* margin: 2px 0px 0px 0px; */
padding: 0px 5px 0px 5px; padding: 0px 5px 0px 5px;
/* background-color: 1a1b26; */ background-color: #${scheme.base00};
background-color: #1E1E2E;
font-size: 17px; font-size: 17px;
border-radius: 10px; border-radius: 10px;
} }
@ -132,7 +149,7 @@ in {
#bar #end { #bar #end {
margin: 0px 5px 0px 0px; margin: 0px 5px 0px 0px;
padding: 0px 5px 0px 5px; padding: 0px 5px 0px 5px;
background-color: #1E1E2E; background-color: #${scheme.base00};
border-radius: 10px; border-radius: 10px;
} }
@ -141,7 +158,7 @@ in {
margin: 0em 3px; margin: 0em 3px;
border-radius: 100%; border-radius: 100%;
font-size: 13px; font-size: 13px;
background-color: #1E1E2E; background-color: #${scheme.base00};
} }
.popup-button-box { .popup-button-box {
@ -151,19 +168,19 @@ in {
.clock { .clock {
padding: 0px 5px 0px 5px; padding: 0px 5px 0px 5px;
font-size: 17px; font-size: 17px;
background-color: #1E1E2E; background-color: #${scheme.base00};
} }
.clock:hover { .clock:hover {
background-color: #3e4152; background-color: #${scheme.base02};
} }
.custom button { .custom button {
background-color: #1E1E2E; background-color: #${scheme.base00};
} }
.custom button:hover { .custom button:hover {
background-color: #3e4152; background-color: #${scheme.base02};
} }
.memory-usage { .memory-usage {
@ -172,11 +189,11 @@ in {
} }
.memory-usage:hover { .memory-usage:hover {
background-color: #3e4152; background-color: #${scheme.base02};
} }
.popup-clock { .popup-clock {
background-color: #1E1E2E; background-color: #${scheme.base00};
border-radius: 5px; border-radius: 5px;
padding: 2px 8px 10px 8px; padding: 2px 8px 10px 8px;
} }
@ -192,7 +209,7 @@ in {
} }
.popup-clock .calendar:selected { .popup-clock .calendar:selected {
background-color: #3e4152; background-color: #${scheme.base02};
} }
'' ''
+ config.mods.hyprland.ironbar.customCss + config.mods.hyprland.ironbar.customCss
@ -206,11 +223,11 @@ in {
then then
{ {
end = end =
config.conf.ironbar.modules config.mods.hyprland.ironbar.modules
++ [ ++ [
{ {
type = "sys_info"; type = "sys_info";
format = [" {memory_percent}"]; format = [" {memory_percent}"];
interval.memory = 30; interval.memory = 30;
class = "memory-usage"; class = "memory-usage";
} }