mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-28 19:23:48 +01:00
bed4d20e60
Unfortunately, there are too many issues with favorite applications at this time to warrant the usage of them. On the bright side, only showing open applications makes it easy to determine all applications that are open at a glance.
104 lines
1.8 KiB
Nix
104 lines
1.8 KiB
Nix
{ config, ... }:
|
||
|
||
{
|
||
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": [
|
||
{
|
||
"type": "launcher"
|
||
}
|
||
],
|
||
|
||
"end": [
|
||
{
|
||
"type": "clock",
|
||
"format": "%x(%a)%R"
|
||
}
|
||
]
|
||
}
|
||
'';
|
||
|
||
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;
|
||
border: none;
|
||
border-radius: 0;
|
||
outline: none;
|
||
font-weight: 500;
|
||
background: none;
|
||
color: #${base05};
|
||
}
|
||
|
||
.background {
|
||
background: alpha(#${base00}, 0.95);
|
||
}
|
||
|
||
button:hover {
|
||
background: #${base01};
|
||
}
|
||
|
||
#bar {
|
||
border-top: 1px solid #${base01};
|
||
}
|
||
|
||
.popup {
|
||
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;
|
||
border-top: 1px solid #${base01};
|
||
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 #${base09};
|
||
}
|
||
|
||
.popup-launcher {
|
||
padding: 0;
|
||
}
|
||
|
||
.popup-launcher .popup-item:not(:first-child) {
|
||
border-top: 1px solid #${base01};
|
||
}
|
||
'';
|
||
}
|