config (4137B)
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", "custom/workspace", "wlr/taskbar"],
12 "modules-right":["custom/donotdisturb", "idle_inhibitor", "custom/snip", "pulseaudio", "cpu", "memory", "temperature", "backlight", "battery", "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 "sway/workspaces": {
26 "format": "{icon}",
27 "on-click": "activate",
28 "active-only": true,
29 "sort-by-number": true
30 },
31 "idle_inhibitor": {
32 "format": "{icon}",
33 "format-icons": {
34 "activated": "â",
35 "deactivated": "â°"
36 },
37 "on-click": "~/.config/waybar/modules/sway-idle-inhibitor.sh"
38 },
39 "tray": {
40 "icon-size": 20,
41 "spacing": 10
42 },
43 "clock": {
44 "timezone": "Europe/Berlin",
45 "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
46 "format": "{:%a %d %b %H:%M}",
47 "on-click": "thunderbird -calendar"
48 },
49 "cpu": {
50 "format": "{usage}% âĄ",
51 "on-click": "qps"
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": 75,
71 "warning": 20,
72 "critical": 10
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": "slurp | grim -g - ~/Bilder/Screenshots/$(date '+%Y_%m_%d_%H_%M_%S').png"
126 },
127 "custom/donotdisturb":{
128 "format": "{}",
129 "exec": "~/.config/waybar/modules/donotdisturb_status.sh",
130 "on-click": "~/.config/waybar/modules/donotdisturb_toggle.sh"
131 },
132 "custom/workspace":{
133 "format": "{}",
134 "exec": "tail -n 1 -f /tmp/swayworkspace"
135 },
136
137 }