144 lines
3.8 KiB
Plaintext
144 lines
3.8 KiB
Plaintext
{
|
|
"height": 20,
|
|
"spacing": 4,
|
|
"bar_id": "bar-0",
|
|
"ipc": true,
|
|
// "mode": "hide",
|
|
"hidden_state": "show",
|
|
"modules-left": [
|
|
"clock",
|
|
"custom/waybar-mpris"
|
|
],
|
|
"modules-center": [
|
|
"sway/workspaces"
|
|
],
|
|
"modules-right": [
|
|
"tray",
|
|
"custom/power-profile",
|
|
"custom/dpi",
|
|
"custom/theme",
|
|
"pulseaudio",
|
|
"network",
|
|
"battery",
|
|
],
|
|
"custom/pacman": {
|
|
"format": "{} ",
|
|
"interval": 3600, // every hour
|
|
"exec": "(checkupdates;pacman -Qm | aur vercmp) | wc -l", // # of updates
|
|
"exec-if": "exit 0", // always run; consider advanced run conditions
|
|
"on-click": "wezterm start -- yay; echo Done - Press enter to exit; read; pkill -SIGRTMIN+8 waybar", // update system
|
|
"signal": 8,
|
|
"tooltip": false,
|
|
},
|
|
"custom/theme": {
|
|
"exec": "~/.config/waybar/scripts/toggle-theme",
|
|
"on-click": "~/.config/waybar/scripts/toggle-theme --toggle",
|
|
"restart-interval": 2
|
|
},
|
|
"custom/power-consumption": {
|
|
"exec": "~/.config/waybar/scripts/power-consumption",
|
|
"interval": 1
|
|
},
|
|
"wlr/workspaces": {
|
|
"format": "{icon} {name}",
|
|
"on-click": "activate",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"5": "",
|
|
"urgent": "",
|
|
// "active": "",
|
|
"default": ""
|
|
}
|
|
},
|
|
"custom/power-profile": {
|
|
"exec": "~/.config/waybar/scripts/power-profile",
|
|
"on-click": "~/.config/waybar/scripts/power-profile --toggle",
|
|
"interval": 2
|
|
},
|
|
"custom/dpi": {
|
|
"exec": "~/.config/waybar/scripts/toggle-hdpi",
|
|
"on-click": "~/.config/waybar/scripts/toggle-hdpi --toggle",
|
|
"restart-interval": 2
|
|
},
|
|
"clock": {
|
|
"interval": 60,
|
|
"format": "{:%H:%M}",
|
|
"on-click": "gnome-calendar",
|
|
"max-length": 25
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"warning": 30,
|
|
"critical": 15
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% ",
|
|
"format-plugged": "{capacity}% ",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": [
|
|
"",
|
|
"",
|
|
"",
|
|
"",
|
|
""
|
|
]
|
|
},
|
|
"sway/workspaces": {
|
|
"format": "{name}"
|
|
},
|
|
"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": "⚠",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
},
|
|
"pulseaudio": {
|
|
"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"
|
|
},
|
|
"custom/waybar-mpris": {
|
|
"max-length": 30,
|
|
"return-type": "json",
|
|
"exec": "waybar-mpris --position --autofocus --order ARTIST:ALBUM:TITLE:POSITION:SYMBOL",
|
|
"on-click": "waybar-mpris --send toggle",
|
|
// This option will switch between players on right click.
|
|
"on-click-right": "waybar-mpris --send player-next",
|
|
// The options below will switch the selected player on scroll
|
|
// "on-scroll-up": "waybar-mpris --send player-next",
|
|
// "on-scroll-down": "waybar-mpris --send player-prev",
|
|
// The options below will go to next/previous track on scroll
|
|
// "on-scroll-up": "waybar-mpris --send next",
|
|
// "on-scroll-down": "waybar-mpris --send prev",
|
|
"escape": true
|
|
},
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"spacing": 0
|
|
},
|
|
}
|
|
// vi: ft=jsonc
|