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

82 lines
1.6 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-05-02 04:47:21 +03:00
text = ''
#pulseaudio,
2024-05-04 09:23:33 +03:00
#mpris,
#battery,
2024-05-08 19:19:59 +03:00
#custom-display,
2024-05-24 05:31:15 +03:00
#custom-powersave,
#custom-powerlimit,
#tray,
#temperature,
#memory,
#cpu,
#clock,
#scratchpad,
2024-05-02 12:59:31 +03:00
#language {
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
}
#cpu {
padding-right: 0;
}
#temperature {
padding-left: 0;
padding-right: 0;
}
#memory {
padding-left: 0;
2024-05-02 04:47:21 +03:00
}
2024-05-04 09:23:33 +03:00
#custom-powersave,
#custom-powerlimit {
2024-05-24 05:31:15 +03:00
margin-left: -${paddingH};
padding-left: 0;
2024-05-04 09:23:33 +03:00
}
#clock {
font-weight: bold;
2024-05-04 09:23:33 +03:00
}
2024-05-24 03:43:20 +03:00
#battery:hover,
#clock:hover,
#cpu:hover,
#custom-display:hover,
#custom-powerlimit:hover,
#custom-powersave:hover,
#language:hover,
#memory:hover,
#mpris:hover,
#pulseaudio:hover,
#temperature:hover,
#tray:hover,
2024-05-24 05:31:15 +03:00
#scratchpad: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,
#battery.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
'';
}