{
"ipc": true,
"height": 20,
"margin-top":5,
"margin-left":5,
"margin-right":5,
"spacing": 1,
"modules-left": ["custom/osk", "custom/tablet", "wlr/workspaces", "tray", "custom/mowayah"],
"modules-center": ["hyprland/window"],
"modules-right": ["pulseaudio", "backlight", "battery", "clock", "custom/quicksettings"],
"sway/mode": {
"format": "{}"
},
"tray": {
"icon-size": 26,
"spacing": 5
},
"clock": {
"on-click": "$HOME/.config/waybar/scripts/date-toggle.sh",
//"tooltip-format": "{:%Y %B}\n{calendar}",
//"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false
},
"memory": {
"interval": 30,
"format": "{used:0.1f}G/{total:0.1f}G "
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["🌑","🌒","🌒","🌓","🌓","🌔","🌔","🌕","🌕"]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}%⚡",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": [" ", " ", " ", " ", " "]
},
"network": {
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ipaddr}/{cidr} ",
"tooltip-format": "{ifname} via {gwaddr}",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-bluetooth-muted": " {icon}",
"format-muted": " ",
"format-source": "{volume}% ",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "amixer -D pipewire sset Master toggle-mute"
},
"custom/osk": {
"format":" ",
"on-click": "$HOME/.config/sway/scripts/tablet/osk-toggle.sh",
"restart-interval": 1,
},
"custom/quicksettings": {
"format":" ",
"on-click": "$HOME/.config/waybar/scripts/quick-toggle.sh",
"restart-interval": 1,
},
"wlr/workspaces": {
//"format": "{icon}",
"on-click": "activate",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"4": "",
"urgent": "",
"active": "",
"default": ""
}
},
"custom/tablet": {
"format":" ",
//"on-click": "$HOME/.config/sway/scripts/tablet/tablet-toggle.sh",
"restart-interval": 1,
},
"custom/mowayah": {
"exec": "$HOME/.config/waybar/scripts/heart.sh",
"on-click": "$HOME/.config/waybar/scripts/toggle-heart.sh",
"restart-interval": 1,
}
}