121 lines
3.5 KiB
Text
121 lines
3.5 KiB
Text
{
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 32,
|
|
"spacing": 4,
|
|
"mode": "dock",
|
|
"margin-top": 0,
|
|
"margin-bottom": 0,
|
|
|
|
// Choose the order of the modules
|
|
"modules-left":[ "custom/launcher", "cpu", "memory", "custom/update"],
|
|
"modules-center": [ "wlr/taskbar"],
|
|
"modules-right":[ "tray", "battery", "pulseaudio", "network", "bluetooth", "clock", "custom/power"],
|
|
|
|
// Modules configuration
|
|
"wlr/taskbar": {
|
|
"format": "{icon}",
|
|
"icon-size": 20,
|
|
"icon-theme": "Tela",
|
|
"tooltip-format": "{title}",
|
|
"on-click": "minimize",
|
|
"on-click-middle": "close",
|
|
"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",
|
|
"wpsoffice": "wps-office2019-wpsmain"
|
|
}
|
|
},
|
|
"tray": {
|
|
"icon-size": 22,
|
|
"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:1}% CPU",
|
|
"tooltip": false,
|
|
"on-click": "tilix -e 'htop'"
|
|
},
|
|
"memory": {
|
|
"format": "{percentage:1}% RAM",
|
|
"on-click": "tilix -e 'htop'"
|
|
},
|
|
"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:5} ",
|
|
"format-ethernet": "Connected ",
|
|
// "tooltip-format": "{ifname} via {gwaddr} ",
|
|
"format-linked": "{ifname:5} (No IP) ",
|
|
"format-disconnected": "Disconnected ⚠",
|
|
// "format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
"on-click": "tilix -e 'nmtui'"
|
|
|
|
},
|
|
"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": "",
|
|
"on-click": "nwggrid",
|
|
"on-click-right": "killall nwggrid"
|
|
},
|
|
"custom/update":{
|
|
"format": "{} ",
|
|
"interval": 3600,
|
|
"exec": "checkupdates | wc -l",
|
|
"exec-if": "exit 0",
|
|
"on-click": "tilix -e '/home/guoyi/.config/waybar/update.sh'",
|
|
},
|
|
"custom/power":{
|
|
"format": "⏻",
|
|
"on-click": "nwgbar"
|
|
},
|
|
}
|
|
|