1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-10-30 15:41:50 +08:00
dotfiles/.config/waybar/style.css

113 lines
1.5 KiB
CSS
Raw Normal View History

2022-06-25 21:26:38 +08:00
/*
* vim: ft=less
*/
* {
2024-03-02 19:28:34 +08:00
font-family: "IBM Plex Mono", "Symbols Nerd Font", sans-serif;
2023-07-16 09:49:32 +08:00
font-size: 14px;
2022-06-25 21:26:38 +08:00
min-height: 0;
}
2022-11-30 14:10:00 +08:00
@import "dark.less";
2022-06-25 21:26:38 +08:00
window#waybar {
background: @background;
border-bottom: 1px solid @selection_background;
}
#workspaces,
#window {
2022-06-25 21:26:38 +08:00
margin: 5px 10px;
}
2024-03-02 19:28:34 +08:00
#window {
font-weight: bold;
}
2022-06-25 21:26:38 +08:00
#workspaces button {
2024-03-02 19:28:34 +08:00
padding: 0 0.1em;
2022-06-25 21:26:38 +08:00
background: transparent;
color: @background_b;
}
2023-11-15 11:25:03 +08:00
#workspaces button.visible {
color: @foreground;
font-weight: bold;
}
2023-10-10 21:24:00 +08:00
#workspaces button.active {
2022-06-25 21:26:38 +08:00
color: @foreground;
font-weight: bold;
}
#workspaces button.urgent {
color: @magenta;
}
#custom-player,
#custom-notification,
#memory,
#cpu,
#window {
color: @background_b;
}
#clock {
2024-03-02 19:28:34 +08:00
color: @foreground;
2024-03-03 14:10:09 +08:00
font-weight: bold;
2022-06-25 21:26:38 +08:00
}
#battery {
2024-03-02 19:28:34 +08:00
color: @cyan;
2022-06-25 21:26:38 +08:00
}
#battery.charging {
color: @green;
}
@keyframes blink {
to {
color: @red;
background-color: transparent;
}
}
#battery.warning:not(.charging) {
2024-03-02 19:28:34 +08:00
animation-direction: alternate;
2022-06-25 21:26:38 +08:00
animation-duration: 0.5s;
animation-iteration-count: infinite;
2024-03-02 19:28:34 +08:00
animation-name: blink;
animation-timing-function: linear;
background-color: red;
color: @background;
font-weight: bold;
2022-06-25 21:26:38 +08:00
}
#network.disconnected,
#network.disabled {
color: @red;
2024-03-02 19:28:34 +08:00
font-weight: bold;
2022-06-25 21:26:38 +08:00
}
#network.wifi {
color: @green;
2024-03-02 19:28:34 +08:00
font-style: italic;
2022-06-25 21:26:38 +08:00
}
#clock,
#cpu,
#memory,
#battery,
#network,
#custom-notification,
#tray,
#custom-player {
padding: 0px 5px;
margin: 0px 5px;
}
#clock {
margin-left: 10px;
margin-right: 10px;
}