.dotfiles/waybar/style.css

338 lines
4.9 KiB
CSS
Raw Normal View History

@import "gruvbox.css";
2022-05-27 21:13:37 +00:00
/*
* Available colours
* black
* white
* fg
* fghi
* bg
* bghi
* grey00 = bghi
* grey01 = bg
* grey02
* grey03
* grey04
* grey05
* grey06
* grey07
* grey08
* grey09
* grey10 = fg
* grey11 = fghi
* red
* green
* yellow
* blue
* purple
2022-09-06 14:40:57 +00:00
* orange
2022-05-27 21:13:37 +00:00
* aqua
* redhi
* greenhi
* yellowhi
* bluehi
* purple hi
* aquahi
* orangehi
* alert = orange
* warning = orangehi
*/
/* Global/Multi */
* {
2024-10-02 18:55:07 +00:00
font-family: "Anonymice Nerd Font", "Font Awesome 6 Brands", "Font Awesome 6 Free", Monospace;
2023-01-03 18:09:49 +00:00
font-size: 14px;
2022-05-27 21:13:37 +00:00
min-height: 0;
}
window#waybar {
2022-09-05 18:34:15 +00:00
margin: -5px;
2022-05-27 21:13:37 +00:00
animation-name: fadeIn;
animation-duration: 1s;
color: @fg;
2024-10-16 18:59:47 +00:00
border-bottom: solid 1px @fg;
border-top: solid 1px @fg;
2022-05-27 21:13:37 +00:00
}
2024-10-16 18:59:47 +00:00
/* Right */
#window, #custom-weather, #custom-mpd, #custom-keyboard, #backlight, #cpu, #memory, #custom-disk, #temperature, #pulseaudio, #custom-battery, #tray, #custom-wallpaper, #custom-pkg, #custom-clock, #custom-idle_mode, #custom-nc {
border-top: solid 1px @fg;
border-bottom: solid 1px @fg;
2022-05-27 21:13:37 +00:00
margin: 0px;
2024-10-16 18:59:47 +00:00
padding-left: 5px;
}
/* Left-most modules */
#custom-keyboard, #backlight, #tray {
border-top-left-radius: 15px;
border-bottom-left-radius: 15px;
border-left: 1px solid @fg;
padding-left: 5px;
}
/* Misc */
#custom-weather, #custom-mpd, #custom-keyboard {
color: @fg;
background: @grey01;
}
/* Status area */
#backlight, #cpu, #memory, #custom-disk, #temperature, #pulseaudio, #custom-battery {
color: @yellowhi;
background: @grey02;
2022-05-27 21:13:37 +00:00
}
/* Tray */
2024-10-15 22:32:40 +00:00
#tray, #custom-wallpaper, #custom-pkg, #custom-clock, #custom-idle_mode {
background: @grey03;
2022-05-27 21:13:37 +00:00
color: @bluehi;
}
/* Workspaces */
#workspaces {
2024-10-16 18:59:47 +00:00
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
background-color: @grey02;
}
#workspaces button, #mode {
border: solid 1px @fg;
border-left: 0px;
border-top-left-radius: 0px;
border-bottom-left-radius: 0px;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
color: @white;
padding: 0px;
margin: 0px;
background: none;
margin-right: -10px;
padding-left: 6px;
2022-05-27 21:13:37 +00:00
}
2024-10-16 18:59:47 +00:00
#workspaces button:first-child {
padding-left: 5px;
}
#workspaces button:last-child {
margin-right: 0px;
}
2022-05-27 21:13:37 +00:00
#workspaces button.visible {
2024-10-16 18:59:47 +00:00
color: @white;
2022-05-27 21:13:37 +00:00
}
#workspaces button.focused {
2024-10-16 18:59:47 +00:00
color: @orangehi;
border-color: @orangehi;
font-weight: bold;
2022-05-27 21:13:37 +00:00
}
2024-10-16 18:59:47 +00:00
#workspaces button.urgent, #mode {
color: @redhi;
border-color: @redhi;
font-weight: bold;
2022-05-27 21:13:37 +00:00
}
/* Mode */
#mode {
2024-10-16 18:59:47 +00:00
background-color: @grey01;
padding-right: 7px;
2022-05-27 21:13:37 +00:00
}
/* Window title */
2024-10-16 18:59:47 +00:00
window#waybar.empty #window {
background: none;
}
2022-05-27 21:13:37 +00:00
#window {
color: @fg;
2024-10-16 18:59:47 +00:00
margin: 0px 10px;
padding: 0px 20px;
background: linear-gradient(90deg, @bg 0%, @grey03 3%, @grey03 97%, @bg 100%);
2022-05-27 21:13:37 +00:00
}
2024-10-16 18:59:47 +00:00
/* Keyboard */
2022-05-27 21:13:37 +00:00
2024-10-16 18:59:47 +00:00
#custom-keyboard {
padding-left: 5px;
2022-05-27 21:13:37 +00:00
}
2024-10-16 18:59:47 +00:00
#custom-keyboard.alternate {
color: @orange;
2023-01-03 18:09:49 +00:00
}
2024-10-16 18:59:47 +00:00
/* Weather */
2024-10-15 22:32:40 +00:00
2024-10-16 18:59:47 +00:00
#custom-weather {
2024-10-15 22:32:40 +00:00
color: @bluehi;
2024-10-16 18:59:47 +00:00
border-radius: 0px;
padding-right: 24px;
margin-right: -20px;
2024-10-15 22:32:40 +00:00
}
2024-10-16 18:59:47 +00:00
/* MPD */
#mpd {
color: @fg;
2024-10-15 22:32:40 +00:00
}
/* Backlight */
#backlight {
color: @yellowhi;
}
2022-05-27 21:13:37 +00:00
/* CPU */
#cpu {
color: @greenhi;
}
/* Memory */
#memory {
color: @purplehi;
}
/* Disk */
#custom-disk {
2024-10-15 22:32:40 +00:00
color: @orangehi;
2022-05-27 21:13:37 +00:00
}
2024-10-15 22:32:40 +00:00
/*
* green
* blue
* purple
* orange
*
* red
* yellow
* aqua
* redhi
* greenhi
* yellowhi
* bluehi
* purple hi
* aquahi
* orangehi
*/
2022-05-27 21:13:37 +00:00
/* Temperature */
#temperature {
color: @yellowhi;
}
#temperature.critical {
color: @redhi;
}
2024-10-15 22:32:40 +00:00
/* Pulseaudio */
2022-05-27 21:13:37 +00:00
2024-10-15 22:32:40 +00:00
#pulseaudio {
color: @bluehi;
}
#pulseaudio.muted {
color: @grey06;
2022-05-27 21:13:37 +00:00
}
/* Battery */
#custom-battery {
2022-09-12 15:42:45 +00:00
color: @green;
2024-10-16 18:59:47 +00:00
padding-right: 24px;
2022-05-27 21:13:37 +00:00
}
#custom-battery.charging {
2024-10-15 22:32:40 +00:00
margin-top: 2px;
2022-05-27 21:13:37 +00:00
}
#custom-battery.discharging {
2022-09-12 15:42:45 +00:00
color: @yellow;
}
#custom-battery.low {
2022-05-27 21:13:37 +00:00
color: @orange;
}
#custom-battery.critical {
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
color: @redhi;
}
2022-09-12 15:42:45 +00:00
/* Tray */
2022-05-27 21:13:37 +00:00
2022-09-12 15:42:45 +00:00
#tray {
2024-10-16 18:59:47 +00:00
margin-left: -20px;
2024-02-08 23:53:59 +00:00
margin-right: -4px;
2022-05-27 21:13:37 +00:00
}
/* Wallpaper rotation */
#custom-wallpaper {
2024-10-16 18:59:47 +00:00
font-size: 16px;
padding-right: 4px;
2022-09-23 21:39:30 +00:00
}
2022-08-23 19:56:33 +00:00
/* Package upgrades */
#custom-pkg {
margin-bottom: -3px;
2022-05-27 21:13:37 +00:00
}
2022-09-06 14:40:57 +00:00
#custom-pkg.updateable {
2023-01-07 17:03:31 +00:00
color: @orange;
2022-09-06 14:40:57 +00:00
}
2024-10-02 18:55:07 +00:00
/* Idle Mode */
2022-05-27 21:13:37 +00:00
2024-10-02 18:55:07 +00:00
#custom-idle_mode {
font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free";
2024-10-15 22:32:40 +00:00
padding-right: 3px;
2024-10-16 18:59:47 +00:00
padding-left: 0px;
2024-10-15 22:32:40 +00:00
}
#custom-idle_mode.none {
2024-10-16 18:59:47 +00:00
color: @orangehi;
2022-05-27 21:13:37 +00:00
}
2022-09-12 15:42:45 +00:00
/* Clock */
#custom-clock {
color: @fg;
2024-10-15 22:32:40 +00:00
font-weight: bold;
margin: 0px;
2024-10-16 18:59:47 +00:00
padding-right: 5px;
2022-09-12 15:42:45 +00:00
}
2024-10-15 22:32:40 +00:00
/* Notifications */
2022-05-27 21:13:37 +00:00
2024-10-15 22:32:40 +00:00
#custom-nc {
font-family: "NotoSansMono Nerd Font";
background: @grey06;
margin: 0px;
2024-10-16 18:59:47 +00:00
padding-right: 5px;
padding-left: 5px;
}
#custom-nc.dnd-none {
color: @bg;
}
#custom-nc.dnd-notification {
background: @orange;
2022-05-27 21:13:37 +00:00
}