107 lines
3.1 KiB
Text
107 lines
3.1 KiB
Text
|
{
|
||
|
"ipc": true,
|
||
|
"height": 20,
|
||
|
"margin-top":5,
|
||
|
"margin-left":5,
|
||
|
"margin-right":5,
|
||
|
"spacing": 1,
|
||
|
"modules-left": ["custom/osk", "custom/tablet", "sway/workspaces", "sway/mode", "tray", "custom/mowayah"],
|
||
|
"modules-center": ["sway/window"],
|
||
|
"modules-right": ["pulseaudio", "backlight", "battery", "clock", "custom/quicksettings"],
|
||
|
"sway/mode": {
|
||
|
"format": "<span style=\"italic\">{}</span>"
|
||
|
},
|
||
|
"idle_inhibitor": {
|
||
|
"format": "{icon}",
|
||
|
"format-icons": {
|
||
|
"activated": "",
|
||
|
"deactivated": ""
|
||
|
}
|
||
|
},
|
||
|
"tray": {
|
||
|
"icon-size": 26,
|
||
|
"spacing": 5
|
||
|
},
|
||
|
"clock": {
|
||
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
||
|
"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"
|
||
|
},
|
||
|
"sway/workspaces": {
|
||
|
"format":" {name} ",
|
||
|
},
|
||
|
"custom/osk": {
|
||
|
"format":" ",
|
||
|
"on-click": "$HOME/.scripts/osk-toggle.sh",
|
||
|
"restart-interval": 1,
|
||
|
},
|
||
|
|
||
|
"custom/quicksettings": {
|
||
|
"format":" ",
|
||
|
"on-click": "$HOME/.scripts/quick-toggle.sh",
|
||
|
"restart-interval": 1,
|
||
|
},
|
||
|
|
||
|
"custom/tablet": {
|
||
|
"format":" ",
|
||
|
"on-click": "$HOME/.scripts/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,
|
||
|
}
|
||
|
}
|