convertablet/configs/waybar/config-docked
Yuki Joou 2049494676 configs: Added sample waybar config
This also adds a few lines to the example hooks to toggle between the
configs depending on the state of the computer
2023-07-21 02:54:09 +02:00

63 lines
1.6 KiB
Text

{
// "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"],
"modules-center": ["sway/window"],
"modules-right": ["cpu", "memory", "temperature", "backlight", "battery", "tray", "clock"],
// Modules configuration
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "PROC {usage}%",
"tooltip": false
},
"memory": {
"format": "MEM {}%"
},
"temperature": {
"thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C"
},
"backlight": {
// "device": "acpi_video1",
"format": "BKL {percent}%"
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "BAT {capacity}%",
"format-charging": "CHR {capacity}%",
"format-plugged": "CHR {capacity}%"
// "format-good": "", // An empty format will hide the module
// "format-full": "",
}
}