dotconfig/dot_config/waybar/config

124 lines
3.6 KiB
Text
Raw Permalink Normal View History

2022-06-24 20:34:06 +08:00
{
"layer": "top",
"position": "top",
2022-08-23 01:56:57 +08:00
"height": 35,
"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
"modules-left":[ "custom/launcher", "cpu", "memory", "custom/update"],
"modules-center": [ "wlr/taskbar"],
"modules-right":[ "tray", "battery", "pulseaudio", "network", "bluetooth", "clock", "custom/power"],
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,
"icon-theme": "Tela",
2022-06-24 20:34:06 +08:00
"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",
"fr.greyc.gmic_qt": "Gimp-2.10"
}
2022-06-24 20:34:06 +08:00
},
"tray": {
"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": {
"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": {
"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": {
"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
"format-wifi": "{essid:5} ",
2022-06-24 20:34:06 +08:00
"format-ethernet": "Connected  ",
// "tooltip-format": "{ifname} via {gwaddr} ",
"format-linked": "{ifname:5} (No IP) ",
2022-06-24 20:34:06 +08:00
"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":{
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":{
"format": "{} ",
"interval": 60,
2022-08-22 17:14:34 +08:00
"exec": "checkupdates | wc -l",
"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
},
}