143 lines
3.1 KiB
Plaintext
143 lines
3.1 KiB
Plaintext
{
|
|
"layer": "bottom",
|
|
"position": "top",
|
|
"spacing" : 6,
|
|
"modules-left": [
|
|
"backlight",
|
|
"wireplumber",
|
|
"custom/pomodoro",
|
|
],
|
|
|
|
"modules-center": ["clock"],
|
|
|
|
"modules-right": [
|
|
"tray",
|
|
"bluetooth",
|
|
"temperature",
|
|
"cpu",
|
|
"memory",
|
|
"battery"
|
|
],
|
|
|
|
"hyprland/workspaces": {
|
|
"format": "{name}: {icon}",
|
|
"format-icons": {
|
|
"active": "",
|
|
"default": ""
|
|
}
|
|
},
|
|
|
|
"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}"
|
|
},
|
|
|
|
"custom/music": {
|
|
"format": " {}",
|
|
"escape": true,
|
|
"interval": 5,
|
|
"tooltip": false,
|
|
"exec": "playerctl metadata --format='{{ artist }} - {{ title }}'",
|
|
"on-click": "playerctl play-pause",
|
|
"max-length": 50
|
|
},
|
|
|
|
"clock": {
|
|
"tooltip": false,
|
|
"format": "{:%H:%M - %a,%d}",
|
|
"interval": 1
|
|
},
|
|
|
|
"network": {
|
|
"format-wifi": " {essid}",
|
|
"format-ethernet": " {ifname}",
|
|
"format-disconnected": " ",
|
|
"interval": 5,
|
|
"tooltip-format": "{ipaddr}/{cidr}",
|
|
"on-click": "nm-connection-editor",
|
|
"max-length": 20
|
|
},
|
|
|
|
"cpu": {
|
|
"interval": 1,
|
|
"format": " {usage}%",
|
|
"on-click": "ghostty -e htop"
|
|
},
|
|
|
|
"memory": {
|
|
"interval": 5,
|
|
"format": " {percentage}%",
|
|
"tooltip-format": "{used:0.1f}G/{total:0.1f}G"
|
|
},
|
|
|
|
"temperature": {
|
|
"interval": 5,
|
|
"format": "{icon}{temperatureC}°C",
|
|
"format-icons": ["", "", ""],
|
|
"critical-threshold": 80
|
|
},
|
|
|
|
"custom/uptime": {
|
|
"format": "{}",
|
|
"format-icon": [""],
|
|
"tooltip": false,
|
|
"interval": 1600,
|
|
"exec": "$HOME/.config/waybar/scripts/uptime.sh"
|
|
},
|
|
|
|
"backlight": {
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["","", "", "","","",""],
|
|
"tooltip": false
|
|
},
|
|
|
|
"battery": {
|
|
"interval":2,
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-full": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{icon} {time}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
|
|
"wireplumber": {
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": "",
|
|
"on-click": "pavucontrol",
|
|
"format-icons": ["", "", ""]
|
|
},
|
|
|
|
"custom/lock": {
|
|
"tooltip": false,
|
|
"on-click": "sh -c '(sleep 0s; hyprlock)' & disown",
|
|
"format" : ""
|
|
},
|
|
|
|
"custom/pomodoro": {
|
|
"format": "{}",
|
|
"return-type": "json",
|
|
"exec": "waybar-module-pomodoro --no-work-icons",
|
|
"on-click": "waybar-module-pomodoro toggle",
|
|
"on-click-right": "$HOME/.config/waybar/scripts/pomodoro-preset.sh",
|
|
"on-click-middle": "waybar-module-pomodoro reset",
|
|
},
|
|
|
|
}
|