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

138 lines
2.5 KiB
Nix
Raw Normal View History

2023-07-05 06:36:38 +02:00
{ config, ... }:
{
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": [
{
"type": "launcher",
2023-07-18 04:17:32 +02:00
"icon_size": 40,
"favorites": [
"librewolf",
"kitty",
"thunar",
"srb2",
"org.qutebrowser.qutebrowser",
"Logseq",
"spek",
"mullvadbrowser"
]
}
],
"end": [
{
"type": "clock",
"format": "%x%a%R"
}
]
}
'';
2023-07-05 06:36:38 +02:00
xdg.configFile."ironbar/style.css".text = with config.lib.stylix.colors; /* css */ ''
* {
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
font-size: 16px;
text-shadow: 2px 2px #${base00};
border: none;
border-radius: 0;
outline: none;
font-weight: 500;
background: none;
2023-07-05 15:20:32 +02:00
color: #${base05};
}
.background {
background: alpha(#${base00}, 0.9);
}
2023-07-21 20:09:30 +02:00
.clipboard {
padding-right: 1em;
}
button:hover {
2023-07-05 15:20:32 +02:00
background: #${base01};
}
#bar {
2023-07-05 15:20:32 +02:00
border-top: 1px solid #${base01};
}
2023-07-21 20:10:10 +02:00
.label {
padding-left: 1em;
padding-right: 1em;
}
.popup {
2023-07-05 15:20:32 +02:00
border: 1px solid #${base01};
padding: 1em;
}
.popup-clipboard .item {
padding-bottom: 0.3em;
}
.popup-clock .calendar-clock {
font-family: "Maple Mono";
font-size: 2.5em;
padding-bottom: 0.1em;
}
.popup-clock .calendar .header {
padding-top: 1em;
2023-07-05 15:20:32 +02:00
border-top: 1px solid #${base01};
font-size: 1.5em;
}
.popup-clock .calendar {
padding: 0.2em 0.4em;
}
.popup-clock .calendar:selected {
color: #${base09};
}
.launcher .item {
padding-left: 1em;
padding-right: 1em;
margin-right: 4px;
}
button:active {
background: #${base04};
}
.launcher .open {
box-shadow: inset 0 -2px;
}
.launcher .focused {
2023-07-05 15:20:32 +02:00
box-shadow: inset 0 -2px #${base09};
background: #${base01};
}
.popup-launcher {
padding: 0;
}
.popup-launcher .popup-item:not(:first-child) {
2023-07-05 15:20:32 +02:00
border-top: 1px solid #${base01};
}
'';
}