2021-11-02 12:19:04 +01:00
|
|
|
{
|
2022-05-04 18:55:48 +02:00
|
|
|
"height": 20,
|
|
|
|
"spacing": 4,
|
|
|
|
"bar_id": "bar-0",
|
|
|
|
"ipc": true,
|
2022-06-09 19:29:23 +02:00
|
|
|
// "mode": "hide",
|
2022-05-04 18:55:48 +02:00
|
|
|
"hidden_state": "show",
|
|
|
|
"modules-left": [
|
|
|
|
"clock",
|
|
|
|
"custom/waybar-mpris"
|
|
|
|
],
|
|
|
|
"modules-center": [
|
2022-06-20 19:57:01 +02:00
|
|
|
"sway/workspaces"
|
2022-05-04 18:55:48 +02:00
|
|
|
],
|
|
|
|
"modules-right": [
|
2022-05-24 14:48:23 +02:00
|
|
|
"custom/power-consumption",
|
2022-05-13 19:19:05 +02:00
|
|
|
"custom/power-profile",
|
2022-09-02 16:15:54 +02:00
|
|
|
"custom/dpi",
|
2022-05-04 18:55:48 +02:00
|
|
|
"custom/theme",
|
|
|
|
"pulseaudio",
|
|
|
|
"network",
|
|
|
|
"battery"
|
|
|
|
],
|
|
|
|
"custom/theme": {
|
|
|
|
"exec": "~/.config/waybar/scripts/toggle-theme",
|
|
|
|
"on-click": "~/.config/waybar/scripts/toggle-theme --toggle",
|
2022-05-13 19:19:05 +02:00
|
|
|
"restart-interval": 2
|
|
|
|
},
|
2022-05-24 14:48:23 +02:00
|
|
|
"custom/power-consumption": {
|
|
|
|
"exec": "~/.config/waybar/scripts/power-consumption",
|
|
|
|
"interval": 1
|
|
|
|
},
|
2022-06-09 19:29:23 +02:00
|
|
|
"wlr/workspaces": {
|
|
|
|
"format": "{icon} {name}",
|
|
|
|
"on-click": "activate",
|
|
|
|
"format-icons": {
|
|
|
|
"1": "",
|
|
|
|
"2": "",
|
|
|
|
"3": "",
|
|
|
|
"4": "",
|
|
|
|
"5": "",
|
|
|
|
"urgent": "",
|
|
|
|
// "active": "",
|
|
|
|
"default": ""
|
|
|
|
}
|
|
|
|
},
|
2022-05-13 19:19:05 +02:00
|
|
|
"custom/power-profile": {
|
|
|
|
"exec": "~/.config/waybar/scripts/power-profile",
|
|
|
|
"on-click": "~/.config/waybar/scripts/power-profile --toggle",
|
2022-05-24 14:48:23 +02:00
|
|
|
"interval": 2
|
2022-05-04 18:55:48 +02:00
|
|
|
},
|
2022-09-02 16:15:54 +02:00
|
|
|
"custom/dpi": {
|
|
|
|
"exec": "~/.config/waybar/scripts/toggle-hdpi",
|
|
|
|
"on-click": "~/.config/waybar/scripts/toggle-hdpi --toggle",
|
|
|
|
"restart-interval": 2
|
|
|
|
},
|
2022-05-04 18:55:48 +02:00
|
|
|
"clock": {
|
|
|
|
"interval": 60,
|
|
|
|
"format": "{:%H:%M}",
|
2022-11-19 18:38:42 +01:00
|
|
|
"on-click": "gnome-calendar",
|
2022-05-04 18:55:48 +02:00
|
|
|
"max-length": 25
|
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
2022-11-19 18:38:42 +01:00
|
|
|
"format": "{capacity}%{icon}",
|
2022-05-04 18:55:48 +02:00
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"format-icons": [
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
"",
|
|
|
|
""
|
|
|
|
]
|
|
|
|
},
|
2022-06-20 19:57:01 +02:00
|
|
|
"sway/workspaces": {
|
|
|
|
"format": "{name}"
|
|
|
|
},
|
2022-05-04 18:55:48 +02:00
|
|
|
"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) ",
|
2022-07-26 19:55:09 +02:00
|
|
|
"format-disconnected": "⚠",
|
2022-05-04 18:55:48 +02:00
|
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}"
|
|
|
|
},
|
|
|
|
"pulseaudio": {
|
2022-11-19 18:38:42 +01:00
|
|
|
"format": "{volume}% {icon} {format_source}",
|
2022-05-04 18:55:48 +02:00
|
|
|
"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": {
|
2022-04-08 17:37:26 +02:00
|
|
|
"max-length": 30,
|
2022-03-28 14:12:36 +02:00
|
|
|
"return-type": "json",
|
|
|
|
"exec": "waybar-mpris --position --autofocus",
|
|
|
|
"on-click": "waybar-mpris --send toggle",
|
|
|
|
// This option will switch between players on right click.
|
2022-05-04 18:55:48 +02:00
|
|
|
"on-click-right": "waybar-mpris --send player-next",
|
2022-03-28 14:12:36 +02:00
|
|
|
// The options below will switch the selected player on scroll
|
2022-05-04 18:55:48 +02:00
|
|
|
// "on-scroll-up": "waybar-mpris --send player-next",
|
|
|
|
// "on-scroll-down": "waybar-mpris --send player-prev",
|
2022-03-28 14:12:36 +02:00
|
|
|
// The options below will go to next/previous track on scroll
|
2022-05-04 18:55:48 +02:00
|
|
|
// "on-scroll-up": "waybar-mpris --send next",
|
|
|
|
// "on-scroll-down": "waybar-mpris --send prev",
|
2022-04-06 23:34:14 +02:00
|
|
|
"escape": true
|
2022-05-04 18:55:48 +02:00
|
|
|
}
|
2021-11-02 12:19:04 +01:00
|
|
|
}
|
2022-05-13 19:19:05 +02:00
|
|
|
// vi: ft=jsonc
|