refactor: waybar styling
This commit is contained in:
parent
ff3de5268e
commit
214b902a3d
6 changed files with 140 additions and 261 deletions
|
@ -5,6 +5,7 @@
|
||||||
"modules-center": [
|
"modules-center": [
|
||||||
"clock",
|
"clock",
|
||||||
"hyprland/language",
|
"hyprland/language",
|
||||||
|
"battery",
|
||||||
"cpu",
|
"cpu",
|
||||||
"custom/gpu-usage",
|
"custom/gpu-usage",
|
||||||
"pulseaudio#input",
|
"pulseaudio#input",
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
],
|
],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
// "custom/launcher",
|
// "custom/launcher",
|
||||||
"battery",
|
|
||||||
"network",
|
"network",
|
||||||
"network#network-2"
|
"network#network-2"
|
||||||
],
|
],
|
||||||
|
|
|
@ -1,103 +1,17 @@
|
||||||
@import "../../../.config/hypr-theme/waybar/global.css";
|
@import "../../../.config/hypr-theme/waybar/global.css";
|
||||||
|
@import "../style/main.css";
|
||||||
* {
|
|
||||||
border: none;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 10px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #fff;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
window {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
background-color: @backgrounddark;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
window>box {
|
window>box {
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
|
margin: 4px;
|
||||||
|
margin-bottom: 2px;
|
||||||
padding: 5px 4px;
|
padding: 5px 4px;
|
||||||
}
|
|
||||||
|
|
||||||
#clock,
|
|
||||||
#battery,
|
|
||||||
#cpu,
|
|
||||||
#custom-gpu-usage,
|
|
||||||
#memory,
|
|
||||||
#disk,
|
|
||||||
#temperature,
|
|
||||||
#backlight,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#custom-media,
|
|
||||||
#custom-launcher,
|
|
||||||
#custom-power,
|
|
||||||
#taskbar,
|
|
||||||
#wireplumber,
|
|
||||||
#language,
|
|
||||||
#workspaces,
|
|
||||||
#tray {
|
|
||||||
background-color: @backgrounddark;
|
background-color: @backgrounddark;
|
||||||
border: #272727 1px solid;
|
|
||||||
padding: 0px 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces,
|
|
||||||
#tray {
|
|
||||||
padding: 0px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu * {
|
|
||||||
all: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu {
|
|
||||||
background-color: @backgrounddark;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu menuitem {
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu separator {
|
|
||||||
min-height: 1px;
|
|
||||||
margin: 6px 0px;
|
|
||||||
background: @workspacesbackground2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu menuitem:hover {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces * {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
all: unset;
|
|
||||||
opacity: 0.2;
|
|
||||||
padding: 0px 6px;
|
|
||||||
transition: all 0.4s cubic-bezier(0.55, -0.68, 0.48, 1.682);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:first-child {
|
|
||||||
padding-left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:last-child {
|
|
||||||
padding-right: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
opacity: 1;
|
|
||||||
background-color: @backgrounddark;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#taskbar button {
|
#taskbar button {
|
||||||
|
@ -108,20 +22,6 @@ window>box {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging,
|
|
||||||
#battery.plugged {
|
|
||||||
background-color: #26a65b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
#backlight {
|
||||||
background-color: #90b1b1;
|
background-color: #90b1b1;
|
||||||
}
|
}
|
||||||
|
@ -133,34 +33,4 @@ window>box {
|
||||||
|
|
||||||
#custom-launcher {
|
#custom-launcher {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
|
||||||
|
|
||||||
#network {
|
|
||||||
min-width: 160px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.network-2 {
|
|
||||||
min-width: 170px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
#language,
|
|
||||||
#clock,
|
|
||||||
#wireplumber,
|
|
||||||
#pulseaudio,
|
|
||||||
#cpu,
|
|
||||||
#custom-gpu-usage {
|
|
||||||
min-width: 65px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#memory {
|
|
||||||
min-width: 85px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber.muted {
|
|
||||||
color: red;
|
|
||||||
}
|
}
|
|
@ -1,14 +1,5 @@
|
||||||
@import "../../../.config/hypr-theme/waybar/global.css";
|
@import "../../../.config/hypr-theme/waybar/global.css";
|
||||||
|
@import "../style/main.css";
|
||||||
* {
|
|
||||||
border: none;
|
|
||||||
border-radius: 4px;
|
|
||||||
font-family: Roboto;
|
|
||||||
font-size: 10px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #fff;
|
|
||||||
min-height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
window {
|
window {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
|
@ -20,86 +11,6 @@ window>box {
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock,
|
|
||||||
#battery,
|
|
||||||
#cpu,
|
|
||||||
#custom-gpu-usage,
|
|
||||||
#memory,
|
|
||||||
#disk,
|
|
||||||
#temperature,
|
|
||||||
#backlight,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#custom-media,
|
|
||||||
#custom-launcher,
|
|
||||||
#custom-power,
|
|
||||||
#taskbar,
|
|
||||||
#wireplumber,
|
|
||||||
#language,
|
|
||||||
#workspaces,
|
|
||||||
#tray {
|
|
||||||
/* border: #272727 1px solid; */
|
|
||||||
background-color: @backgrounddark;
|
|
||||||
padding: 0px 4px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces,
|
|
||||||
#tray {
|
|
||||||
padding: 0px 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu * {
|
|
||||||
all: unset;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu {
|
|
||||||
background-color: @backgrounddark;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu menuitem {
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 6px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu separator {
|
|
||||||
min-height: 1px;
|
|
||||||
margin: 6px 0px;
|
|
||||||
background: @workspacesbackground2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray menu menuitem:hover {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces * {
|
|
||||||
font-size: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
all: unset;
|
|
||||||
opacity: 0.2;
|
|
||||||
padding: 0px 6px;
|
|
||||||
transition: all 0.4s cubic-bezier(0.55, -0.68, 0.48, 1.682);
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:first-child {
|
|
||||||
padding-left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:last-child {
|
|
||||||
padding-right: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.active {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button:hover {
|
|
||||||
opacity: 1;
|
|
||||||
background-color: @backgrounddark;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#taskbar button {
|
#taskbar button {
|
||||||
opacity: 0.2;
|
opacity: 0.2;
|
||||||
}
|
}
|
||||||
|
@ -108,20 +19,6 @@ window>box {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.charging,
|
|
||||||
#battery.plugged {
|
|
||||||
background-color: #26a65b;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
background-color: #f53c3c;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
#backlight {
|
||||||
background-color: #90b1b1;
|
background-color: #90b1b1;
|
||||||
}
|
}
|
||||||
|
@ -135,28 +32,6 @@ window>box {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
|
||||||
min-width: 140px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.network-2 {
|
|
||||||
min-width: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#network.disconnected {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
#language,
|
|
||||||
#clock,
|
|
||||||
#wireplumber,
|
|
||||||
#pulseaudio,
|
|
||||||
#cpu,
|
|
||||||
#custom-gpu-usage,
|
|
||||||
#memory {
|
|
||||||
min-width: 65px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber.muted {
|
#wireplumber.muted {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
110
configs/hyprland/waybar/style/main.css
Normal file
110
configs/hyprland/waybar/style/main.css
Normal file
|
@ -0,0 +1,110 @@
|
||||||
|
@import "./modules/battery.css";
|
||||||
|
@import "./modules/network.css";
|
||||||
|
|
||||||
|
* {
|
||||||
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
font-family: Roboto;
|
||||||
|
font-size: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #fff;
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#clock,
|
||||||
|
#battery,
|
||||||
|
#cpu,
|
||||||
|
#custom-gpu-usage,
|
||||||
|
#memory,
|
||||||
|
#disk,
|
||||||
|
#temperature,
|
||||||
|
#backlight,
|
||||||
|
#network,
|
||||||
|
#pulseaudio,
|
||||||
|
#custom-media,
|
||||||
|
#custom-launcher,
|
||||||
|
#custom-power,
|
||||||
|
#taskbar,
|
||||||
|
#wireplumber,
|
||||||
|
#language,
|
||||||
|
#workspaces,
|
||||||
|
#tray {
|
||||||
|
background-color: @backgrounddark;
|
||||||
|
border: #272727 1px solid;
|
||||||
|
padding: 0px 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces,
|
||||||
|
#tray {
|
||||||
|
padding: 0px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray menu * {
|
||||||
|
all: unset;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray menu {
|
||||||
|
background-color: @backgrounddark;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray menu menuitem {
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray menu separator {
|
||||||
|
min-height: 1px;
|
||||||
|
margin: 6px 0px;
|
||||||
|
background: @workspacesbackground2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tray menu menuitem:hover {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces * {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button {
|
||||||
|
all: unset;
|
||||||
|
opacity: 0.2;
|
||||||
|
padding: 0px 6px;
|
||||||
|
transition: all 0.4s cubic-bezier(0.55, -0.68, 0.48, 1.682);
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:first-child {
|
||||||
|
padding-left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:last-child {
|
||||||
|
padding-right: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button.active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#workspaces button:hover {
|
||||||
|
opacity: 1;
|
||||||
|
background-color: @backgrounddark;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#language,
|
||||||
|
#clock,
|
||||||
|
#wireplumber,
|
||||||
|
#pulseaudio,
|
||||||
|
#cpu,
|
||||||
|
#custom-gpu-usage,
|
||||||
|
#battery {
|
||||||
|
min-width: 65px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#memory {
|
||||||
|
min-width: 85px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wireplumber.muted {
|
||||||
|
color: red;
|
||||||
|
}
|
13
configs/hyprland/waybar/style/modules/battery.css
Normal file
13
configs/hyprland/waybar/style/modules/battery.css
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#battery.charging,
|
||||||
|
#battery.plugged {
|
||||||
|
background-color: #26a65b;
|
||||||
|
}
|
||||||
|
|
||||||
|
#battery.critical:not(.charging) {
|
||||||
|
background-color: #f53c3c;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
|
}
|
11
configs/hyprland/waybar/style/modules/network.css
Normal file
11
configs/hyprland/waybar/style/modules/network.css
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
#network {
|
||||||
|
min-width: 160px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.network-2 {
|
||||||
|
min-width: 170px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#network.disconnected {
|
||||||
|
color: red;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue