flake/users/guanranwang/home-manager/common/dotfiles/config/waybar/config-sway

72 lines
1.6 KiB
Text

{
"layer": "top",
"modules-left": ["custom/launcher", "sway/workspaces", "gamemode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "pulseaudio", "battery", "clock"],
"custom/launcher": { "format": "" },
"gamemode": {
"format": "{glyph} {count}",
"glyph": "󰊴",
"hide-not-running": true,
"use-icon": true,
"icon-name": "input-gaming-symbolic",
"icon-spacing": 4,
"icon-size": 20,
"tooltip": true,
"tooltip-format": "Games running: {count}"
},
"sway/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"urgent": "",
"active": "",
"default": ""
},
"sort-by-number": true
},
"sway/window": {
"format": "{}",
"separate-outputs": true
},
"tray": {
"spacing": 10
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "󰂑",
"headset": "󰂑",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"scroll-step": 5,
"on-click": "pavucontrol",
"ignored-sinks": ["Easy Effects Sink"]
},
"battery": {
"bat": "BAT0",
"interval": 60,
"states": {
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-icons": ["", "", "", "", ""],
"max-length": 25
},
"clock": {
"format": "{:%A %H:%M} ",
"tooltip-format": "<tt>{calendar}</tt>"
}
}