2023-01-30 08:19:14 +01:00
|
|
|
{
|
|
|
|
// "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
|
2024-02-12 20:23:37 +01:00
|
|
|
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
|
2023-01-30 08:19:14 +01:00
|
|
|
"modules-center": ["sway/window"],
|
2024-02-12 20:23:37 +01:00
|
|
|
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "clock", "tray"],
|
|
|
|
"sway/workspaces": {
|
|
|
|
"disable-scroll": true,
|
|
|
|
"all-outputs": false,
|
|
|
|
"format": "{name}: {icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"urgent": "",
|
|
|
|
"focused": "",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
},
|
2023-01-30 08:19:14 +01:00
|
|
|
"keyboard-state": {
|
|
|
|
"numlock": true,
|
|
|
|
"capslock": false,
|
|
|
|
"format": "{name} {icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"locked": "",
|
|
|
|
"unlocked": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"sway/mode": {
|
|
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
|
|
},
|
|
|
|
"sway/scratchpad": {
|
|
|
|
"format": "{icon} {count}",
|
|
|
|
"show-empty": false,
|
|
|
|
"format-icons": ["", ""],
|
|
|
|
"tooltip": true,
|
|
|
|
"tooltip-format": "{app}: {title}"
|
|
|
|
},
|
2024-02-12 20:23:37 +01:00
|
|
|
|
2023-01-30 08:19:14 +01:00
|
|
|
"idle_inhibitor": {
|
|
|
|
"format": "{icon}",
|
|
|
|
"format-icons": {
|
|
|
|
"activated": "",
|
|
|
|
"deactivated": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"tray": {
|
|
|
|
// "icon-size": 21,
|
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
|
|
|
// "timezone": "America/New_York",
|
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"format-alt": "{:%Y-%m-%d}"
|
|
|
|
},
|
|
|
|
"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": "{temperatureC}°C {icon}",
|
|
|
|
"format-icons": ["", "", ""]
|
|
|
|
},
|
|
|
|
"backlight": {
|
|
|
|
// "device": "acpi_video1",
|
|
|
|
"format": "{percent}% {icon}",
|
2023-09-11 00:28:45 +02:00
|
|
|
"format-icons": [ "", "", ""],
|
2023-05-19 16:00:17 +02:00
|
|
|
"on-scroll-down": "brightnessctl set 2%+",
|
|
|
|
"on-scroll-up": "brightnessctl set 2%-"
|
2023-03-18 22:54:59 +01:00
|
|
|
|
2023-01-30 08:19:14 +01:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"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": "{volume}% {icon} {format_source}",
|
|
|
|
"format-bluetooth": "{volume}% {icon} {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"
|
|
|
|
}
|
2024-02-12 20:23:37 +01:00
|
|
|
|
2023-01-30 08:19:14 +01:00
|
|
|
}
|
|
|
|
|