From 094dc621ea2c9a2240afa1f88bb5f9559ae0e79d Mon Sep 17 00:00:00 2001 From: Andrea Date: Tue, 4 Mar 2025 19:23:00 +0100 Subject: [PATCH] chore(waybar): update config --- waybar/config.jsonc | 12 +++++++----- waybar/style.css | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 7ead184..59af2d2 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -5,16 +5,16 @@ "position": "bottom", "margin": "5 5 5 5", "modules-left": ["sway/workspaces", "sway/mode"], - "modules-center": ["clock", "idle_inhibitor"], + "modules-center": ["clock"], "modules-right": [ "custom/pacman", "custom/recorder", "privacy", + "memory", + "disk", "pulseaudio", "backlight", "battery", - "disk", - "memory", "bluetooth", "network" ], @@ -135,7 +135,7 @@ }, "battery": { - "interval": 3, + "interval": 1, "tooltip": true, "states": { "warning": 30, @@ -144,7 +144,6 @@ "format": "{capacity}% {icon}", "format-charging": "{capacity}% 󰂄", "format-plugged": "{capacity}% ", - "format-alt": "{time} {icon}", "format-icons": ["󰁻", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"], "tooltip-format": "{timeTo}\nCapacity: {capacity}\nPower: {power}w\nCycles: {cycles}\nHealth: {health}%", "on-update": "$HOME/.config/waybar/scripts/check_battery.sh" @@ -154,6 +153,8 @@ "interval": 3, "tooltip": true, "format": "{used} ", + "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)", + "unit": "GiB", "path": "/" }, @@ -161,6 +162,7 @@ "interval": 3, "tooltip": true, "format": "{used}GiB ", + "tooltip-format": "{used}GiB used out of {total}GiB ({percentage}%)", "max-length": 10 }, diff --git a/waybar/style.css b/waybar/style.css index 442d64d..22a2704 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -1,4 +1,5 @@ * { + all: initial; border: none; border-radius: 0; min-height: 20px; @@ -26,11 +27,10 @@ tooltip label { #custom-recorder, #mode, #clock, -#privacy, -#idle_inhibitor, #battery, #pulseaudio, #disk, +#privacy, #memory, #bluetooth, #network, @@ -43,31 +43,31 @@ tooltip label { padding-bottom: 4px; padding-left: 8px; padding-right: 8px; - margin: 4px; + margin-right: 4px; + margin-left: 4px; } #workspaces { transition: none; border-radius: 10px; background-color: #383c4a; - margin: 4px; color: #7c818c; + margin-right: 4px; + margin-left: 4px; } #workspaces button { - padding: 0; + padding-top: 4px; + padding-bottom: 4px; + padding-left: 8px; + padding-right: 8px; } #workspaces button:hover { border-radius: inherit; - color: white; background-color: #666768; } -#workspaces button.focused { - color: white; -} - #bluetooth.connected, #bluetooth.on { background-color: #26a65b;