chore(waybar): update config

This commit is contained in:
Andrea 2025-03-16 10:42:03 +01:00
parent 3b48d97418
commit 01686a0ac8
Signed by: nullndr
GPG Key ID: 8DA8996EF89F33BB
3 changed files with 38 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View File

@ -13,6 +13,7 @@
"memory", "memory",
"disk", "disk",
"pulseaudio", "pulseaudio",
"pulseaudio#microphone",
"backlight", "backlight",
"battery", "battery",
"bluetooth", "bluetooth",
@ -110,10 +111,10 @@
"pulseaudio": { "pulseaudio": {
"tooltip": true, "tooltip": true,
"format": "{volume}% {icon} {format_source}", "format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon} {format_source}", "format-bluetooth": "{volume}% {icon}",
"format-bluetooth-muted": "󰂲 {format_source}", "format-bluetooth-muted": "{volume}% 󰂲",
"format-muted": "{volume}%  {format_source}", "format-muted": "{volume}% ",
"format-source": "{volume}% ", "format-source": "{volume}% ",
"format-source-muted": "{volume}% ", "format-source-muted": "{volume}% ",
"format-icons": { "format-icons": {
@ -122,16 +123,21 @@
"headset": "󰋎", "headset": "󰋎",
"default": ["", "", ""] "default": ["", "", ""]
}, },
"on-click": "pavucontrol", "on-click": "pavucontrol"
"min-length": 13 },
"pulseaudio#microphone": {
"tooltip": true,
"format": "{format_source}",
"format-source": "{volume}% ",
"format-source-muted": "{volume}% "
}, },
"backlight": { "backlight": {
"tooltip": true, "tooltip": true,
"device": "intel_backlight", "device": "intel_backlight",
"format": "{percent}% {icon}", "format": "{percent}% {icon}",
"format-icons": ["󰃚", "󰃛", "󰃜", "󰃝", "󰃞", "󰃟", "󰃠"], "format-icons": ["󰃚", "󰃛", "󰃜", "󰃝", "󰃞", "󰃟", "󰃠"]
"min-length": 7
}, },
"battery": { "battery": {
@ -145,7 +151,7 @@
"format-charging": "{capacity}% 󰂄", "format-charging": "{capacity}% 󰂄",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-icons": ["󰁻", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"], "format-icons": ["󰁻", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"],
"tooltip-format": "{timeTo}\nCapacity: {capacity}\nPower: {power}w\nCycles: {cycles}\nHealth: {health}%", "tooltip-format": "{timeTo}\nCapacity: {capacity}%\nPower: {power:0.2f}w\nCycles: {cycles}\nHealth: {health}%",
"on-update": "$HOME/.config/waybar/scripts/check_battery.sh" "on-update": "$HOME/.config/waybar/scripts/check_battery.sh"
}, },

View File

@ -28,13 +28,11 @@ tooltip label {
#mode, #mode,
#clock, #clock,
#battery, #battery,
#pulseaudio,
#disk, #disk,
#privacy, #privacy,
#memory, #memory,
#bluetooth, #bluetooth,
#network, #network {
#backlight {
transition: none; transition: none;
border-radius: 10px; border-radius: 10px;
background-color: #383c4a; background-color: #383c4a;
@ -47,6 +45,28 @@ tooltip label {
margin-left: 4px; margin-left: 4px;
} }
#backlight,
#pulseaudio {
transition: none;
background-color: #383c4a;
color: #ffffff;
margin: 0px;
}
#pulseaudio:not(.microphone) {
margin-left: 4px;
border-radius: 10px 0 0 10px;
padding-right: 8px;
padding-left: 8px;
}
#backlight {
border-radius: 0 10px 10px 0;
padding-left: 8px;
padding-right: 8px;
margin-right: 4px;
}
#workspaces { #workspaces {
transition: none; transition: none;
border-radius: 10px; border-radius: 10px;
@ -82,12 +102,6 @@ tooltip label {
background-color: #26a65b; background-color: #26a65b;
} }
#pulseaudio.muted,
#pulseaudio.source-muted {
background-color: #f53c3c;
color: white;
}
#battery.charging { #battery.charging {
color: #ffffff; color: #ffffff;
background-color: #26a65b; background-color: #26a65b;