From 97547bcf67542dd8301aeb190df984336fbe3f06 Mon Sep 17 00:00:00 2001 From: Andrea Date: Thu, 10 Jul 2025 08:38:51 +0200 Subject: [PATCH] chore(waybar): update waybar config --- .config/waybar/config.jsonc | 142 ++++++++++++++++++++++-------------- 1 file changed, 89 insertions(+), 53 deletions(-) diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index d07e4e3..4f9b5d3 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -1,20 +1,17 @@ { "name": "main", - "mode": "dock", - "reload_style_on_change": true, - "layer": "top", - "position": "bottom", - "margin": "5 5 5 5", - - "modules-left": ["sway/workspaces", "sway/mode"], - - "modules-center": ["clock"], - + "modules-left": [ + "sway/workspaces", + "sway/mode" + ], + "modules-center": [ + "clock" + ], "modules-right": [ "custom/pacman", "custom/recorder", @@ -24,22 +21,29 @@ "group/connections", "custom/power" ], - "group/system": { "orientation": "inherit", - "modules": ["memory", "disk"] + "modules": [ + "memory", + "disk" + ] }, - "group/misc": { "orientation": "inherit", - "modules": ["pulseaudio", "pulseaudio#microphone", "backlight", "battery"] + "modules": [ + "pulseaudio", + "pulseaudio#microphone", + "backlight", + "battery" + ] }, - "group/connections": { "orientation": "inherit", - "modules": ["bluetooth", "network"] + "modules": [ + "bluetooth", + "network" + ] }, - "sway/workspaces": { "format": "{name} {icon}", "disable-scroll": true, @@ -49,11 +53,9 @@ "default": "" } }, - "sway/mode": { "format": "{}" }, - "hyprland/workspaces": { "format": "{name} {icon}", "disable-scroll": true, @@ -63,13 +65,14 @@ "default": "" } }, - "clock": { "tooltip": true, - "timezones": ["Europe/Rome"], + "tooltip-format": "{calendar}", + "timezones": [ + "Europe/Rome" + ], "format": "{:%a %d %H:%M}", "format-alt": "{%H:%M}", - "tooltip-format": "{calendar}", "calendar": { "mode": "year", "mode-mon-col": 3, @@ -88,7 +91,6 @@ "on-click-right": "mode" } }, - "idle_inhibitor": { "tooltip": true, "format": "{icon}", @@ -97,32 +99,28 @@ "deactivated": "" } }, - "custom/pacman": { + "interval": 60, "tooltip": true, "format": "{} ", - "interval": 60, "exec": "$HOME/.config/waybar/scripts/check-updates.sh", "exec-if": "[[ `$HOME/.config/waybar/scripts/check-updates.sh` != 0 ]]", "signal": 1 }, - "custom/recorder": { + "interval": 1, "tooltip": true, "format": "Rec 󱣴", "return-type": "json", - "interval": 1, "exec": "echo '{\"class\": \"recording\"}'", "exec-if": "pgrep wf-recorder", "on-click": "$HOME/.config/waybar/scripts/close-screen-recorder.sh" }, - "custom/power": { "tooltip": false, "format": "⏻", "on-click": "wlogout -b 5 -s -T 400 -B 400 -L 400 -R 400 -c 20" }, - "privacy": { "icon-spacing": 4, "icon-size": 18, @@ -145,9 +143,9 @@ } ] }, - "pulseaudio": { "tooltip": true, + "tooltip-format": "Playing at {volume}%", "format": "{volume}% {icon}", "format-bluetooth": "{volume}% {icon}", "format-bluetooth-muted": "{volume}% 󰂲", @@ -158,79 +156,117 @@ "headphone": "", "hands-free": "󰋎", "headset": "󰋎", - "default": ["", "", ""] + "default": [ + "", + "", + "" + ] }, - "on-click": "pavucontrol" + "on-click": "pavucontrol", + "on-click-right": "pamixer -t" }, - "pulseaudio#microphone": { "tooltip": true, "format": "{format_source}", "format-source": "{volume}% ", "format-source-muted": "{volume}% " }, - "backlight": { "tooltip": true, "device": "intel_backlight", "format": "{percent}% {icon}", - "format-icons": ["󰃚", "󰃛", "󰃜", "󰃝", "󰃞", "󰃟", "󰃠"] + "format-icons": [ + "󰃚", + "󰃛", + "󰃜", + "󰃝", + "󰃞", + "󰃟", + "󰃠" + ] }, - "battery": { "interval": 1, "tooltip": true, + "tooltip-format": "{timeTo}\nCapacity: {capacity}%\nPower: {power:0.2f}w\nCycles: {cycles}\nHealth: {health}%", "states": { "warning": 30, "critical": 15 }, "format": "{capacity}% {icon}", - "format-charging": "{capacity}% 󰂄", + "format-charging": "{capacity}% {icon}", "format-plugged": "{capacity}% ", - "format-icons": ["󰁻", "󰁼", "󰁾", "󰂀", "󰂂", "󰁹"], - "tooltip-format": "{timeTo}\nCapacity: {capacity}%\nPower: {power:0.2f}w\nCycles: {cycles}\nHealth: {health}%", + "format-icons": { + "charging": [ + "󰢜", + "󰂆", + "󰂇", + "󰂈", + "󰢝", + "󰂉", + "󰢞", + "󰂊", + "󰂋", + "󰂅" + ], + "default": [ + "󰁺", + "󰁻", + "󰁼", + "󰁽", + "󰁾", + "󰁿", + "󰂀", + "󰂁", + "󰂂", + "󰁹" + ] + }, "on-update": "$HOME/.config/waybar/scripts/check-battery.sh" }, - "disk": { "interval": 3, "tooltip": true, - "format": "{used} ", "tooltip-format": "{used} used out of {total} on {path} ({percentage_used}%)", + "format": "{used} ", "unit": "GiB", "path": "/" }, - "memory": { "interval": 3, "tooltip": true, - "format": "{used:0.2f}GiB ", - "tooltip-format": "{used:0.2f}GiB used out of {total}GiB ({percentage}%)" + "tooltip-format": "{used:0.2f}GiB used out of {total}GiB ({percentage}%)", + "format": "{used:0.2f}GiB " }, - "bluetooth": { "tooltip": true, + "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", + "tooltip-format-disabled": "Disabled", "format": "󰂯", "format-disabled": "󰂲", "format-connected": "{device_alias} 󰂯", "format-connected-battery": "{device_alias} 󰂯 {device_battery_percentage}%", - "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", - "tooltip-format-disabled": "Disabled", "on-click": "blueman-manager" }, - "network": { "interval": 3, "tooltip": true, - "format": "{ifname}", - "format-disconnected": "󰖪", - "format-wifi": "󰖩", - "format-ethernet": "󰈀", "tooltip-format": "{ifname} via {gwaddr} 󰈀", "tooltip-format-wifi": "{ipaddr} ({ifname}) via {essid} ", "tooltip-format-ethernet": "{ipaddr} ({ifname}) via {essid} 󰈀", "tooltip-format-disconnected": "Disconnected", + "format": "{ifname}", + "format-icons": [ + "󰤯", + "󰤟", + "󰤢", + "󰤥", + "󰤨" + ], + "format-disconnected": "󰖪", + "format-wifi": "{icon}", + "format-ethernet": "󰈀", "max-length": 50, "on-click": "nm-connection-editor" } -} +} \ No newline at end of file