feat: add wifi and BAT

This commit is contained in:
2025-10-03 10:03:36 +09:00
parent 86b58da07f
commit 047a792cb7

15
config
View File

@@ -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",