etc/config/waybar/config

103 lines
2.2 KiB
JavaScript

// vim:ft=javascript:
{
"layer": "top",
"position": "bottom",
"height": 25,
"modules-left": ["sway/workspaces", "sway/mode", "sway/window"],
"modules-center": ["clock"],
"modules-right": ["tray", "disk", "idle_inhibitor", "pulseaudio", "network", "battery"],
"sway/workspaces": {
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": []
},
"format-default": "{name}",
"format": "{icon}",
"format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": ""
// "urgent": ""
// "focused": "",
// "default": ""
},
"disable-scroll": false,
"all-outputs": false
},
"sway/window": {
"format": "{}",
"max-length": 60,
"tooltip": false
},
"tray": {
"icon-size": 20,
"spacing": 10
},
"clock": {
"tooltip": false,
// "locale": "ja_JP.UTF-8",
// "format": "{:%Y年%m月%d日 (%a) %H:%M}"
"format": "{:%Y-%m-%d %H:%M}"
},
"disk": {
"format": "{free}"
},
"battery": {
"bat": "BAT0",
"states": {
"full": 100,
"good": 95,
"warning": 30,
"critical": 15
},
"interval": 60,
"format": "{capacity}% {icon}",
// "format": "{capacity}% {time} {icon}",
"format-time": "{H}:{M:02}",
//"format-good": "", // An empty format will hide the module
//"format-full": "",
"format-icons": ["", "", "", "", ""]
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength:02}%) ",
"format-ethernet": "{ipaddr} ",
"format-disconnected": "", //An empty format will hide the module.
"tooltip-format-wifi": "{essid} {ipaddr} ({signalStrength}%) "
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"on-click": "pavucontrol",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
}
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
}
}