dotconfig/dot_config/waybar/config

120 lines
3.4 KiB
Text
Raw Normal View History

2022-06-24 20:34:06 +08:00
{
"layer": "top",
"position": "top",
"height": 17,
"spacing": 4,
"margin-top": 3,
"margin-bottom": 3,
// Choose the order of the modules
"modules-left":[ "idle_inhibitor", "cpu", "memory", "temperature"],
"modules-center": [ "custom/launcher", "wlr/taskbar", "custom/update"],
"modules-right":[ "battery", "pulseaudio", "network", "bluetooth", "clock", "tray", "custom/power"],
// Modules configuration
"wlr/taskbar": {
"format": "{icon}",
"icon-size": 23,
2022-06-28 02:14:15 +08:00
"icon-theme": ["hicolor", "Tela"],
2022-06-24 20:34:06 +08:00
"tooltip-format": "{title}",
"on-click": "minimize",
"on-click-middle": "close",
"on-click-right": "activate"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "",
"deactivated": ""
}
},
"tray": {
"icon-size": 20,
"spacing": 10
},
"clock": {
// "timezone": "Europe/London",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format": "{:%Y-%m-%d %H:%M}"
},
"cpu": {
"format": "{usage}% ",
"tooltip": false,
2022-06-27 07:34:41 +08:00
"on-click": "tilix -e 'htop'"
2022-06-24 20:34:06 +08:00
},
"memory": {
"format": "{}% ",
2022-06-27 07:34:41 +08:00
"on-click": "tilix -e 'htop'"
2022-06-24 20:34:06 +08:00
},
"temperature": {
// "thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
"format-charging": "{capacity}% ",
"format-plugged": "{capacity}% ",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"network": {
// "interface": "wlp2*", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "Connected  ",
"tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname} (No IP) ",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
2022-06-27 07:34:41 +08:00
"on-click": "tilix -e 'nmtui'"
2022-06-24 20:34:06 +08:00
},
"bluetooth": {
"format": "",
"format-disabled": "",
"on-click": "blueberry",
"tooltip-format": "{}"
},
"pulseaudio": {
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-bluetooth-muted": "{icon} {format_source}",
"format-muted": "{format_source}",
"format-source": "",
"format-source-muted": "",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
},
"custom/launcher":{
"format": "",
2022-06-27 08:53:51 +08:00
"on-click": "nwggrid",
"on-click-right": "killall nwggrid"
2022-06-24 20:34:06 +08:00
},
"custom/update":{
"format": "",
2022-06-27 09:42:16 +08:00
"on-click": "tilix -e 'sudo pacman -Syu'"
2022-06-24 20:34:06 +08:00
},
"custom/power":{
"format": "⏻",
2022-06-27 08:58:45 +08:00
"on-click": "nwgbar"
2022-06-24 20:34:06 +08:00
},
}