2023-07-26 19:11:44 +02:00
|
|
|
|
{ config, lib, ... }:
|
2023-07-05 06:36:38 +02:00
|
|
|
|
|
2023-07-26 19:11:44 +02:00
|
|
|
|
let
|
2023-08-02 01:07:51 +02:00
|
|
|
|
opacity = lib.strings.floatToString (config.stylix.opacity.terminal - 0.025);
|
2023-07-26 19:11:44 +02:00
|
|
|
|
in
|
2023-07-04 13:25:08 +02:00
|
|
|
|
{
|
|
|
|
|
xdg.configFile."ironbar/config.json".text = /* json */ ''
|
|
|
|
|
{
|
2023-09-12 21:22:56 +02:00
|
|
|
|
"name": "main",
|
2023-07-04 13:25:08 +02:00
|
|
|
|
"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"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
2023-07-04 13:25:08 +02:00
|
|
|
|
"center": [
|
|
|
|
|
{
|
2023-07-18 04:10:29 +02:00
|
|
|
|
"type": "launcher",
|
2023-09-12 21:24:32 +02:00
|
|
|
|
"icon_size": 39,
|
2023-07-18 04:10:29 +02:00
|
|
|
|
"favorites": [
|
|
|
|
|
"librewolf",
|
|
|
|
|
"kitty",
|
2023-07-27 00:25:52 +02:00
|
|
|
|
"thunar",
|
2023-08-02 00:58:14 +02:00
|
|
|
|
"audacity",
|
|
|
|
|
"Gimp-2.10",
|
2023-07-18 04:10:29 +02:00
|
|
|
|
"org.qutebrowser.qutebrowser",
|
|
|
|
|
"Logseq",
|
|
|
|
|
"spek",
|
2023-10-30 19:29:17 +01:00
|
|
|
|
"Mullvad Browser"
|
2023-07-18 04:10:29 +02:00
|
|
|
|
]
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
"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 */ ''
|
2023-07-04 13:25:08 +02:00
|
|
|
|
* {
|
|
|
|
|
font-family: "Noto Sans CJK JP", "Font Awesome 6 Free Solid";
|
|
|
|
|
font-size: 16px;
|
2023-07-16 01:00:56 +02:00
|
|
|
|
text-shadow: 2px 2px #${base00};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
border: none;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
outline: none;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
background: none;
|
2023-07-05 15:20:32 +02:00
|
|
|
|
color: #${base05};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.background {
|
2023-07-26 19:11:44 +02:00
|
|
|
|
background: alpha(#${base00}, ${opacity});
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-21 20:09:30 +02:00
|
|
|
|
.clipboard {
|
|
|
|
|
padding-right: 1em;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-04 13:25:08 +02:00
|
|
|
|
button:hover {
|
2023-07-05 15:20:32 +02:00
|
|
|
|
background: #${base01};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#bar {
|
2023-07-05 15:20:32 +02:00
|
|
|
|
border-top: 1px solid #${base01};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-21 20:10:10 +02:00
|
|
|
|
.label {
|
|
|
|
|
padding-left: 1em;
|
|
|
|
|
padding-right: 1em;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-04 13:25:08 +02:00
|
|
|
|
.popup {
|
2023-07-05 15:20:32 +02:00
|
|
|
|
border: 1px solid #${base01};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
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};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
font-size: 1.5em;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-18 04:07:10 +02:00
|
|
|
|
.popup-clock .calendar {
|
|
|
|
|
padding: 0.2em 0.4em;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-18 04:08:10 +02:00
|
|
|
|
.popup-clock .calendar:selected {
|
|
|
|
|
color: #${base09};
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-04 13:25:08 +02:00
|
|
|
|
.launcher .item {
|
2023-07-04 18:04:41 +02:00
|
|
|
|
padding-left: 1em;
|
|
|
|
|
padding-right: 1em;
|
2023-07-04 13:25:08 +02:00
|
|
|
|
margin-right: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
2023-07-21 20:11:19 +02:00
|
|
|
|
button:active {
|
2023-07-21 20:12:50 +02:00
|
|
|
|
background: #${base04};
|
2023-07-11 13:55:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
2023-07-04 13:25:08 +02:00
|
|
|
|
.launcher .open {
|
2023-07-27 00:45:27 +02:00
|
|
|
|
box-shadow: inset 0 -2px #${base04};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.launcher .focused {
|
2023-07-05 15:20:32 +02:00
|
|
|
|
box-shadow: inset 0 -2px #${base09};
|
2023-07-16 00:13:13 +02:00
|
|
|
|
background: #${base01};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.popup-launcher {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.popup-launcher .popup-item:not(:first-child) {
|
2023-07-05 15:20:32 +02:00
|
|
|
|
border-top: 1px solid #${base01};
|
2023-07-04 13:25:08 +02:00
|
|
|
|
}
|
|
|
|
|
'';
|
|
|
|
|
}
|