1
1
mirror of https://github.com/nboughton/dotfiles synced 2024-11-26 04:28:43 +01:00
github.com-nboughton-dotfiles/waybar/config

228 lines
4.3 KiB
Plaintext
Raw Normal View History

2020-11-20 21:33:51 +01:00
// -*- mode: json -*-
2021-06-01 21:18:26 +02:00
//[
//{
// "position": "bottom",
// "layer": "bottom",
// "margin-left": 5,
// "margin-right": 5,
// "margin-bottom": 5,
// "modules-left": ["sway/mode", "wlr/taskbar"],
// "modules-right": ["tray"],
//},
2021-02-17 15:54:42 +01:00
{
2020-12-10 10:25:37 +01:00
"position": "top",
2021-06-01 21:18:26 +02:00
"layer": "bottom",
2021-06-25 19:54:35 +02:00
"margin-top": 5,
"margin-right": 10,
"margin-left": 10,
2021-03-28 04:55:58 +02:00
"modules-center": [
2021-03-29 11:02:26 +02:00
"sway/workspaces",
2021-03-28 04:55:58 +02:00
],
2020-11-20 21:33:51 +01:00
"modules-left": [
2021-03-29 11:02:26 +02:00
"clock",
2020-12-17 17:55:51 +01:00
"custom/separator",
2021-03-28 04:55:58 +02:00
"battery",
2020-12-17 17:55:51 +01:00
"custom/separator",
2021-03-28 04:55:58 +02:00
"disk#1",
"disk#2",
2020-12-04 23:37:08 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"memory",
2020-12-04 23:37:08 +01:00
"custom/swap",
"custom/separator",
2021-03-28 04:55:58 +02:00
"cpu",
2021-06-25 12:38:55 +02:00
"custom/separator",
"idle_inhibitor",
2020-12-14 11:48:41 +01:00
],
"modules-right": [
2021-02-17 15:54:42 +01:00
"custom/covid",
2020-12-17 17:55:51 +01:00
"custom/separator",
2021-02-05 17:55:24 +01:00
"custom/weather",
"custom/separator",
2020-12-14 11:48:41 +01:00
"custom/updates",
"custom/auroch",
2020-12-17 17:55:51 +01:00
"custom/separator",
2020-12-17 14:42:29 +01:00
"backlight",
2020-12-17 17:55:51 +01:00
"custom/separator",
2020-12-17 14:42:29 +01:00
"pulseaudio",
2020-12-17 17:55:51 +01:00
"custom/separator",
2021-06-01 21:18:26 +02:00
"tray",
"custom/separator",
"custom/powermenu",
2020-11-20 21:33:51 +01:00
],
"sway/workspaces": {
"disable-scroll": true,
2021-05-19 11:10:15 +02:00
"all-outputs": true,
2021-06-01 21:18:26 +02:00
"format": "{name} {icon}",
2020-11-21 01:02:09 +01:00
"format-icons": {
2020-11-21 01:10:42 +01:00
"1": "",
2020-11-21 01:02:09 +01:00
"2": "",
2021-04-23 09:43:30 +02:00
"3": "",
2020-11-24 12:54:37 +01:00
"4": "",
2020-11-21 01:02:09 +01:00
"urgent": "",
"focused": "",
"default": ""
}
2020-11-20 21:33:51 +01:00
},
2020-12-13 06:19:43 +01:00
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
2020-11-20 21:33:51 +01:00
"backlight": {
2021-06-25 12:38:55 +02:00
"format": " {percent}%",
"format-icons": ["", "", ""],
2020-11-20 21:33:51 +01:00
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-"
},
"clock": {
"format": "{:%a %d %b %H:%M}",
2021-06-25 12:38:55 +02:00
"tooltip": false
2020-11-20 21:33:51 +01:00
},
"pulseaudio": {
"format": "{icon} {volume}% {format_source}",
"format-bluetooth": "{icon} {volume}% {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"
},
"memory": {
2021-02-17 15:54:42 +01:00
"states": {
"good": 0,
"warning": 60,
"critical": 80
},
2020-11-20 21:33:51 +01:00
"interval": 5,
"format": " {}%"
},
"cpu": {
2021-02-17 15:54:42 +01:00
"states": {
"good": 0,
"warning": 70,
"critical": 95
},
2020-11-20 21:33:51 +01:00
"interval": 1,
2020-12-07 21:52:07 +01:00
"format": " {usage:2}%"
2020-11-20 21:33:51 +01:00
},
"battery": {
"states": {
2021-02-17 15:54:42 +01:00
"good": 100,
2020-11-20 21:33:51 +01:00
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"disk#1": {
2021-02-17 15:54:42 +01:00
"states": {
"good": 0,
"warning": 70,
"critical": 95
},
2020-11-20 21:33:51 +01:00
"interval": 5,
2021-05-13 16:18:29 +02:00
"format": " {percentage_used:2}%",
2020-11-20 21:33:51 +01:00
"path": "/"
},
"disk#2": {
2021-02-17 15:54:42 +01:00
"states": {
"good": 0,
"warning": 70,
"critical": 95
},
2020-11-20 21:33:51 +01:00
"interval": 5,
2021-05-13 16:18:29 +02:00
"format": " {percentage_used:2}%",
2020-11-20 21:33:51 +01:00
"path": "/home"
},
2021-06-01 21:18:26 +02:00
"wlr/taskbar": {
"all-outputs": false,
"format": "{icon}",
"icon-theme": "oomox-walmat",
"icon-size": 16,
"on-click": "activate",
"on-middle-click": "close",
"on-right-click": "minimize"
},
"sway/mode": {
"format": "{}",
"rotate": 90
},
"tray": {
2021-06-25 12:38:55 +02:00
"icon-size": 12,
2021-06-01 21:18:26 +02:00
"spacing": 10
},
2020-12-14 11:48:41 +01:00
"custom/updates": {
2021-02-17 15:54:42 +01:00
"format": " {}",
2020-12-07 22:34:52 +01:00
"return-type": "json",
2020-12-13 06:19:43 +01:00
"interval": 5,
"exec": "cat ~/tmp/updates.json",
"exec-if": "file ~/tmp/updates.json",
2021-05-12 23:25:15 +02:00
"on-click": "alacritty --class aptus-upgrade -e ~/.config/waybar/modules/updates/updates.sh; systemctl --user start updates.service",
2020-12-07 22:34:52 +01:00
"tooltip": true
2020-11-20 21:33:51 +01:00
},
"custom/auroch": {
2020-12-10 10:25:37 +01:00
"format": " {}",
"return-type": "json",
"exec": "cat ~/tmp/auroch.json",
"exec-if": "file ~/tmp/auroch.json",
"on-click": "systemctl --user start auroch.service",
"interval": 5,
"tooltip": true
},
2020-11-20 21:33:51 +01:00
"custom/swap": {
"format": " {}",
"interval": 5,
"exec": "free -h | grep Swap | awk '{print $3}'"
},
2020-12-02 00:53:24 +01:00
"custom/separator": {
2020-12-17 17:55:51 +01:00
"format": "",
"tooltip": false
},
2021-06-01 21:18:26 +02:00
"custom/powermenu": {
2020-12-17 17:55:51 +01:00
"format": "",
2021-06-01 21:18:26 +02:00
"on-click": "nwgbar",
2020-12-02 00:53:24 +01:00
"tooltip": false
2021-02-05 17:55:24 +01:00
},
2021-01-03 03:11:19 +01:00
"custom/weather": {
"format": "{}",
"exec": "~/.config/waybar/modules/weather.sh",
"interval": 3600
},
2020-12-02 21:13:47 +01:00
"custom/spotify": {
"interval": 1,
"return-type": "json",
"exec": "~/.config/waybar/modules/spotify.sh",
"exec-if": "pgrep spotify",
"escape": true
2021-02-17 15:54:42 +01:00
},
"custom/covid": {
"interval": 3600,
"exec": "~/.config/waybar/modules/covid/covid-checker ltla E07000012",
"return-type": "json",
"format": "{icon} {}",
"format-icons": ["", ""]
2020-12-02 21:13:47 +01:00
}
2021-02-05 17:55:24 +01:00
}
2021-06-01 21:18:26 +02:00
//]