mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-06-07 20:43:42 +02:00
feat: waybar modules styles
This commit is contained in:
parent
792e157815
commit
63face2d97
7 changed files with 99 additions and 119 deletions
|
@ -6,6 +6,8 @@
|
||||||
"clock",
|
"clock",
|
||||||
"hyprland/language",
|
"hyprland/language",
|
||||||
"battery",
|
"battery",
|
||||||
|
"backlight",
|
||||||
|
"memory",
|
||||||
"cpu",
|
"cpu",
|
||||||
"custom/gpu-usage",
|
"custom/gpu-usage",
|
||||||
"pulseaudio#input",
|
"pulseaudio#input",
|
||||||
|
@ -119,22 +121,18 @@
|
||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
// dot style :
|
|
||||||
// "active": "",
|
// "active": "",
|
||||||
// "default": ""
|
"default": "",
|
||||||
// symbolic style :
|
|
||||||
"1": "",
|
"1": "",
|
||||||
"2": "",
|
"2": "",
|
||||||
"3": "",
|
"3": "",
|
||||||
"4": "",
|
"4": "",
|
||||||
"5": "",
|
"5": "",
|
||||||
"6": "",
|
"6": ""
|
||||||
"7": "",
|
|
||||||
"8": "",
|
|
||||||
"9": ""
|
|
||||||
},
|
},
|
||||||
"persistent-workspaces": {
|
"persistent-workspaces": {
|
||||||
"*": 7
|
"eDP-1": 7,
|
||||||
|
"HDMI-A-1": 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keyboard-state": {
|
"keyboard-state": {
|
||||||
|
@ -164,7 +162,7 @@
|
||||||
"interval": 1
|
"interval": 1
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": "{used:0.1f} / {total:0.1f} ",
|
"format": "{used:0.1f} / {total:0.0f} ",
|
||||||
"interval": 5
|
"interval": 5
|
||||||
},
|
},
|
||||||
"backlight": {
|
"backlight": {
|
||||||
|
|
|
@ -13,24 +13,3 @@ window>box {
|
||||||
padding: 5px 4px;
|
padding: 5px 4px;
|
||||||
background-color: @backgrounddark;
|
background-color: @backgrounddark;
|
||||||
}
|
}
|
||||||
|
|
||||||
#taskbar button {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#taskbar button.active {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
|
||||||
background-color: #90b1b1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power {
|
|
||||||
font-size: 18px;
|
|
||||||
min-width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-launcher {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
|
@ -10,28 +10,3 @@ window>box {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#taskbar button {
|
|
||||||
opacity: 0.2;
|
|
||||||
}
|
|
||||||
|
|
||||||
#taskbar button.active {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
|
||||||
background-color: #90b1b1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-power {
|
|
||||||
font-size: 18px;
|
|
||||||
min-width: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-launcher {
|
|
||||||
font-size: 18px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#wireplumber.muted {
|
|
||||||
color: red;
|
|
||||||
}
|
|
|
@ -1,5 +1,6 @@
|
||||||
@import "./modules/battery.css";
|
@import "./modules/battery.css";
|
||||||
@import "./modules/network.css";
|
@import "./modules/network.css";
|
||||||
|
@import "./modules/taskbar.css";
|
||||||
|
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -34,70 +35,14 @@
|
||||||
padding: 0px 6px;
|
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,
|
#language,
|
||||||
#clock,
|
#clock,
|
||||||
#wireplumber,
|
#wireplumber,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#cpu,
|
#cpu,
|
||||||
#custom-gpu-usage,
|
#custom-gpu-usage,
|
||||||
#battery {
|
#battery,
|
||||||
|
#backlight {
|
||||||
min-width: 65px;
|
min-width: 65px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,3 +53,12 @@
|
||||||
#wireplumber.muted {
|
#wireplumber.muted {
|
||||||
color: red;
|
color: red;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#custom-power {
|
||||||
|
font-size: 18px;
|
||||||
|
min-width: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-launcher {
|
||||||
|
font-size: 18px;
|
||||||
|
}
|
0
configs/hyprland/waybar/style/modules/backlight.css
Normal file
0
configs/hyprland/waybar/style/modules/backlight.css
Normal file
|
@ -1,13 +1,24 @@
|
||||||
#battery.charging,
|
#battery.charging,
|
||||||
#battery.plugged {
|
#battery.plugged {
|
||||||
background-color: #26a65b;
|
color: #00ff00;
|
||||||
|
animation: pulse 2s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
#battery.critical:not(.charging) {
|
||||||
background-color: #f53c3c;
|
background-color: #f53c3c;
|
||||||
animation-name: blink;
|
animation: pulse 2s cubic-bezier(0.075, 0.82, 0.165, 1) infinite;
|
||||||
animation-duration: 0.5s;
|
}
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
@keyframes pulse {
|
||||||
animation-direction: alternate;
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
}
|
}
|
63
configs/hyprland/waybar/style/modules/taskbar.css
Normal file
63
configs/hyprland/waybar/style/modules/taskbar.css
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
#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 {
|
||||||
|
opacity: 0.2;
|
||||||
|
}
|
||||||
|
|
||||||
|
#taskbar button.active {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue