2024-12-18 09:40:11 +03:00
|
|
|
{ config, ... }:
|
|
|
|
let
|
|
|
|
paddingH = "12px";
|
|
|
|
paddingV = "0";
|
|
|
|
in
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
# ISSUE: https://github.com/Alexays/Waybar/issues/3303
|
|
|
|
# This way I am forced to apply the padding to children of each group
|
|
|
|
# instead of the whole group.
|
|
|
|
text = ''
|
|
|
|
/* See the ISSUE above. */
|
|
|
|
#custom-taghw1,
|
|
|
|
#custom-tagbt1 {
|
|
|
|
padding-left: ${paddingH};
|
|
|
|
}
|
2024-09-13 23:57:09 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
#custom-taghw2,
|
|
|
|
#custom-tagbt2 {
|
|
|
|
padding-right: ${paddingH};
|
|
|
|
}
|
2024-09-13 23:57:09 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
/* Padding for global widgets. */
|
|
|
|
#clock,
|
|
|
|
#custom-display,
|
|
|
|
#custom-network,
|
|
|
|
#mpris,
|
|
|
|
#pulseaudio,
|
|
|
|
#scratchpad {
|
|
|
|
padding: ${paddingV} ${paddingH};
|
|
|
|
}
|
2024-05-04 09:23:33 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
/* Padding for combined widgets. */
|
|
|
|
#cpu.load,
|
|
|
|
#custom-powerlimit,
|
|
|
|
#custom-powersave,
|
|
|
|
#memory,
|
|
|
|
#temperature {
|
|
|
|
padding-left: 4px;
|
|
|
|
}
|
2024-05-04 09:23:33 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
/* Hover style. */
|
|
|
|
#batteryinfo:hover,
|
|
|
|
#clock:hover,
|
|
|
|
#custom-display:hover,
|
|
|
|
#custom-network:hover,
|
|
|
|
#hardware:hover,
|
|
|
|
#mpris:hover,
|
|
|
|
#pulseaudio:hover,
|
|
|
|
#scratchpad:hover,
|
|
|
|
#workspaces button:hover {
|
|
|
|
background-color: rgba(${config.module.style.color.borderR},${config.module.style.color.borderG},${config.module.style.color.borderB},${toString config.module.style.opacity.desktop});
|
|
|
|
}
|
2024-05-24 03:43:20 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
/* Critical state. */
|
|
|
|
#battery,
|
|
|
|
#cpu.usage,
|
|
|
|
#custom-display,
|
|
|
|
#custom-network,
|
|
|
|
#memory,
|
|
|
|
#pulseaudio,
|
|
|
|
#temperature {
|
|
|
|
border-top: ${toString config.module.style.window.border}px solid transparent;
|
|
|
|
border-bottom: ${toString config.module.style.window.border}px solid transparent;
|
|
|
|
}
|
2024-11-08 08:21:49 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
#battery.critical,
|
|
|
|
#cpu.usage.critical,
|
|
|
|
#custom-display.modified,
|
|
|
|
#custom-network.issue,
|
|
|
|
#custom-network.vpn,
|
|
|
|
#custom-network.btlow,
|
|
|
|
#memory.critical,
|
|
|
|
#pulseaudio.muted,
|
|
|
|
#pulseaudio.source-muted,
|
|
|
|
#temperature.critical {
|
|
|
|
border-top: ${toString config.module.style.window.border}px solid #${config.module.style.color.accent};
|
|
|
|
}
|
2024-05-24 03:43:20 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
/* Widget-specific styling. */
|
|
|
|
#workspaces button {
|
|
|
|
padding: ${paddingV} 4px;
|
|
|
|
border-top: ${toString config.module.style.window.border}px solid transparent;
|
|
|
|
border-bottom: ${toString config.module.style.window.border}px solid transparent;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
2024-05-24 03:43:20 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
#workspaces button.focused {
|
|
|
|
border-top: ${toString config.module.style.window.border}px solid #${config.module.style.color.accent};
|
|
|
|
}
|
2024-11-08 08:21:49 +03:00
|
|
|
|
2024-12-18 09:40:11 +03:00
|
|
|
#clock {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
'';
|
2024-05-02 04:47:21 +03:00
|
|
|
}
|