forked from nico/dots
waybar: redo styles completely
This commit is contained in:
parent
2937302a28
commit
4245e33441
1 changed files with 230 additions and 145 deletions
|
|
@ -1,229 +1,314 @@
|
||||||
@define-color white #F2F2F2;
|
/*@define-color foreground #c0caf5;*/
|
||||||
@define-color black #000203;
|
@define-color foreground #1a1b26;
|
||||||
@define-color background #000203;
|
@define-color background #1a1b26;
|
||||||
@define-color text #BECBCB;
|
|
||||||
@define-color lightgray #686868;
|
|
||||||
@define-color darkgray #353535;
|
|
||||||
|
|
||||||
@define-color red #F38BA8;
|
@define-color black #15161e;
|
||||||
@define-color yellow #E0AF68;
|
@define-color red #f7768e;
|
||||||
@define-color green #9ECE6A;
|
@define-color green #9ece6a;
|
||||||
@define-color blue #7AA2F7;
|
@define-color yellow #e0af68;
|
||||||
@define-color magenta #BB9AF7;
|
@define-color blue #7aa2f7;
|
||||||
|
@define-color purple #bb9af7;
|
||||||
|
@define-color lightblue #7dcfff;
|
||||||
/* MIT License
|
@define-color #a9b1d6;
|
||||||
Copyright (c) 2024 LightCrimson
|
|
||||||
https://github.com/yurihikari/garuda-hyprdots
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE. */
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
color: @lavender;
|
/* `otf-font-awesome` is required to be installed for icons */
|
||||||
border: 0;
|
font-family: JetBrainsMono Nerd Font, FontAwesome, Roboto, Helvetica, Arial, sans-serif;
|
||||||
padding: 0 0;
|
font-size: 13px;
|
||||||
font-family: JetBrainsMono Nerd Font;
|
border-radius: 10px;
|
||||||
font-size: 18px;
|
transition-duration: 0.5s;
|
||||||
font-weight: bold;
|
}
|
||||||
|
|
||||||
|
.module {
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
window#waybar {
|
window#waybar {
|
||||||
border: 0px solid rgba(0, 0, 0, 0);
|
color: @foreground;
|
||||||
background-color: @background;
|
background-color: transparent;
|
||||||
|
transition-property: background-color;
|
||||||
|
transition-duration: .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button {
|
window#waybar.hidden {
|
||||||
color: @background;
|
opacity: 0.2;
|
||||||
border-radius: 50%;
|
|
||||||
/* background-color: @background; */
|
|
||||||
margin: 0px 0px;
|
|
||||||
padding: 4 6 2 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover {
|
/*
|
||||||
color: @red;
|
window#waybar.empty {
|
||||||
box-shadow: none;
|
background-color: transparent;
|
||||||
/* Remove predefined box-shadow */
|
}
|
||||||
text-shadow: none;
|
window#waybar.solo {
|
||||||
/* Remove predefined text-shadow */
|
background-color: #FFFFFF;
|
||||||
border: 0px;
|
}
|
||||||
background: none;
|
*/
|
||||||
|
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button:hover * {
|
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||||
color: @red;
|
button:hover {
|
||||||
background-color: @background;
|
background: inherit;
|
||||||
}
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
|
|
||||||
#workspaces * {
|
|
||||||
color: whitesmoke;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces {
|
#workspaces {
|
||||||
border-style: solid;
|
|
||||||
background-color: @background;
|
background-color: @background;
|
||||||
opacity: 1;
|
color: @lightblue;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin: 8px 0px 8px 8px;
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
background: rgba(0, 0, 0, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused {
|
#workspaces button.focused {
|
||||||
color: @red;
|
background-color: #64727D;
|
||||||
border-radius: 20px;
|
box-shadow: inset 0 -3px #ffffff;
|
||||||
/* background-color: @flamingo; */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#workspaces button.focused * {
|
#workspaces button.urgent {
|
||||||
color: @red;
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
#clock,
|
||||||
#custom-swap,
|
|
||||||
#custom-cava-internal,
|
|
||||||
#battery,
|
#battery,
|
||||||
#cpu,
|
#cpu,
|
||||||
#memory,
|
#memory,
|
||||||
#idle_inhibitor,
|
#disk,
|
||||||
#temperature,
|
#temperature,
|
||||||
#custom-keyboard-layout,
|
|
||||||
#backlight,
|
#backlight,
|
||||||
#network,
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#mode,
|
|
||||||
#tray,
|
|
||||||
#custom-swaync,
|
|
||||||
#custom-pacman,
|
|
||||||
#custom-media,
|
#custom-media,
|
||||||
#privacy,
|
#tray,
|
||||||
|
#mode,
|
||||||
|
#idle_inhibitor,
|
||||||
|
#scratchpad,
|
||||||
|
#power-profiles-daemon,
|
||||||
#mpd {
|
#mpd {
|
||||||
padding: 5px 8px;
|
padding: 0 10px;
|
||||||
border-style: solid;
|
background-color: @background;
|
||||||
background-color: shade(@background, 1);
|
color: @blue;
|
||||||
opacity: 1;
|
}
|
||||||
margin: 8px 0;
|
|
||||||
|
#window,
|
||||||
|
#workspaces {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* If workspaces is the leftmost module, omit left margin */
|
||||||
|
.modules-left > widget:first-child > #workspaces {
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* If workspaces is the rightmost module, omit right margin */
|
||||||
|
.modules-right > widget:last-child > #workspaces {
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock {
|
#clock {
|
||||||
/* background-color:#a3be8c; */
|
border-top-right-radius: 0px;
|
||||||
color: @sky;
|
border-bottom-right-radius: 0px;
|
||||||
border-radius: 10px;
|
margin-right: 0px;
|
||||||
margin: 8px 10px;
|
|
||||||
|
background-color: @background;
|
||||||
|
color: @red;
|
||||||
}
|
}
|
||||||
|
|
||||||
#backlight {
|
#custom-swaync {
|
||||||
color: @yellow;
|
border-top-left-radius: 0px;
|
||||||
/* border-bottom: 2px solid @yellow; */
|
border-bottom-left-radius: 0px;
|
||||||
border-radius: 10px 0 0 10px;
|
margin-left: 0px;
|
||||||
|
|
||||||
|
background-color: @red;
|
||||||
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
|
background-color: @background;
|
||||||
color: @green;
|
color: @green;
|
||||||
/* border-bottom: 2px solid #d8dee9; */
|
|
||||||
border-radius: 0 10px 10px 0;
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging {
|
#battery.charging, #battery.plugged {
|
||||||
color: #81a1c1;
|
color: #ffffff;
|
||||||
/* border-bottom: 2px solid #81a1c1; */
|
background-color: #26A65B;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes blink {
|
@keyframes blink {
|
||||||
to {
|
to {
|
||||||
color: @red;
|
background-color: #ffffff;
|
||||||
/* border-bottom: 2px solid @red; */
|
color: #000000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
color: #bf616a;
|
background-color: #f53c3c;
|
||||||
/* border-bottom: 2px solid #bf616a; */
|
color: #ffffff;
|
||||||
animation-name: blink;
|
animation-name: blink;
|
||||||
animation-duration: 0.5s;
|
animation-duration: 0.5s;
|
||||||
animation-timing-function: linear;
|
animation-timing-function: steps(12);
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network.disabled {
|
#cpu {
|
||||||
color: @red;
|
background-color: @blue;
|
||||||
|
color: #000000;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory {
|
||||||
|
background-color: @background;
|
||||||
|
color: @green;
|
||||||
|
}
|
||||||
|
|
||||||
|
#disk {
|
||||||
|
background-color: @background;
|
||||||
|
color: @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
background-color: @background;
|
||||||
|
color: @lightblue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
#network {
|
||||||
color: @magenta;
|
background-color: @background;
|
||||||
/* border-bottom: 2px solid @green; */
|
color: @purple;
|
||||||
border-radius: 10px;
|
|
||||||
margin-right: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#network.disconnected {
|
#network.disconnected {
|
||||||
color: #bf616a;
|
background-color: @background;
|
||||||
/* border-bottom: 2px solid #bf616a; */
|
color: @red;
|
||||||
}
|
}
|
||||||
|
|
||||||
#wireplumber {
|
#wireplumber {
|
||||||
color: @blue;
|
background-color: @background;
|
||||||
/* border-bottom: 2px solid @flamingo; */
|
color: @yellow;
|
||||||
|
/* color: @foreground;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
#wireplumber.muted {
|
#wireplumber.muted {
|
||||||
color: #3b4252;
|
background-color: @background;
|
||||||
/* border-bottom: 2px solid #3b4252; */
|
color: @red;
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
background-color: @darkgray;
|
|
||||||
margin: 8px 10px;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-media {
|
#custom-media {
|
||||||
background-color: @red;
|
background-color: @background;
|
||||||
color: @background;
|
color: @yellow;
|
||||||
border-radius: 10px;
|
min-width: 100px;
|
||||||
padding: 5px 10px;
|
|
||||||
margin-left: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-swaync {
|
#tray {
|
||||||
color: @background;
|
background-color: @background;
|
||||||
background-color: @red;
|
color: @foreground;
|
||||||
border-radius: 10px;
|
}
|
||||||
margin-left: 5px;
|
|
||||||
margin-right: 15px;
|
#tray > .passive {
|
||||||
padding: 5px 10px;
|
-gtk-icon-effect: dim;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray > .needs-attention {
|
||||||
|
-gtk-icon-effect: highlight;
|
||||||
|
background-color: #eb4d4b;
|
||||||
}
|
}
|
||||||
|
|
||||||
#privacy {
|
#privacy {
|
||||||
background-color: @yellow;
|
padding: 0;
|
||||||
color: @yellow;
|
|
||||||
border-radius: 10px;
|
|
||||||
margin-left: 5px;
|
|
||||||
margin-right: 15px;
|
|
||||||
padding: 5px 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
#privacy-item {
|
||||||
border-style: hidden;
|
padding: 0 5px;
|
||||||
margin-left: 10px;
|
color: @foreground;
|
||||||
/* margin-top:1px;
|
}
|
||||||
padding: 8px 1rem; */
|
|
||||||
margin-right: 10px;
|
|
||||||
color: #eceff4;
|
/*
|
||||||
|
* hover variants
|
||||||
|
*/
|
||||||
|
|
||||||
|
#clock:hover {
|
||||||
|
background-color: @red;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-swaync:hover {
|
||||||
|
background-color: @background;
|
||||||
|
color: @red;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery:hover {
|
||||||
|
background-color: @green;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cpu:hover {
|
||||||
|
background-color: @blue;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory:hover {
|
||||||
|
background-color: @green;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#disk:hover {
|
||||||
|
background-color: @background;
|
||||||
|
color: @yellow;
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight:hover {
|
||||||
|
background-color: @lightblue;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network:hover {
|
||||||
|
background-color: @purple;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected:hover {
|
||||||
|
background-color: @red;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber:hover {
|
||||||
|
background-color: @yellow;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber.muted:hover {
|
||||||
|
background-color: @red;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-media:hover {
|
||||||
|
background-color: @yellow;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray:hover {
|
||||||
|
background-color: @foreground;
|
||||||
|
color: @background;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy:hover {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#privacy-item:hover {
|
||||||
|
background-color: @foreground;
|
||||||
|
color: @background;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue