209 lines
5.7 KiB
JSON
209 lines
5.7 KiB
JSON
// -*- mode: jsonc -*-
|
|
{
|
|
"layer": "bottom", // Waybar at top layer
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
|
"height": 30, // Waybar height (to be removed for auto height)
|
|
// "width": 1280, // Waybar width
|
|
"margin-top": 10,
|
|
"margin-left": 12,
|
|
"margin-right": 12,
|
|
"spacing": 6, // Gaps between modules (4px)
|
|
// Choose the order of the modules
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"sway/mode",
|
|
"sway/scratchpad",
|
|
"custom/media"
|
|
],
|
|
"modules-center": [
|
|
"sway/window"
|
|
],
|
|
"modules-right": [
|
|
"clock",
|
|
"custom/cliphist",
|
|
"privacy",
|
|
"idle_inhibitor",
|
|
"pulseaudio",
|
|
"network#eth",
|
|
"network#wifi",
|
|
"cpu",
|
|
"memory",
|
|
"backlight",
|
|
"battery",
|
|
"battery#bat2",
|
|
"tray",
|
|
"custom/power"
|
|
],
|
|
// Modules configuration
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"warp-on-scroll": false,
|
|
"format": "{name}: {icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"urgent": "",
|
|
"focused": "",
|
|
"default": ""
|
|
}
|
|
},
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"sway/scratchpad": {
|
|
"format": "{icon} {count}",
|
|
"show-empty": false,
|
|
"format-icons": [
|
|
"",
|
|
""
|
|
],
|
|
"tooltip": true,
|
|
"tooltip-format": "{app}: {title}"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
}
|
|
},
|
|
"tray": {
|
|
// "icon-size": 21,
|
|
"spacing": 10,
|
|
"icons": {
|
|
"blueman": "bluetooth"
|
|
}
|
|
},
|
|
"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}% @ {avg_frequency}GHz ",
|
|
"tooltip": false,
|
|
"on-click": "footclient btop"
|
|
},
|
|
"memory": {
|
|
"format": "{}% "
|
|
},
|
|
"backlight": {
|
|
// "device": "acpi_video1",
|
|
"format": "{percent}% {icon}",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
],
|
|
"scroll-step": 5
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
// "good": 95,
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-full": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
// "format-good": "", // An empty format will hide the module
|
|
// "format-full": "",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"battery#bat2": {
|
|
"bat": "BAT2"
|
|
},
|
|
"power-profiles-daemon": {
|
|
"format": "{icon}",
|
|
"tooltip-format": "Power profile: {profile}\nDriver: {driver}",
|
|
"tooltip": true,
|
|
"format-icons": {
|
|
"default": "",
|
|
"performance": "",
|
|
"balanced": "",
|
|
"power-saver": ""
|
|
}
|
|
},
|
|
"network#eth": {
|
|
"interface": "enp*",
|
|
"format-ethernet": "{ipaddr}/{cidr} ",
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"network#wifi": {
|
|
"interface": "wl*",
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"tooltip-format": "{ifname} via {gwaddr} ",
|
|
"format-linked": "",
|
|
"format-disconnected": "",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 5, // %, 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",
|
|
"on-click-middle": "blueman-manager"
|
|
},
|
|
"custom/media": {
|
|
"format": "{icon} {text}",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"format-icons": {
|
|
"firefox": "",
|
|
"default": "🎜"
|
|
},
|
|
"escape": true,
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null",
|
|
"on-click-middle": "playerctl play-pause",
|
|
"on-click-right": "playerctl next",
|
|
"on-click": "playerctl previous"
|
|
},
|
|
"custom/power": {
|
|
"format": "⏻",
|
|
"tooltip": false,
|
|
"on-click": "$HOME/.config/sway/power-menu"
|
|
},
|
|
"custom/cliphist": {
|
|
"format": " {text}",
|
|
"interval": 30,
|
|
"exec": "cliphist list | wc -l",
|
|
"on-click": "cliphist list | wofi -S dmenu | cliphist decode | wl-copy",
|
|
"on-click-middle": "cliphist list | wofi -S dmenu | cliphist delete",
|
|
"on-click-right": "cliphist wipe"
|
|
}
|
|
}
|