From fe00236514e3555cbc234164ceba647e4aba9a57 Mon Sep 17 00:00:00 2001 From: htom Date: Wed, 24 Sep 2025 09:45:54 +0200 Subject: [PATCH] added tray option to show icons on waybar --- waybar/config.jsonc | 166 ++++++++++++++++++++++++-------------------- 1 file changed, 91 insertions(+), 75 deletions(-) diff --git a/waybar/config.jsonc b/waybar/config.jsonc index 3cde4ca..de7aee7 100644 --- a/waybar/config.jsonc +++ b/waybar/config.jsonc @@ -1,80 +1,96 @@ { - "layer": "top", - "position": "top", - "modules-left": [ - "hyprland/workspaces" + "layer": "top", + "position": "top", + "modules-left": [ + "hyprland/workspaces", + "tray" ], - "modules-center": ["clock"], - "modules-right": [ - "pulseaudio", - "battery", - "network", - "bluetooth", - "cpu", - "memory", - "custom/power" - ], - "hyprland/workspaces": { - "persistent-workspaces": { - "*":5 - }, - "format": "{name}: {icon}", - "format-icons": { - "active": "", - "default": "" - } - }, - "tray": { - "icon-size": 21, - "spacing": 10 - }, - "clock": { - "timezone": "Europe/Budapest", - "tooltip-format": "{:%Y %B}\n{calendar}", - "format": "{:%d - %H:%M}" - }, - "network": { - "format-wifi": "󰤢 ", - "format-ethernet": "󰈀 ", - "format-disconnected": "󰤠 ", - "interval": 5, - "tooltip": false, - "on-click" : "nm-connection-editor" - }, - "bluetooth": { - "format": "󰂲", - "format-on": "{icon}", - "format-off": "{icon}", - "format-connected":"{icon}", - "format-icons":{ - "on":"󰂯", - "off": "󰂲", - "connected": "󰂱", + "modules-center": [ + "clock" + ], + "modules-right": [ + "pulseaudio", + "battery", + "network", + "bluetooth", + "cpu", + "memory", + "custom/power" + ], + "hyprland/workspaces": { + "persistent-workspaces": { + "*": 5 }, - "on-click": "blueman-manager", - "tooltip-format-connected":"{device_enumerate}" - }, - "cpu": { - "interval": 1, - "format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}%", - "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"] - }, - "memory": { - "interval": 30, - "format": " {used:0.1f}G/{total:0.1f}G" - }, - "pulseaudio": { - "format": "{icon} {volume}%", - "format-muted": "", - "format-icons": { - "default": ["", "", " "] + "format": "{name}: {icon}", + "format-icons": { + "active": "", + "default": "" + } }, - "on-click": "pavucontrol" - }, - "custom/power": { - "format": "", - "on-click": "systemctl poweroff", - "tooltip": true, - "tooltip-format": "关机" - } + "tray": { + "icon-size": 21, + "spacing": 10 + }, + "clock": { + "timezone": "Europe/Budapest", + "tooltip-format": "{:%Y %B}\n{calendar}", + "format": "{:%d - %H:%M}" + }, + "network": { + "format-wifi": "󰤢 ", + "format-ethernet": "󰈀 ", + "format-disconnected": "󰤠 ", + "interval": 5, + "tooltip": false, + "on-click": "nm-connection-editor" + }, + "bluetooth": { + "format": "󰂲", + "format-on": "{icon}", + "format-off": "{icon}", + "format-connected": "{icon}", + "format-icons": { + "on": "󰂯", + "off": "󰂲", + "connected": "󰂱", + }, + "on-click": "blueman-manager", + "tooltip-format-connected": "{device_enumerate}" + }, + "cpu": { + "interval": 1, + "format": "{icon0}{icon1}{icon2}{icon3} {usage:>2}%", + "format-icons": [ + "▁", + "▂", + "▃", + "▄", + "▅", + "▆", + "▇", + "█" + ] + }, + "memory": { + "interval": 30, + "format": " {used:0.1f}G/{total:0.1f}G" + }, + "pulseaudio": { + "format": "{icon} {volume}%", + "format-muted": "", + "format-icons": { + "default": [ + "", + "", + " " + ] + }, + "on-click": "pavucontrol" + }, + "custom/power": { + "format": "", + "on-click": "systemctl poweroff", + "tooltip": true, + "tooltip-format": "关机" + } }