nix/home/config/waybar/style/Plugin.nix

75 lines
1.7 KiB
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ config, ... }: let
2024-05-24 05:31:15 +03:00
paddingV = "0";
paddingH = "12px";
in {
2024-09-13 23:05:51 +03:00
# ISSUE: https://github.com/Alexays/Waybar/issues/3303
2024-09-13 23:57:09 +03:00
# This way I am forced to apply the padding to children of each group
# instead of the whole group.
2024-05-02 04:47:21 +03:00
text = ''
2024-05-24 05:31:15 +03:00
#clock,
2024-09-13 23:05:51 +03:00
#custom-display,
#language,
#mpris,
#pulseaudio,
2024-05-24 05:31:15 +03:00
#scratchpad,
2024-09-13 23:05:51 +03:00
#tray {
2024-05-24 05:31:15 +03:00
padding: ${paddingV} ${paddingH};
2024-06-29 18:05:39 +03:00
border-top: ${toString config.style.window.border}px solid transparent;
border-bottom: ${toString config.style.window.border}px solid transparent;
2024-05-24 05:31:15 +03:00
}
2024-09-13 23:57:09 +03:00
#cpu,
#battery {
padding-left: ${paddingH};
}
#custom-powersave,
#custom-powerlimit {
padding-right: ${paddingH};
}
2024-09-13 23:05:51 +03:00
#clock {
font-weight: bold;
2024-05-02 04:47:21 +03:00
}
2024-05-04 09:23:33 +03:00
2024-09-13 23:05:51 +03:00
#custom-powerlimit,
#custom-powersave,
2024-09-13 23:05:51 +03:00
#memory,
#temperature {
padding-left: 4px;
2024-05-04 09:23:33 +03:00
}
2024-09-13 23:05:51 +03:00
#batteryinfo:hover,
2024-05-24 03:43:20 +03:00
#clock:hover,
#custom-display:hover,
2024-09-13 23:05:51 +03:00
#hardware:hover,
2024-05-24 03:43:20 +03:00
#language:hover,
#mpris:hover,
#pulseaudio:hover,
2024-05-24 05:31:15 +03:00
#scratchpad:hover,
2024-09-13 23:05:51 +03:00
#tray:hover,
2024-05-24 03:43:20 +03:00
#workspaces button:hover {
2024-06-29 18:05:39 +03:00
background-color: rgba(${config.style.color.border-r},${config.style.color.border-g},${config.style.color.border-b},${toString config.style.opacity.desktop});
2024-05-24 03:43:20 +03:00
}
#pulseaudio.muted,
2024-09-03 16:04:14 +03:00
#pulseaudio.source-muted,
2024-05-24 03:43:20 +03:00
#battery.critical,
#temperature.critical,
2024-05-24 05:31:15 +03:00
#tray.needs-attention,
2024-05-24 03:43:20 +03:00
#custom-display.modified {
2024-06-29 18:05:39 +03:00
border-top: ${toString config.style.window.border}px solid #${config.style.color.accent};
2024-05-24 03:43:20 +03:00
}
#workspaces button {
2024-05-24 05:31:15 +03:00
padding: ${paddingV} 4px;
2024-06-29 18:05:39 +03:00
border-top: ${toString config.style.window.border}px solid transparent;
2024-05-24 05:31:15 +03:00
border-radius: 0;
2024-05-24 03:43:20 +03:00
}
#workspaces button.focused {
2024-06-29 18:05:39 +03:00
border-top: ${toString config.style.window.border}px solid #${config.style.color.accent};
2024-05-04 09:23:33 +03:00
}
2024-05-02 04:47:21 +03:00
'';
}