2022-06-24 20:34:06 +08:00
|
|
|
{
|
|
|
|
"layer": "top",
|
|
|
|
"position": "top",
|
2022-08-23 01:56:57 +08:00
|
|
|
"height": 35,
|
2022-08-22 04:48:56 +08:00
|
|
|
"spacing": 4,
|
2022-08-22 05:26:42 +08:00
|
|
|
"mode": "dock",
|
|
|
|
"margin-top": 0,
|
|
|
|
"margin-bottom": 0,
|
2022-06-24 20:34:06 +08:00
|
|
|
|
|
|
|
// Choose the order of the modules
|
2022-08-22 00:25:07 +08:00
|
|
|
"modules-left":[ "custom/launcher", "cpu", "memory", "custom/update"],
|
|
|
|
"modules-center": [ "wlr/taskbar"],
|
2022-08-22 04:48:56 +08:00
|
|
|
"modules-right":[ "tray", "battery", "pulseaudio", "network", "bluetooth", "clock", "custom/power"],
|
2022-08-22 00:25:07 +08:00
|
|
|
|
2022-06-24 20:34:06 +08:00
|
|
|
// Modules configuration
|
|
|
|
"wlr/taskbar": {
|
|
|
|
"format": "{icon}",
|
2022-08-23 01:56:57 +08:00
|
|
|
"icon-size": 23,
|
2022-08-22 00:25:07 +08:00
|
|
|
"icon-theme": "Tela",
|
2022-06-24 20:34:06 +08:00
|
|
|
"tooltip-format": "{title}",
|
|
|
|
"on-click": "minimize",
|
|
|
|
"on-click-middle": "close",
|
2022-08-22 00:25:07 +08:00
|
|
|
"on-click-right": "activate",
|
|
|
|
"app_ids-mapping": {
|
|
|
|
"NewsFlashGTK": "com.gitlab.newsflash",
|
|
|
|
"blueberry.py": "blueberry",
|
|
|
|
"au-org-ala-delta-editor-DeltaEditor": "delta",
|
|
|
|
"evince": "org.gnome.Evince",
|
|
|
|
"org.jabref.gui.JabRefMain": "jabref",
|
|
|
|
"FortiClient": "forticlient",
|
|
|
|
"Mega": "mega",
|
|
|
|
"com-ggvaidya-TaxonDNA-SequenceMatrix-SequenceMatrix": "java",
|
|
|
|
"tpsdig2.exe": "tpsDig",
|
|
|
|
"tpsutil.exe": "tpsUtil",
|
|
|
|
"winclada.exe": "winclada",
|
2022-08-27 00:23:46 +08:00
|
|
|
"wpsoffice": "wps-office2019-wpsmain",
|
|
|
|
"fr.greyc.gmic_qt": "Gimp-2.10"
|
2022-08-22 00:25:07 +08:00
|
|
|
}
|
2022-06-24 20:34:06 +08:00
|
|
|
},
|
|
|
|
"tray": {
|
2022-08-22 00:25:07 +08:00
|
|
|
"icon-size": 22,
|
2022-06-24 20:34:06 +08:00
|
|
|
"spacing": 10
|
|
|
|
},
|
|
|
|
"clock": {
|
2022-08-23 00:01:02 +08:00
|
|
|
// "timezone": "Europe/London",
|
2022-06-24 20:34:06 +08:00
|
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
|
|
"format": "{:%Y-%m-%d %H:%M}"
|
|
|
|
},
|
|
|
|
"cpu": {
|
2022-08-23 00:33:20 +08:00
|
|
|
"format": "{usage:1}% CPU",
|
2022-06-24 20:34:06 +08:00
|
|
|
"tooltip": false,
|
2022-06-27 07:34:41 +08:00
|
|
|
"on-click": "tilix -e 'htop'"
|
2022-06-24 20:34:06 +08:00
|
|
|
},
|
|
|
|
"memory": {
|
2022-08-23 00:33:20 +08:00
|
|
|
"format": "{percentage:1}% RAM",
|
2022-06-27 07:34:41 +08:00
|
|
|
"on-click": "tilix -e 'htop'"
|
2022-06-24 20:34:06 +08:00
|
|
|
},
|
|
|
|
"battery": {
|
|
|
|
"states": {
|
2022-08-22 00:25:07 +08:00
|
|
|
"good": 95,
|
2022-06-24 20:34:06 +08:00
|
|
|
"warning": 30,
|
|
|
|
"critical": 15
|
|
|
|
},
|
|
|
|
"format": "{capacity}% {icon}",
|
|
|
|
"format-charging": "{capacity}% ",
|
|
|
|
"format-plugged": "{capacity}% ",
|
|
|
|
"format-alt": "{time} {icon}",
|
|
|
|
"format-icons": ["", "", "", "", ""]
|
|
|
|
},
|
|
|
|
"network": {
|
2022-08-23 00:01:02 +08:00
|
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
2022-08-22 04:48:56 +08:00
|
|
|
"format-wifi": "{essid:5} ",
|
2022-06-24 20:34:06 +08:00
|
|
|
"format-ethernet": "Connected ",
|
2022-08-22 00:25:07 +08:00
|
|
|
// "tooltip-format": "{ifname} via {gwaddr} ",
|
2022-08-22 04:48:56 +08:00
|
|
|
"format-linked": "{ifname:5} (No IP) ",
|
2022-06-24 20:34:06 +08:00
|
|
|
"format-disconnected": "Disconnected ⚠",
|
2022-08-22 00:25:07 +08:00
|
|
|
// "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":{
|
2022-08-22 05:31:01 +08:00
|
|
|
"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":{
|
2022-08-22 00:25:07 +08:00
|
|
|
"format": "{} ",
|
2022-08-27 00:23:46 +08:00
|
|
|
"interval": 60,
|
2022-08-22 17:14:34 +08:00
|
|
|
"exec": "checkupdates | wc -l",
|
2022-08-27 00:23:46 +08:00
|
|
|
"exec-if": "checkupdates; exit 0",
|
|
|
|
"on-click": "tilix -e '/home/guoyi/.config/waybar/update.sh'; pkill -SIGRTMIN+8 waybar",
|
|
|
|
"signal": 8
|
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
|
|
|
},
|
|
|
|
}
|
|
|
|
|