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

287 lines
5.5 KiB
Plaintext
Raw Permalink Normal View History

2020-11-20 21:33:51 +01:00
// -*- mode: json -*-
2021-10-17 01:39:09 +02:00
//[
// {
// "position": "bottom",
// "layer": "bottom",
// "margin-left": 10,
// "margin-right": 10,
// "margin-bottom": 10,
// "modules-left": [
// "sway/mode",
// "wlr/taskbar"
// ],
// "modules-right": [
// "custom/gpuuse",
// "custom/gputemp",
// "custom/separator",
// "custom/weather",
// "custom/separator",
// "tray"
// ],
// },
2021-07-09 10:56:09 +02:00
{
"position": "top",
"layer": "bottom",
2021-10-17 01:39:09 +02:00
"margin-top": 0,
"margin-right": 0,
"margin-left": 0,
2021-07-09 10:56:09 +02:00
"modules-center": [
"sway/workspaces"
],
"modules-left": [
"clock",
"custom/separator",
"battery",
2021-08-17 21:32:59 +02:00
//"custom/separator",
2021-07-09 10:56:09 +02:00
"disk#1",
"disk#2",
2021-08-17 21:32:59 +02:00
//"custom/separator",
2021-07-09 10:56:09 +02:00
"memory",
"cpu",
2021-10-17 01:39:09 +02:00
"custom/cputemp",
"custom/separator",
"custom/gpuuse",
"custom/gputemp",
"custom/separator",
"idle_inhibitor",
"sway/mode"
2021-07-09 10:56:09 +02:00
],
"modules-right": [
2021-10-17 01:39:09 +02:00
"custom/weather",
2021-07-09 10:56:09 +02:00
"custom/separator",
"custom/covid",
2021-08-17 21:32:59 +02:00
//"custom/separator",
2021-07-09 10:56:09 +02:00
"custom/updates",
"custom/auroch",
2021-08-17 21:32:59 +02:00
//"custom/separator",
2021-07-09 10:56:09 +02:00
"backlight",
2021-08-17 21:32:59 +02:00
//"custom/separator",
2021-07-09 10:56:09 +02:00
"pulseaudio",
"custom/separator",
2021-10-17 01:39:09 +02:00
"tray",
"custom/separator",
2021-07-09 10:56:09 +02:00
"custom/powermenu"
],
"sway/workspaces": {
"disable-scroll": true,
2021-08-07 22:20:46 +02:00
"all-outputs": false,
2021-07-09 10:56:09 +02:00
"format": "{name} {icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"urgent": "",
"focused": "",
"default": ""
}
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"backlight": {
"format": " {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": {
"states": {
"good": 0,
"warning": 60,
"critical": 80
},
"interval": 5,
2021-10-12 12:34:19 +02:00
"format": "",
"on-click": "kitty bpytop"
2021-07-09 10:56:09 +02:00
},
"cpu": {
"states": {
"good": 0,
"warning": 70,
"critical": 95
},
"interval": 1,
2021-10-12 12:34:19 +02:00
"format": "",
"on-click": "kitty bpytop"
2021-07-09 10:56:09 +02:00
},
"battery": {
"states": {
"good": 100,
"warning": 30,
"critical": 15
},
2021-08-17 21:32:59 +02:00
"format": "{icon}",
2021-07-09 10:56:09 +02:00
"format-icons": [
"",
"",
"",
"",
""
2020-11-20 21:33:51 +01:00
]
},
2021-07-09 10:56:09 +02:00
"disk#1": {
"states": {
"good": 0,
"warning": 70,
"critical": 95
},
"interval": 5,
2021-08-17 21:32:59 +02:00
"format": "",
2021-07-09 10:56:09 +02:00
"path": "/"
},
"disk#2": {
"states": {
"good": 0,
"warning": 70,
"critical": 95
},
"interval": 5,
2021-08-17 21:32:59 +02:00
"format": "",
2021-07-09 10:56:09 +02:00
"path": "/home"
},
2021-10-17 01:39:09 +02:00
"sway/mode": {
"format": "{}"
},
"wlr/taskbar": {
"all-outputs": false,
"format": "{icon} {title:.15}",
"icon-theme": "Tela-circle-blue-dark",
"icon-size": 14,
"on-click": "activate",
"on-middle-click": "close",
"on-right-click": "minimize"
},
"tray": {
"icon-size": 12,
"spacing": 10
},
"custom/separator": {
"format": "|",
"tooltip": false
},
"custom/weather": {
"format": "{}",
"exec": "~/.config/waybar/modules/weather.sh",
"interval": 3600
},
"custom/gputemp": {
"interval": 2,
"return-type": "json",
"format": "{icon}",
"format-icons": [
"",
"",
"",
"",
""
],
"exec": "~/.config/waybar/modules/gpu/temp",
"on-click": "kitty radeontop"
},
"custom/gpuuse": {
"interval": 2,
"return-type": "json",
"format": " ",
"exec": "~/.config/waybar/modules/gpu/usage",
"on-click": "kitty radeontop"
},
2021-07-09 10:56:09 +02:00
"custom/updates": {
"format": " {}",
"return-type": "json",
"interval": 5,
"exec": "cat ~/tmp/updates.json",
"exec-if": "file ~/tmp/updates.json",
2021-10-12 12:34:19 +02:00
"on-click": "kitty ~/.config/waybar/modules/updates/updates.sh; systemctl --user start updates.service",
2021-07-09 10:56:09 +02:00
"tooltip": true
},
"custom/auroch": {
"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
},
"custom/swap": {
"format": " {}",
"interval": 5,
"exec": "free -h | grep Swap | awk '{print $3}'"
},
"custom/cputemp": {
"interval": 2,
"return-type": "json",
2021-08-17 21:32:59 +02:00
"format": "{icon}",
2021-07-09 10:56:09 +02:00
"format-icons": [
"",
"",
"",
"",
""
],
2021-10-12 12:34:19 +02:00
"exec": "~/.config/waybar/modules/cputemp",
"on-click": "kitty bpytop"
2021-07-09 10:56:09 +02:00
},
"custom/separator": {
"format": "|",
"tooltip": false
},
"custom/powermenu": {
"format": "",
"on-click": "nwgbar",
"tooltip": false
},
"custom/spotify": {
"interval": 1,
"return-type": "json",
"exec": "~/.config/waybar/modules/spotify.sh",
"exec-if": "pgrep spotify",
"escape": true
},
"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-10-17 01:39:09 +02:00
//]