nix/module/desktop/waybar/style/Plugin.nix

82 lines
1.6 KiB
Nix
Raw Normal View History

2024-05-24 05:31:15 +03:00
{ style, ... }: let
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};
border-top: ${toString(style.window.border)}px solid transparent;
border-bottom: ${toString(style.window.border)}px solid transparent;
}
#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-05-24 05:31:15 +03:00
background-color: rgba(${style.color.border-r},${style.color.border-g},${style.color.border-b},${toString(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 {
border-top: ${toString(style.window.border)}px solid #${style.color.accent};
}
#workspaces button {
2024-05-24 05:31:15 +03:00
padding: ${paddingV} 4px;
2024-05-24 03:43:20 +03:00
border-top: ${toString(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 {
border-top: ${toString(style.window.border)}px solid #${style.color.accent};
2024-05-04 09:23:33 +03:00
}
2024-05-02 04:47:21 +03:00
'';
}