1
1
mirror of https://github.com/nboughton/dotfiles synced 2024-11-26 13:33:54 +01:00
github.com-nboughton-dotfiles/waybar/config

186 lines
3.6 KiB
Plaintext
Raw Normal View History

2020-11-20 21:33:51 +01:00
// -*- mode: json -*-
2020-12-02 20:42:38 +01:00
[{
2020-12-09 01:06:41 +01:00
//"output": "eDP-1",
2020-11-20 21:33:51 +01:00
"layer": "bottom",
2020-12-10 10:25:37 +01:00
"position": "top",
"margin-top": 5,
2020-12-04 16:52:49 +01:00
"margin-right": 5,
"margin-left": 5,
2020-11-20 21:33:51 +01:00
"modules-left": [
"sway/workspaces",
2020-12-13 06:19:43 +01:00
"idle_inhibitor",
2020-12-04 16:52:49 +01:00
"sway/mode",
2020-11-20 21:33:51 +01:00
],
"modules-center": [
"clock"
2020-11-20 21:33:51 +01:00
],
"modules-right": [
"cpu",
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",
"disk#1",
"disk#2",
"custom/separator",
2020-12-07 21:03:01 +01:00
"backlight",
"custom/separator",
"battery",
"custom/separator",
"pulseaudio",
2020-12-07 21:03:01 +01:00
"custom/pacman",
"custom/auroch",
"tray"
2020-11-20 21:33:51 +01:00
],
"sway/workspaces": {
"disable-scroll": true,
2020-12-04 16:52:49 +01:00
"all-outputs": true,
2020-11-21 01:10:42 +01: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": "",
2020-11-21 01:27:43 +01: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
"sway/mode": {
"format": "{}"
},
"tray": {
"icon-size": 12,
"spacing": 10
},
2020-11-20 21:33:51 +01:00
"backlight": {
"format": "{icon} {percent}%",
"format-icons": ["", ""],
"on-scroll-up": "brightnessctl set +5%",
"on-scroll-down": "brightnessctl set 5%-"
},
"clock": {
"format": "{:%a %d %b %H:%M}",
2020-12-04 16:52:49 +01:00
"tooltip": true
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": {
"interval": 5,
"format": " {}%"
},
"cpu": {
"interval": 1,
2020-12-07 21:52:07 +01:00
"format": " {usage:2}%"
2020-11-20 21:33:51 +01:00
},
"battery": {
"states": {
"good": 95,
"warning": 30,
"critical": 15
},
"format": "{icon} {capacity}%",
"format-icons": [
"",
"",
"",
"",
""
]
},
"disk#1": {
"interval": 5,
2020-12-02 03:10:45 +01:00
"format": " {percentage_used:2}%",
2020-11-20 21:33:51 +01:00
"path": "/"
},
"disk#2": {
"interval": 5,
2020-12-07 11:09:42 +01:00
"format": " {percentage_used:2}%",
2020-11-20 21:33:51 +01:00
"path": "/home"
},
"custom/pacman": {
"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": "exit 0",
"on-click": "alacritty --class aptus-upgrade -e ~/.config/waybar/modules/updates/update-system.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",
"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-07 21:03:01 +01:00
"format": "|",
2020-12-02 00:53:24 +01:00
"tooltip": false
2020-11-20 21:33:51 +01:00
}
2020-12-02 20:42:38 +01:00
},
{
"layer": "bottom",
2020-12-10 10:25:37 +01:00
"position": "bottom",
2020-12-04 16:52:49 +01:00
"margin-right": 5,
"margin-left": 5,
2020-12-10 10:25:37 +01:00
"margin-bottom": 5,
2020-12-13 06:19:43 +01:00
"modules-left": ["custom/weather", "wlr/taskbar"],
2020-12-02 20:42:38 +01:00
"modules-center": [],
2020-12-11 01:38:39 +01:00
"modules-right": ["custom/spotify"],
2020-12-02 20:42:38 +01:00
"wlr/taskbar": {
"all-outputs": false,
2020-12-03 12:44:48 +01:00
"format": "{icon} {title:.15}...",
2020-12-02 20:42:38 +01:00
"icon-theme": "DarK-svg",
2020-12-08 01:37:07 +01:00
"icon-size": 12,
2020-12-03 12:44:48 +01:00
"on-click": "activate",
"on-middle-click": "close",
"on-right-click": "minimize"
2020-12-02 20:42:38 +01:00
},
2020-12-04 23:37:08 +01:00
"custom/weather": {
2020-12-08 23:59:31 +01:00
"format": "{:.20}",
2020-12-04 23:37:08 +01:00
"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
}
2020-12-02 20:42:38 +01:00
}]