1
0
forked from extern/nix-config
donovanglover-nix-config/home/ironbar.nix

129 lines
2.4 KiB
Nix
Raw Normal View History

{
xdg.configFile."ironbar/config.json".text = /* json */ ''
{
"icon_theme": "Fluent-dark",
"position": "bottom",
"anchor_to_edges": true,
2023-07-04 19:31:19 +02:00
"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;
}
'';
}