mirror of
https://github.com/nboughton/dotfiles
synced 2024-11-26 13:33:54 +01:00
177 lines
3.4 KiB
JSON
177 lines
3.4 KiB
JSON
// -*- mode: json -*-
|
|
[{
|
|
//"output": "eDP-1",
|
|
"layer": "bottom",
|
|
"position": "bottom",
|
|
"margin-bottom": 5,
|
|
"margin-right": 5,
|
|
"margin-left": 5,
|
|
"modules-left": [
|
|
"sway/workspaces",
|
|
"idle_inhibitor",
|
|
"sway/mode",
|
|
],
|
|
"modules-center": [
|
|
],
|
|
"modules-right": [
|
|
"cpu",
|
|
"custom/separator",
|
|
"memory",
|
|
"custom/swap",
|
|
"custom/separator",
|
|
"disk#1",
|
|
"disk#2",
|
|
"custom/separator",
|
|
"pulseaudio",
|
|
"custom/separator",
|
|
"backlight",
|
|
"custom/separator",
|
|
"battery",
|
|
"custom/pacman",
|
|
"clock"
|
|
],
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
"all-outputs": true,
|
|
"format": "{name} {icon}",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"urgent": "",
|
|
"focused": "",
|
|
"default": ""
|
|
}
|
|
},
|
|
"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": true
|
|
},
|
|
"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,
|
|
"format": " {usage:2}%"
|
|
},
|
|
"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,
|
|
"format": " {percentage_used:2}%",
|
|
"path": "/"
|
|
},
|
|
"disk#2": {
|
|
"interval": 5,
|
|
"format": " {percentage_used:2}%",
|
|
"path": "/home"
|
|
},
|
|
"custom/pacman": {
|
|
"format": " {}",
|
|
"return-type": "json",
|
|
"interval": 3600, // every hour
|
|
"exec": "go run ~/.config/waybar/modules/updates/update-check.go",
|
|
"exec-if": "~/.config/waybar/modules/updates/update-run.sh",
|
|
"on-click": "~/.config/waybar/modules/updates/update-system.sh; pkill -RTMIN+8 waybar",
|
|
"signal": 8,
|
|
"tooltip": true
|
|
},
|
|
"custom/swap": {
|
|
"format": " {}",
|
|
"interval": 5,
|
|
"exec": "free -h | grep Swap | awk '{print $3}'"
|
|
},
|
|
"custom/separator": {
|
|
"format": "|",
|
|
"tooltip": false
|
|
}
|
|
},
|
|
{
|
|
"layer": "bottom",
|
|
"position": "top",
|
|
"margin-right": 5,
|
|
"margin-left": 5,
|
|
"margin-top": 5,
|
|
"modules-left": ["custom/weather", "wlr/taskbar"],
|
|
"modules-center": [],
|
|
"modules-right": ["tray", "custom/spotify"],
|
|
"wlr/taskbar": {
|
|
"all-outputs": false,
|
|
"format": "{icon} {title:.15}...",
|
|
"icon-theme": "DarK-svg",
|
|
"icon-size": 12,
|
|
"on-click": "activate",
|
|
"on-middle-click": "close",
|
|
"on-right-click": "minimize"
|
|
},
|
|
"tray": {
|
|
"icon-size": 12,
|
|
"spacing": 10
|
|
},
|
|
"custom/weather": {
|
|
"format": "{:.20}",
|
|
"exec": "~/.config/waybar/modules/weather.sh",
|
|
"interval": 3600
|
|
},
|
|
"custom/spotify": {
|
|
"interval": 1,
|
|
"return-type": "json",
|
|
"exec": "~/.config/waybar/modules/spotify.sh",
|
|
"exec-if": "pgrep spotify",
|
|
"escape": true
|
|
}
|
|
}]
|