150 lines
4.1 KiB
Plaintext
150 lines
4.1 KiB
Plaintext
{
|
||
// "layer": "top", // 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)
|
||
// Choose the order of the modules
|
||
"modules-left": [
|
||
"sway/workspaces",
|
||
"sway/mode",
|
||
"sway/scratchpad"
|
||
// "sway/window"
|
||
],
|
||
"modules-center": [
|
||
"mpris"
|
||
],
|
||
"modules-right": [
|
||
"idle_inhibitor",
|
||
"backlight",
|
||
// "network",
|
||
"wireplumber",
|
||
"temperature",
|
||
"battery",
|
||
"custom/load",
|
||
"disk",
|
||
"clock",
|
||
"tray"
|
||
],
|
||
|
||
// Modules configuration
|
||
"sway/workspaces": {
|
||
"disable-scroll-wraparound": true,
|
||
"format": "{icon}",
|
||
"format-icons": {
|
||
"1": "",
|
||
"2": "",
|
||
"3": "",
|
||
"4": "\uf001",
|
||
"5": "5",
|
||
"6": "\uf1fc",
|
||
"7": "7",
|
||
"8": "\udb83\udeb5",
|
||
"9": "9",
|
||
"10": "10",
|
||
"11": "",
|
||
"default": ""
|
||
}
|
||
},
|
||
"sway/mode": { // resize mode and whatnot
|
||
"format": "<span style=\"italic\">{}</span>"
|
||
},
|
||
"sway/scratchpad": {
|
||
"format": "{icon} {count}",
|
||
"show-empty": false,
|
||
"format-icons": ["", ""],
|
||
"tooltip": true,
|
||
"tooltip-format": "{app}: {title}"
|
||
},
|
||
"sway/window": {
|
||
"max-length": 30,
|
||
"on-click": "rofi -show drun"
|
||
},
|
||
"mpris": {
|
||
"format": "{status_icon} {title} – {artist}",
|
||
"artist-len": 30,
|
||
"title-len": 40,
|
||
"player-icons": {
|
||
"default": "",
|
||
"mpv": "",
|
||
"firefox": "",
|
||
},
|
||
"status-icons": {
|
||
"default": "",
|
||
"paused": "",
|
||
}
|
||
},
|
||
"idle_inhibitor": {
|
||
"format": "{icon}",
|
||
"format-icons": {
|
||
"activated": "",
|
||
"deactivated": ""
|
||
}
|
||
},
|
||
"backlight": {
|
||
// "device": "acpi_video1",
|
||
"format": "{percent}% {icon}",
|
||
"format-icons": ["", "", "", "", "", "", "", "", ""],
|
||
"on-click": "light -I",
|
||
"on-scroll-down": "light -U 10",
|
||
"on-scroll-up": "light -A 10"
|
||
},
|
||
"wireplumber": {
|
||
"scroll-step": 5, // %, can be a float
|
||
"format": "{volume}% {icon}",
|
||
"format-muted": "",
|
||
"format-icons": {
|
||
"default": ["", "", ""]
|
||
},
|
||
"on-click": "pavucontrol"
|
||
},
|
||
"temperature": {
|
||
// "thermal-zone": 2,
|
||
"hwmon-path": "/sys/devices/platform/thinkpad_hwmon/hwmon/hwmon3/temp1_input",
|
||
"critical-threshold": 90,
|
||
"format-critical": "{temperatureC}°C {icon}",
|
||
"format": "{temperatureC}°C {icon}",
|
||
"format-icons": ["\uf2ca", "\uf2c9", "\uf2c8"]
|
||
},
|
||
"battery": {
|
||
"states": {
|
||
"good": 100,
|
||
"warning": 20,
|
||
"critical": 10
|
||
},
|
||
"format": "{capacity}% {icon}",
|
||
"format-charging": "{capacity}% {icon}\udb85\udc0b",
|
||
"format-plugged": "{capacity}% {icon}\udb85\udc25",
|
||
"format-alt": "{time} {icon}",
|
||
// "format-good": "", // An empty format will hide the module
|
||
// "format-full": "",
|
||
"format-icons": ["\udb84\udea1", "\udb84\udea2", "\udb84\udea3"]
|
||
},
|
||
"custom/load": {
|
||
"format": "{} \udb80\ude38",
|
||
"exec": "waybarscript_loadavg",
|
||
"interval": 10
|
||
},
|
||
"disk": {
|
||
"format": "{free} \udb80\udeca",
|
||
"format-good": "",
|
||
"states": {
|
||
"good": 0,
|
||
"warning": 90,
|
||
"critical": 99
|
||
}
|
||
},
|
||
"clock": {
|
||
"tooltip-format": "<tt><small>{calendar}</small></tt>",
|
||
// "format-alt": "{:%Y-%m-%d}",
|
||
// <https://github.com/Alexays/Waybar/issues/3021>
|
||
"format": "<small>{:%Y-%m-%d</small>, <b>%A</b>, %H:%M}",
|
||
},
|
||
"tray": {
|
||
"icon-size": 18,
|
||
"spacing": 5
|
||
},
|
||
}
|
||
|
||
// vim: set ts=4 sw=4 et tw=80 ft=jsonc nowrap:
|