From 047a792cb7dd179cc13557260107739175a1595d Mon Sep 17 00:00:00 2001 From: minco Date: Fri, 3 Oct 2025 10:03:36 +0900 Subject: [PATCH] feat: add wifi and BAT --- config | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/config b/config index 78db727..f76c5d6 100644 --- a/config +++ b/config @@ -5,7 +5,7 @@ // Choose the order of the modules "modules-left": ["hyprland/workspaces"], "modules-center": ["custom/music"], - "modules-right": ["pulseaudio", "backlight", "battery", "clock", "tray", "custom/lock", "custom/power"], + "modules-right": ["pulseaudio", "backlight", "battery", "custom/wifi", "clock", "tray", "custom/lock", "custom/power"], "wlr/workspaces": { "disable-scroll": true, "sort-by-name": true, @@ -43,10 +43,10 @@ "warning": 30, "critical": 15 }, - "format": "{icon}", - "format-charging": "", - "format-plugged": "", - "format-alt": "{icon}", + "format": "{capacity}%", + "format-charging": "{capacity}% (CHRG)", + "format-plugged": "{capacity}% (PLUG)", + "format-alt": "{capacity}%", "format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""] }, "pulseaudio": { @@ -58,6 +58,11 @@ }, "on-click": "pavucontrol" }, + "custom/wifi": { + "tooltip": false, + "on-click": "hyprctl dispatch exec [float] 'alacritty -e nmtui'", + "format": "WIFI" + }, "custom/lock": { "tooltip": false, "on-click": "sh -c '(sleep 0.5s; swaylock --grace 0)' & disown",