configuration.nix/modules/home/programs/waybar/style.css

99 lines
1.6 KiB
CSS
Raw Normal View History

2024-04-21 18:44:28 +02:00
* {
font-family: FontAwesome, 'Fira Code';
font-size: 13px;
}
window#waybar {
background-color: rgba(43, 48, 59, 0.1);
2024-05-15 18:21:13 +02:00
border-bottom: 2px solid rgba(100, 114, 125, 0.5);
color: @rosewater;
2024-04-21 18:44:28 +02:00
}
#workspaces button {
padding: 0 5px;
2024-05-15 18:21:13 +02:00
background-color: @base;
color: @text;
2024-04-21 19:02:59 +02:00
border-radius: 6px;
2024-04-21 18:44:28 +02:00
}
#workspaces button:hover {
2024-05-15 18:21:13 +02:00
background: @mantle;
2024-04-21 18:44:28 +02:00
}
#workspaces button.focused {
2024-05-15 18:21:13 +02:00
background-color: @crust;
box-shadow: inset 0 -2px @sky;
2024-04-21 18:44:28 +02:00
}
#workspaces button.urgent {
2024-05-15 18:21:13 +02:00
background-color: @maroon;
2024-04-21 18:44:28 +02:00
}
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#power-profiles-daemon,
#mpd {
padding: 0 10px;
2024-05-15 18:03:56 +02:00
color: @text;
2024-05-15 18:21:13 +02:00
background-color: @base;
2024-04-21 18:44:28 +02:00
margin: 0 .5em;
border-radius: 9999px;
2024-05-15 18:03:56 +02:00
}
#clock.week {
margin-right: 0px;
color: @peach;
border-radius: 9999px 0px 0px 9999px;
}
#clock.year {
margin: 0px;
padding: 0px;
color: @pink;
border-radius: 0px;
}
#clock.time {
margin-left: 0px;
color: @sky;
border-radius: 0px 9999px 9999px 0px;
2024-04-21 18:44:28 +02:00
}
#battery.charging, #battery.plugged {
2024-05-15 20:00:34 +02:00
color: @green;
2024-04-21 18:44:28 +02:00
}
@keyframes blink {
to {
background-color: #ffffff;
color: #000000;
}
}
2024-04-21 20:15:37 +02:00
#battery.warning:not(.charging) {
2024-05-15 18:21:13 +02:00
background-color: @red;
2024-04-21 18:44:28 +02:00
}
/* Using steps() instead of linear as a timing function to limit cpu usage */
#battery.critical:not(.charging) {
2024-05-15 18:21:13 +02:00
background-color: @maroon;
2024-04-21 18:44:28 +02:00
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: steps(12);
animation-iteration-count: infinite;
animation-direction: alternate;
}