164 lines
4.3 KiB
JSON
164 lines
4.3 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"exclusive": true,
|
|
"passthrough": false,
|
|
"gtk-layer-shell": true,
|
|
"ipc": false,
|
|
//"reload_style_on_change": true,
|
|
"height": 18,
|
|
"margin": "0",
|
|
"modules-left": [
|
|
"dwl/tags",
|
|
// "ext/workspaces",
|
|
"dwl/window"
|
|
// "wlr/taskbar"
|
|
],
|
|
// "modules-center": [ // "mpris" ],
|
|
"modules-right": [
|
|
"battery",
|
|
"pulseaudio",
|
|
"custom/notification",
|
|
"tray",
|
|
"custom/power",
|
|
"clock"
|
|
],
|
|
// Modules configuration
|
|
"dwl/tags": {
|
|
"num-tags": 9,
|
|
"hide-vacant": false,
|
|
"expand": true,
|
|
"disable-click": false,
|
|
"tag-labels": [
|
|
],
|
|
},
|
|
|
|
"ext/workspaces": {
|
|
"format": "{icon}",
|
|
"ignore-hidden": true,
|
|
"on-click": "activate",
|
|
"on-click-right": "deactivate",
|
|
"sort-by-id": true
|
|
},
|
|
"dwl/window": {
|
|
"format": "{layout} {title}",
|
|
"max-length": 50,
|
|
"rewrite": {
|
|
" \\| ": ""
|
|
}
|
|
},
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-size": 12,
|
|
"all-outputs": false,
|
|
"tooltip-format": "{title}",
|
|
"markup": true,
|
|
"on-click": "activate",
|
|
"on-click-right": "close",
|
|
"ignore-list": ["Rofi", "wofi"]
|
|
},
|
|
"tray": {
|
|
"icon-size": 12,
|
|
"spacing": 12
|
|
},
|
|
"mpris": {
|
|
"format": "{player_icon} {artist} - {title}",
|
|
"format-paused": "{status_icon} <i>{artist} - {title}</i>",
|
|
"player-icons": {
|
|
"vivaldi-stable": "▶",
|
|
"spotify": "",
|
|
"default": ""
|
|
},
|
|
"status-icons": {
|
|
"paused": ""
|
|
},
|
|
"max-length": 80
|
|
// "ignored-players": ["firefox"]
|
|
},
|
|
"custom/music": {
|
|
"format": " {}",
|
|
"escape": true,
|
|
"interval": 5,
|
|
"tooltip": false,
|
|
"exec": "playerctl metadata --format='{{ titles }}'",
|
|
"on-click": "playerctl play-pause",
|
|
"max-length": 50
|
|
},
|
|
"clock": {
|
|
// "timezone": "America/New_York",
|
|
// "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
// "format-alt": "{:%d/%m/%Y}",
|
|
"format": "{:%H:%M}"
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"tooltip": false,
|
|
"menu": "on-click",
|
|
"menu-file": "~/.config/waybar/battery_menu.xml",
|
|
"menu-actions": {
|
|
"performance": "powerprofilesctl set performance",
|
|
"balanced": "powerprofilesctl set balanced",
|
|
"powersaver": "powerprofilesctl set power-saver",
|
|
},
|
|
|
|
// "format-alt": "{icon}",
|
|
// "format-charging": "",
|
|
// "format-plugged": "",
|
|
"format-icons": ["", "", "", "", "", ""]
|
|
},
|
|
"pulseaudio": {
|
|
"disable-scroll": true,
|
|
"format": "{icon} {volume}%",
|
|
"format-muted": "",
|
|
"format-icons": {
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol"
|
|
},
|
|
"bluetooth": {
|
|
"format": "",
|
|
"format-on": "{icon}",
|
|
"format-off": "{icon}",
|
|
"format-connected": "{icon}",
|
|
"format-icons": {
|
|
"on": "",
|
|
"off": "",
|
|
"connected": ""
|
|
},
|
|
"on-click": "blueman-manager",
|
|
"tooltip-format-connected": "{device_enumerate}"
|
|
},
|
|
"custom/notification": {
|
|
"format": "{icon} {text}",
|
|
"tooltip": false,
|
|
"format-icons": {
|
|
"notification": "",
|
|
"none": "",
|
|
"dnd-notification": "",
|
|
"dnd-none": "",
|
|
"inhibited-notification": "",
|
|
"inhibited-none": "",
|
|
"dnd-inhibited-notification": "",
|
|
"dnd-inhibited-none": ""
|
|
},
|
|
"return-type": "json",
|
|
"exec-if": "which swaync-client",
|
|
"exec": "swaync-client -swb",
|
|
"on-click": "swaync-client -t -sw",
|
|
"on-click-right": "swaync-client -d -sw",
|
|
"escape": true
|
|
},
|
|
"custom/power": {
|
|
"format" : "⏻",
|
|
"tooltip": false,
|
|
"on-click": "wlogout"
|
|
}
|
|
}
|
|
|