chore(waybar): update config

This commit is contained in:
Andrea 2025-03-04 19:23:00 +01:00
parent 16c1772869
commit 094dc621ea
Signed by: nullndr
GPG Key ID: 8DA8996EF89F33BB
2 changed files with 17 additions and 15 deletions

View File

@ -5,16 +5,16 @@
"position": "bottom", "position": "bottom",
"margin": "5 5 5 5", "margin": "5 5 5 5",
"modules-left": ["sway/workspaces", "sway/mode"], "modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["clock", "idle_inhibitor"], "modules-center": ["clock"],
"modules-right": [ "modules-right": [
"custom/pacman", "custom/pacman",
"custom/recorder", "custom/recorder",
"privacy", "privacy",
"memory",
"disk",
"pulseaudio", "pulseaudio",
"backlight", "backlight",
"battery", "battery",
"disk",
"memory",
"bluetooth", "bluetooth",
"network" "network"
], ],
@ -135,7 +135,7 @@
}, },
"battery": { "battery": {
"interval": 3, "interval": 1,
"tooltip": true, "tooltip": true,
"states": { "states": {
"warning": 30, "warning": 30,
@ -144,7 +144,6 @@
"format": "{capacity}% {icon}", "format": "{capacity}% {icon}",
"format-charging": "{capacity}% 󰂄", "format-charging": "{capacity}% 󰂄",
"format-plugged": "{capacity}% ", "format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["󰁻", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"], "format-icons": ["󰁻", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"],
"tooltip-format": "{timeTo}\nCapacity: {capacity}\nPower: {power}w\nCycles: {cycles}\nHealth: {health}%", "tooltip-format": "{timeTo}\nCapacity: {capacity}\nPower: {power}w\nCycles: {cycles}\nHealth: {health}%",
"on-update": "$HOME/.config/waybar/scripts/check_battery.sh" "on-update": "$HOME/.config/waybar/scripts/check_battery.sh"
@ -154,6 +153,8 @@
"interval": 3, "interval": 3,
"tooltip": true, "tooltip": true,
"format": "{used} ", "format": "{used} ",
"tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)",
"unit": "GiB",
"path": "/" "path": "/"
}, },
@ -161,6 +162,7 @@
"interval": 3, "interval": 3,
"tooltip": true, "tooltip": true,
"format": "{used}GiB ", "format": "{used}GiB ",
"tooltip-format": "{used}GiB used out of {total}GiB ({percentage}%)",
"max-length": 10 "max-length": 10
}, },

View File

@ -1,4 +1,5 @@
* { * {
all: initial;
border: none; border: none;
border-radius: 0; border-radius: 0;
min-height: 20px; min-height: 20px;
@ -26,11 +27,10 @@ tooltip label {
#custom-recorder, #custom-recorder,
#mode, #mode,
#clock, #clock,
#privacy,
#idle_inhibitor,
#battery, #battery,
#pulseaudio, #pulseaudio,
#disk, #disk,
#privacy,
#memory, #memory,
#bluetooth, #bluetooth,
#network, #network,
@ -43,31 +43,31 @@ tooltip label {
padding-bottom: 4px; padding-bottom: 4px;
padding-left: 8px; padding-left: 8px;
padding-right: 8px; padding-right: 8px;
margin: 4px; margin-right: 4px;
margin-left: 4px;
} }
#workspaces { #workspaces {
transition: none; transition: none;
border-radius: 10px; border-radius: 10px;
background-color: #383c4a; background-color: #383c4a;
margin: 4px;
color: #7c818c; color: #7c818c;
margin-right: 4px;
margin-left: 4px;
} }
#workspaces button { #workspaces button {
padding: 0; padding-top: 4px;
padding-bottom: 4px;
padding-left: 8px;
padding-right: 8px;
} }
#workspaces button:hover { #workspaces button:hover {
border-radius: inherit; border-radius: inherit;
color: white;
background-color: #666768; background-color: #666768;
} }
#workspaces button.focused {
color: white;
}
#bluetooth.connected, #bluetooth.connected,
#bluetooth.on { #bluetooth.on {
background-color: #26a65b; background-color: #26a65b;