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 // Choose the order of the modules
"modules-left": ["hyprland/workspaces"], "modules-left": ["hyprland/workspaces"],
"modules-center": ["custom/music"], "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": { "wlr/workspaces": {
"disable-scroll": true, "disable-scroll": true,
"sort-by-name": true, "sort-by-name": true,
@@ -43,10 +43,10 @@
"warning": 30, "warning": 30,
"critical": 15 "critical": 15
}, },
"format": "{icon}", "format": "{capacity}%",
"format-charging": "", "format-charging": "{capacity}% (CHRG)",
"format-plugged": "", "format-plugged": "{capacity}% (PLUG)",
"format-alt": "{icon}", "format-alt": "{capacity}%",
"format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""] "format-icons": ["", "", "", "", "", "", "", "", "", "", "", ""]
}, },
"pulseaudio": { "pulseaudio": {
@@ -58,6 +58,11 @@
}, },
"on-click": "pavucontrol" "on-click": "pavucontrol"
}, },
"custom/wifi": {
"tooltip": false,
"on-click": "hyprctl dispatch exec [float] 'alacritty -e nmtui'",
"format": "WIFI"
},
"custom/lock": { "custom/lock": {
"tooltip": false, "tooltip": false,
"on-click": "sh -c '(sleep 0.5s; swaylock --grace 0)' & disown", "on-click": "sh -c '(sleep 0.5s; swaylock --grace 0)' & disown",