.dotfiles/configs/waybar/config

117 lines
3.1 KiB
Plaintext
Raw Normal View History

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,
"mode": "hide",
"hidden_state": "show",
"modules-left": [
"clock",
"custom/waybar-mpris"
],
"modules-center": [
"sway/workspaces",
"sway/mode"
],
"modules-right": [
2022-05-13 19:19:05 +02:00
"custom/power-profile",
2022-05-04 18:55:48 +02:00
"custom/dpi",
"custom/theme",
"pulseaudio",
"network",
"battery"
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}"
},
"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
},
"custom/power-profile": {
"exec": "~/.config/waybar/scripts/power-profile",
"on-click": "~/.config/waybar/scripts/power-profile --toggle",
"restart-interval": 2
2022-05-04 18:55:48 +02:00
},
"custom/dpi": {
"exec": "~/.config/waybar/scripts/toggle-hdpi",
"on-click": "~/.config/waybar/scripts/toggle-hdpi --toggle",
2022-05-13 19:19:05 +02:00
"restart-interval": 2
2022-05-04 18:55:48 +02:00
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"clock": {
"interval": 60,
"format": "{:%H:%M}",
"max-length": 25
},
"battery": {
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": [
"",
"",
"",
"",
""
]
},
"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": "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": {
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