config (3943B)
1 {
2 "layer": "top",
3 "position": "top",
4 "height": 24,
5 "spacing": 4,
6 "margin-top": 5,
7 "margin-bottom": 10,
8
9 // Choose the order of the modules
10
11 "modules-left":["custom/launcher", "wlr/workspaces", "wlr/taskbar"],
12 "modules-right":["custom/donotdisturb", "custom/snip", "pulseaudio", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "network", "tray", "clock", "custom/power"],
13
14 // Modules configuration
15
16 "wlr/taskbar": {
17 "format": "{icon}",
18 "icon-size": 20,
19 "icon-theme": "Adwaita",
20 "tooltip-format": "{title}",
21 "on-click": "activate",
22 "on-click-middle": "",
23 "on-click-right": "minimize"
24 },
25 "wlr/workspaces": {
26 "format": "{name}: {icon}",
27 "format-icons": {
28 "1": "",
29 "2": "",
30 "3": "",
31 "4": "",
32 "5": "",
33 "focused": "",
34 "default": ""
35 },
36 "sort-by-number": true
37 },
38 "tray": {
39 "icon-size": 20,
40 "spacing": 10
41 },
42 "clock": {
43 "timezone": "Europe/Berlin",
44 "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
45 "format": "{:%a %d %b %H:%M}",
46 "format-alt": "{:%c}"
47 },
48 "cpu": {
49 "format": "{usage}% ⚡",
50 "on-click": "qps"
51 // "tooltip": false
52 },
53 "memory": {
54 "format": "{}% 💾",
55 "on-click": "qps"
56 },
57 "temperature": {
58 "thermal-zone": 2,
59 // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
60 "critical-threshold": 60,
61 // "format-critical": "{temperatureC}°C {icon}",
62 "format": "{temperatureC}°C 🔥",
63 },
64 "backlight": {
65 // "device": "acpi_video1",
66 "format": "{percent}% 💡"
67 },
68 "battery": {
69 "states": {
70 "good": 95,
71 "warning": 30,
72 "critical": 15
73 },
74 "format": "{capacity}% 🪫",
75 "format-charging": "{capacity}% 🔌",
76 "format-plugged": "{capacity}% 🔌",
77 "tooltip-format": "{time}",
78 "format-good": "{capacity}% 🔋",
79 "format-full": "{capacity}% 🔋",
80 },
81 "battery#bat2": {
82 "bat": "BAT2"
83 },
84 "network": {
85 // "interface": "wlp2*", // (Optional) To force the use of this interface
86 "format-wifi": "{essid} ({signalStrength}%)",
87 "format-ethernet": "Connected 🖧",
88 "tooltip-format": "{ifname} via {gwaddr} 🖧",
89 "format-linked": "{ifname} (No IP) 🖧",
90 "format-disconnected": "Disconnected ⚠",
91 "on-click": "nm-connection-editor"
92 },
93 "pulseaudio": {
94 // "scroll-step": 1, // %, can be a float
95 "format": "{volume}% 🔊",
96 "format-bluetooth": "{volume}% 🔊",
97 "format-bluetooth-muted": "{icon} {format_source}",
98 "format-muted": "{volume}% {format_source}",
99 "format-source": "🔇",
100 "format-source-muted": "🔇",
101 "format-icons": {
102 "headphone": "🎧",
103 "hands-free": "🎧",
104 "headset": "🎧",
105 "phone": "📞",
106 "portable": "📞",
107 "car": "🚗",
108 "default": ["🔇"]
109 },
110 "on-click": "pavucontrol"
111 },
112 "custom/launcher":{
113 "format": "🐧",
114 "tooltip-format": "Applications",
115 "on-click": "wofi",
116 "on-click-right": "killall wofi"
117 },
118 "custom/power":{
119 "format": "⏻ ",
120 "on-click": "wlogout",
121 "on-click-right": "killall wlogout"
122 },
123 "custom/snip":{
124 "format": "✂",
125 "on-click": "~/.config/waybar/snip.sh 'selection'"
126 },
127 "custom/donotdisturb":{
128 "format": "{}",
129 "exec": "~/.config/waybar/donotdisturb_status.sh",
130 "on-click": "~/.config/waybar/donotdisturb_toggle.sh"
131
132 }