Files
.config/waybar/config.jsonc
T
2026-08-16 20:02:07 +02:00

151 lines
5.0 KiB
JSON

// -*- mode: jsonc -*-
{
// "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": 6, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": [
"river/tags",
"sway/workspaces",
"niri/workspaces",
"river/window",
"sway/window",
"niri/window"
],
"modules-center": [
"clock"
],
"modules-right": [
"wireplumber#sink",
"wireplumber#source",
"network",
"power-profiles-daemon",
"cpu",
"temperature",
"memory",
"backlight",
"battery",
"custom/power"
],
// Modules configuration
"sway/workspaces": {
"all-outputs": true
},
"keyboard-state": {
"numlock": true,
"capslock": true,
"format": "{name} {icon}",
"format-icons": {
"locked": "",
"unlocked": ""
}
},
"clock": {
"interval": 10,
"format": "{:%T %d.%m.%Y}",
"locale": "de_DE.UTF-8",
// "timezone": "America/New_York",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": {
"format": "cpu {icon}",
"tooltip-format": "{usage}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ]
},
"memory": {
"format": "mem {icon}",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"tooltip-format": "{used} GiB / {total} GiB ({percentage}%)\nswap: {swapUsed} GiB / {swapTotal} GiB ({swapPercentage}%, {swapState})"
},
"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": "screen {icon}",
"tooltip-format": "{percent}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"scroll-step": 5
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "bat {icon}",
"format-charging": "bat {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"tooltip-format": "{capacity}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ]
},
"power-profiles-daemon": {
"format": "profile {icon}",
"tooltip-format": "profile: {profile}\ndriver: {driver}",
"tooltip": true,
"format-icons": {
"default": "-",
"performance": "p",
"balanced": "-",
"power-saver": "e"
}
},
"network": {
"format-wifi": "net {icon}",
"tooltip-format-wifi": "interface {ifname}\nip {ipaddr}/{cidr}\ngateway {gwaddr}\nssid {essid}",
"format-ethernet": "net e",
"tooltip-format": "interface {ifname}\nip {ipaddr}/{cidr}\ngateway {gwaddr}",
"format-linked": "net ?",
"format-disconnected": "net -",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ]
},
"wireplumber#sink": {
"format": "vol {icon}",
"tooltip-format": "{node_name}: {volume}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"format-muted": "vol m",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle",
"scroll-step": 5
},
"wireplumber#source": {
"node-type": "Audio/Source",
"format": "mic {icon}",
"tooltip-format": "{node_name}: {volume}%",
"format-icons": [ "⡀", "⣀", "⣄", "⣤", "⣦", "⣶", "⣷", "⣿" ],
"format-muted": "mic m",
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle",
"scroll-step": 5
},
"custom/media": {
"format": "{icon} {text}",
"return-type": "json",
"max-length": 40,
"format-icons": {
"spotify": "",
"default": "🎜"
},
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
// "custom/power": {
// "format": "pow ",
// "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"
// }
// }
}