1
0
forked from extern/nix-config
donovanglover-nix-config/home/ironbar.nix
Donovan Glover 737de3c497
ironbar: Remove background styles
This change makes the bar have one consistent background across all
modules.
2023-07-04 15:42:16 -04:00

129 lines
2.4 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
xdg.configFile."ironbar/config.json".text = /* json */ ''
{
"icon_theme": "Fluent-dark",
"position": "bottom",
"anchor_to_edges": true,
"start": [
{
"type": "clipboard",
"max_items": 3,
"truncate": {
"length": 50,
"mode": "end"
}
}
],
"center": [
{
"show_icons": true,
"type": "launcher",
"favorites": [
"librewolf",
"kitty",
"thunar",
"osu!",
"qutebrowser"
]
}
],
"end": [
{
"type": "clock",
"format": "%x%a%R"
}
]
}
'';
xdg.configFile."ironbar/style.css".text = /* css */ ''
@define-color color_bg #272822;
@define-color color_bg_dark #383838;
@define-color color_border #383838;
@define-color color_border_active #fd971f;
@define-color color_text #ffffff;
@define-color color_urgent #8f0a0a;
* {
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
font-size: 16px;
border: none;
border-radius: 0;
outline: none;
font-weight: 500;
background: none;
}
.background {
background: alpha(@color_bg, 0.95);
}
button, label {
color: @color_text;
}
button:hover {
background: @color_bg_dark;
}
#bar {
border-top: 1px solid @color_border;
}
.popup {
border: 1px solid @color_border;
padding: 1em;
}
.popup-clipboard .item {
padding-bottom: 0.3em;
}
.popup-clock .calendar-clock {
color: @color_text;
font-family: "Maple Mono";
font-size: 2.5em;
padding-bottom: 0.1em;
}
.popup-clock .calendar {
color: @color_text;
}
.popup-clock .calendar .header {
padding-top: 1em;
border-top: 1px solid @color_border;
font-size: 1.5em;
}
.launcher .item {
padding-left: 1em;
padding-right: 1em;
margin-right: 4px;
}
.launcher .open {
box-shadow: inset 0 -2px;
}
.launcher .focused {
box-shadow: inset 0 -2px @color_border_active;
}
.launcher .urgent {
border-bottom: @color_urgent;
}
.popup-launcher {
padding: 0;
}
.popup-launcher .popup-item:not(:first-child) {
border-top: 1px solid @color_border;
}
'';
}