226 lines
7.4 KiB
JSON
226 lines
7.4 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "bottom", // Waybar at top layer
|
|
"position": "bottom", // Waybar position (top|bottom|left|right)
|
|
"height": 30, // Waybar height (to be removed for auto height)
|
|
// "width": 1280, // Waybar width
|
|
"spacing": 4, // Gaps between modules (4px)
|
|
"reload_on_style_change": true,
|
|
// Choose the order of the modules
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
"sway/scratchpad",
|
|
],
|
|
"modules-center": [
|
|
],
|
|
"modules-right": [
|
|
"idle_inhibitor",
|
|
"custom/ddcbrightness",
|
|
"custom/light-dark-mode",
|
|
"pulseaudio",
|
|
"network",
|
|
"bluetooth",
|
|
"cpu",
|
|
"memory",
|
|
"temperature",
|
|
"battery",
|
|
"clock",
|
|
"privacy",
|
|
"tray",
|
|
"systemd-failed-units"
|
|
],
|
|
// Modules configuration
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"warp-on-scroll": false,
|
|
"format": "{icon} {name}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"7": "",
|
|
"8": "",
|
|
"10": "",
|
|
"urgent": "",
|
|
"focused": "",
|
|
"default": ""
|
|
}
|
|
},
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"sway/scratchpad": {
|
|
"format": "{icon} {count}",
|
|
"show-empty": false,
|
|
"format-icons": ["", ""],
|
|
"tooltip": true,
|
|
"tooltip-format": "{app}: {title}"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"custom/ddcbrightness": {
|
|
"format": "{icon} {percentage}%",
|
|
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""],
|
|
"return-type": "json",
|
|
"exec": "ddcutil getvcp 10 | grep -oP 'current.*?=\\s*\\K[0-9]+' | { read x; echo '{\"percentage\":'${x}'}'; }",
|
|
"on-scroll-up": "ddcutil setvcp 10 + 10",
|
|
"on-scroll-down": "ddcutil setvcp 10 - 10",
|
|
"interval": 1,
|
|
"tooltip": false
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10,
|
|
// "icons": {
|
|
// "blueman": "bluetooth",
|
|
// "TelegramDesktop": "$HOME/.local/share/icons/hicolor/16x16/apps/telegram.png"
|
|
// }
|
|
},
|
|
"bluetooth": {
|
|
"format": " {status}",
|
|
"format-connected": " {device_alias}",
|
|
"format-connected-battery": " {device_alias} ({device_battery_percentage}%)",
|
|
// "format-device-preference": [ "device1", "device2" ], // preference list deciding the displayed device
|
|
"tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
|
|
"tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
|
|
},
|
|
"clock": {
|
|
// "timezone": "America/New_York",
|
|
"tooltip-format": "{calendar}",
|
|
"format": "{:%Y-%m-%dT%H:%M:%S}",
|
|
"on-click": "mode",
|
|
"calendar": {
|
|
"mode" : "year",
|
|
"mode-mon-col" : 3,
|
|
"weeks-pos" : "right",
|
|
"on-scroll" : 1,
|
|
"format": {
|
|
"months": "<span color='#ffead3'><b>{}</b></span>",
|
|
"days": "<span color='#ecc6d9'><b>{}</b></span>",
|
|
"weeks": "<span color='#99ffdd'><b>W{}</b></span>",
|
|
"weekdays": "<span color='#ffcc66'><b>{}</b></span>",
|
|
"today": "<span color='#ff6699'><b><u>{}</u></b></span>"
|
|
}
|
|
},
|
|
},
|
|
"cpu": {
|
|
"format": " {usage}%",
|
|
"tooltip": false
|
|
},
|
|
"memory": {
|
|
"format": " {}%"
|
|
},
|
|
"temperature": {
|
|
// "thermal-zone": 2,
|
|
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
|
"critical-threshold": 80,
|
|
// "format-critical": "{temperatureC}°C {icon}",
|
|
"format": "{icon} {temperatureC}°C",
|
|
"format-icons": ["", "", ""],
|
|
"tooltip": false
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}% ({time})",
|
|
"format-full": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}% ({time})",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{time} {icon}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
"format-icons": ["", "", "", "", ""]
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"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": {
|
|
// "scroll-step": 1, // %, can be a float
|
|
"format": "{icon} {volume}% {format_source}",
|
|
"format-bluetooth": "{icon} {volume}% {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": " {volume}%",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"privacy": {
|
|
"icon-spacing": 4,
|
|
"icon-size": 18,
|
|
"transition-duration": 250,
|
|
"modules": [
|
|
{
|
|
"type": "screenshare",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
},
|
|
{
|
|
"type": "audio-out",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
},
|
|
{
|
|
"type": "audio-in",
|
|
"tooltip": true,
|
|
"tooltip-icon-size": 24
|
|
}
|
|
]
|
|
},
|
|
"custom/power": {
|
|
"format" : "⏻ ",
|
|
"tooltip": false,
|
|
"menu": "on-click",
|
|
"menu-file": "$HOME/.config/waybar/power_menu.xml", // Menu file in resources folder
|
|
"menu-actions": {
|
|
"shutdown": "shutdown",
|
|
"reboot": "reboot",
|
|
"suspend": "systemctl suspend",
|
|
"hibernate": "systemctl hibernate"
|
|
}
|
|
},
|
|
"systemd-failed-units": {
|
|
"hide-on-ok": false, // Do not hide if there is zero failed units.
|
|
"format": " {nr_failed_system}/{nr_failed_user}",
|
|
"format-ok": "",
|
|
"system": true, // Monitor failed systemwide units.
|
|
"user": true // Ignore failed user units.
|
|
},
|
|
"custom/light-dark-mode": {
|
|
"exec": "/home/bca/.config/waybar/darkman",
|
|
"return-type": "json",
|
|
"format": "{icon}",
|
|
"tooltip": true,
|
|
"on-click": "darkman toggle",
|
|
"format-icons": {
|
|
"light": " ",
|
|
"dark": " "
|
|
}
|
|
}
|
|
}
|