From 6107be0eff1a6f87850c802fe2ffedcb2bb84db4 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Mon, 28 Jul 2025 21:04:36 +0200 Subject: [PATCH] Modify Waybar - Added open for nm-connection-editor on click network component - Added open blueman-manager on click bluetooth component - Added open pavucontrol on click audio component --- waybar/.config/waybar/config.jsonc | 43 ++++++++---------------------- 1 file changed, 11 insertions(+), 32 deletions(-) diff --git a/waybar/.config/waybar/config.jsonc b/waybar/.config/waybar/config.jsonc index 4937fa0..7560713 100644 --- a/waybar/.config/waybar/config.jsonc +++ b/waybar/.config/waybar/config.jsonc @@ -58,17 +58,7 @@ "on-scroll-up": "light -A 5", "on-scroll-down": "light -U 5", "format": "{percent}% {icon}", - "format-icons": [ - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] + "format-icons": [ "", "", "", "", "", "", "", "", "" ] }, "pulseaudio": { "scroll-step": 1, @@ -79,13 +69,10 @@ "phone": "", "portable": "", "car": "", - "default": [ - "", - "", - " " - ] + "default": ["", "", " "] }, - "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", + "on-click": "pavucontrol &", + //"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle", }, "battery": { "interval": 10, @@ -97,17 +84,7 @@ "format-charging": "{capacity}% 󰂄", "format-plugged": "{capacity}% ", "format-alt": "{time} {icon}", - "format-icons": [ - "󰁺", - "󰁻", - "󰁼", - "󰁽", - "󰁾", - "󰁿", - "󰂀", - "󰂁", - "󰂂" - ] + "format-icons": [ "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂" ] }, "clock": { "interval": 1, @@ -145,10 +122,11 @@ "network": { "interval": 1, "format-wifi": "{essid} ", - "format-ethernet": "{ifname} ({ipaddr})", - "format-linked": "{essid} (No IP)", + "format-ethernet": "{ifname} ({ipaddr}) 󰈀", + "format-linked": "{essid} (No IP) 󰈁", "format-disconnected": "Disconnected ⚠", - "tooltip": false + "tooltip": false, + "on-click": "nm-connection-editor &" }, "temperature": { "hwmon-path": "/sys/class/hwmon/hwmon6/temp2_input", @@ -172,6 +150,7 @@ "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", - "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%" + "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%", + "on-click": "blueman-manager &" } }