waybar style cleanup
This commit is contained in:
parent
0b3f90cb05
commit
5427f04fae
@ -3,7 +3,23 @@
|
||||
enable = true;
|
||||
catppuccin.enable = true;
|
||||
settings = {
|
||||
mainBar = {
|
||||
mainBar =
|
||||
let
|
||||
calendar = {
|
||||
mode = "year";
|
||||
mode-mon-col = 3;
|
||||
weeks-pos = "right";
|
||||
format = {
|
||||
months = "<span color='#ffead3'><b>{}</b></span>";
|
||||
days = "<span color='#ecc6d9'><b>{}</b></span>";
|
||||
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
|
||||
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
|
||||
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
in
|
||||
{
|
||||
layer = "top";
|
||||
position = "top";
|
||||
height = 30;
|
||||
@ -18,27 +34,20 @@
|
||||
"clock#time" = {
|
||||
format = "{:%H:%M:%S}";
|
||||
interval = 1;
|
||||
tooltip-format = tooltip-format;
|
||||
calendar = calendar;
|
||||
};
|
||||
|
||||
"clock#week" = {
|
||||
format = "{:%a}";
|
||||
tooltip-format = tooltip-format;
|
||||
calendar = calendar;
|
||||
};
|
||||
|
||||
"clock#year" = {
|
||||
format = "{:%Y-%m-%d}";
|
||||
tooltip-format = "<tt><small>{calendar}</small></tt>";
|
||||
calendar = {
|
||||
mode = "year";
|
||||
mode-mon-col = 3;
|
||||
weeks-pos = "right";
|
||||
format = {
|
||||
months = "<span color='#ffead3'><b>{}</b></span>";
|
||||
days = "<span color='#ecc6d9'><b>{}</b></span>";
|
||||
weeks = "<span color='#99ffdd'><b>W{}</b></span>";
|
||||
weekdays = "<span color='#ffcc66'><b>{}</b></span>";
|
||||
today = "<span color='#ff6699'><b><u>{}</u></b></span>";
|
||||
};
|
||||
};
|
||||
tooltip-format = tooltip-format;
|
||||
calendar = calendar;
|
||||
};
|
||||
|
||||
battery = {
|
||||
|
@ -5,53 +5,28 @@
|
||||
|
||||
window#waybar {
|
||||
background-color: rgba(43, 48, 59, 0.1);
|
||||
border-bottom: 3px solid rgba(100, 114, 125, 0.5);
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
border-bottom: 2px solid rgba(100, 114, 125, 0.5);
|
||||
color: @rosewater;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: rgba(2, 6, 23, 0.5);
|
||||
color: rgb(248, 250, 252);
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
background: rgba(2, 6, 23, 0.9);
|
||||
background: @mantle;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: rgba(2, 6, 23, 0.9);
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
background-color: @crust;
|
||||
box-shadow: inset 0 -2px @sky;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: rgba(69, 10, 10, .9);;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
background-color: @maroon;
|
||||
}
|
||||
|
||||
#clock,
|
||||
@ -73,9 +48,9 @@ button:hover {
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: @text;
|
||||
background-color: @base;
|
||||
margin: 0 .5em;
|
||||
border-radius: 9999px;
|
||||
background-color: @base;
|
||||
}
|
||||
|
||||
#clock.week {
|
||||
@ -97,18 +72,9 @@ button:hover {
|
||||
border-radius: 0px 9999px 9999px 0px;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
#workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
color: rgb(240, 253, 244);
|
||||
background-color: rgba(5, 46, 22, .8);
|
||||
color: @text;
|
||||
background-color: @green;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
@ -119,21 +85,15 @@ button:hover {
|
||||
}
|
||||
|
||||
#battery.warning:not(.charging) {
|
||||
background-color: rgba(69, 26, 3, .8);
|
||||
color: rgb(255, 251, 235);
|
||||
background-color: @red;
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: rgba(69, 10, 10, .8);
|
||||
color: rgb(254, 242, 242);
|
||||
background-color: @maroon;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user