forked from pub-solar/os
127 lines
3.5 KiB
Plaintext
127 lines
3.5 KiB
Plaintext
{
|
|
"layer": "top", // Waybar at top layer
|
|
// "position": "bottom", // Waybar position (top|bottom|left|right)
|
|
|
|
"height": 26, // Waybar height
|
|
"modules-left": ["sway/workspaces", "sway/mode"],
|
|
//"modules-center": ["mpd"],
|
|
"modules-right": [
|
|
"sway/language",
|
|
"backlight",
|
|
"custom/notification",
|
|
"pulseaudio",
|
|
"network",
|
|
"idle_inhibitor",
|
|
"battery",
|
|
"clock",
|
|
"tray"
|
|
],
|
|
"sway/workspaces": {
|
|
"disable-scroll": true
|
|
},
|
|
"sway/mode": {
|
|
"tooltip": false,
|
|
"format": "{}"
|
|
},
|
|
"sway/window": {
|
|
"tooltip": false,
|
|
"max-length": 96
|
|
},
|
|
"sway/language": {
|
|
"format": "{}",
|
|
"max-length": 50
|
|
},
|
|
"tray": {
|
|
"icon-size": 21,
|
|
"spacing": 10
|
|
},
|
|
"clock": {
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format-alt": "{:%a %d. %h %H:%M}"
|
|
},
|
|
"backlight": {
|
|
"device": "gmux_backlight",
|
|
"format": "<span font='10'> {percent}%</span> {icon}",
|
|
"format-icons": ["", ""]
|
|
},
|
|
"cpu": {
|
|
"format": "{}% "
|
|
},
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon} ",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"battery": {
|
|
"tooltip": false,
|
|
"states": {
|
|
"critical": 25
|
|
},
|
|
//"full-at": 84,
|
|
"format": "{icon}<span font='10'> {capacity}%</span>",
|
|
"format-full": "{icon}",
|
|
"format-icons": ["", "", "", "", ""],
|
|
},
|
|
"network": {
|
|
"interval": 3,
|
|
"tooltip": true,
|
|
"interface": "wlan0", // (Optional) To force the use of this interface \uF2E7,
|
|
"format-wifi": "<span font='10'></span> \uf062 {bandwidthUpBits} | \uf063 {bandwidthDownBits}",
|
|
"format-ethernet": "<span font='10'></span> \uf062 {bandwidthUpBits} | \uf063 {bandwidthDownBits}",
|
|
"format-disconnected": "",
|
|
"tooltip-format-wifi": "{essid} ({signalStrength}%) {ipaddr}",
|
|
"tooltip-format-ethernet": "{ifname} {ipaddr}"
|
|
},
|
|
//\ue04f{volume}%
|
|
"pulseaudio": {
|
|
"tooltip": false,
|
|
"format": "<span font='10'>{volume}%</span> {icon}",
|
|
"format-bluetooth": "{volume}% <span font='10'>{icon}</span>",
|
|
"format-muted": "",
|
|
"on-click": "pavucontrol",
|
|
"format-alt": "{volume}% <span font='10'>{icon}</span>",
|
|
"format-icons": {
|
|
"headphones": "",
|
|
"handsfree": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["","", ""]
|
|
}
|
|
},
|
|
"mpd": {
|
|
"format": "{artist} - {title} <span color=\"#999999\">[<span color=\"#ffffff\">{elapsedTime:%M:%S}</span> / {totalTime:%M:%S}]</span>",
|
|
"format-disconnected": "",
|
|
"format-stopped": "",
|
|
"interval": 1,
|
|
"state-icons": {
|
|
"paused": "",
|
|
"playing": ""
|
|
},
|
|
"tooltip-format": "MPD (connected)",
|
|
"tooltip-format-disconnected": "MPD (disconnected)"
|
|
},
|
|
"custom/notification": {
|
|
"tooltip": false,
|
|
"format": " {icon}",
|
|
"format-icons": {
|
|
"notification": "<span foreground='red'><sup></sup></span>",
|
|
"none": "",
|
|
"dnd-notification": "<span foreground='red'><sup></sup></span>",
|
|
"dnd-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
}
|