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

175 lines
3.3 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-11-20 21:33:51 +01:00
"layer": "bottom",
"position": "top",
"modules-left": [
"sway/workspaces",
"sway/mode",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"custom/spotify",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"idle_inhibitor"
],
"modules-center": [
"clock",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"custom/pacman",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"custom/weather"
],
"modules-right": [
"cpu",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"memory",
"custom/swap",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"disk#1",
"disk#2",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"pulseaudio",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"backlight",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"battery",
2020-12-02 00:53:24 +01:00
"custom/separator",
2020-11-20 21:33:51 +01:00
"tray"
],
"sway/workspaces": {
"disable-scroll": true,
2020-11-21 01:02:09 +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
},
"sway/mode": {
"format": "{}"
},
"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}",
"tooltip": false
},
"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-02 03:10:45 +01:00
"format": " {usage:2}%"
2020-11-20 21:33:51 +01:00
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"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,
"format": " {percentage_used:2}%",
"path": "/home"
},
"tray": {
"icon-size": 12,
"spacing": 10
},
"custom/pacman": {
"format": " {}",
2020-12-02 01:19:02 +01:00
"interval": 1800, // every 30 minutes
2020-11-20 21:33:51 +01:00
"exec": "checkupdates | wc -l", // # of updates
"exec-if": "exit 0", // always run; consider advanced run conditions
"on-click": "~/.config/waybar/modules/update-system.sh; pkill -RTMIN+8 waybar", // update system
"signal": 8,
"tooltip": false
},
"custom/weather": {
"exec": "~/.config/waybar/modules/weather.sh",
"interval": 3600
},
"custom/swap": {
"format": " {}",
"interval": 5,
"exec": "free -h | grep Swap | awk '{print $3}'"
},
"custom/spotify": {
"interval": 1,
"return-type": "json",
"exec": "~/.config/waybar/modules/spotify.sh",
"exec-if": "pgrep spotify",
"escape": true
2020-12-02 00:53:24 +01:00
},
"custom/separator": {
2020-12-02 02:21:24 +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",
"position": "bottom",
"height": 15,
"modules-left": ["wlr/taskbar"],
"modules-center": [],
"modules-right": [],
"wlr/taskbar": {
"all-outputs": false,
"format": "{icon} {title}",
"icon-theme": "DarK-svg",
"icon-size": 12,
"on-click": "activate"
},
}]