|
6 | 6 | // "width": 1280, // Waybar width
|
7 | 7 | "spacing": 4, // Gaps between modules (4px)
|
8 | 8 | // Choose the order of the modules
|
9 |
| - "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"], |
10 |
| - "modules-center": ["sway/window"], |
| 9 | + "modules-left": {{ sway__waybar_modules_left | tojson }}, |
| 10 | + "modules-center": {{ sway__waybar_modules_center | tojson }}, |
11 | 11 | "modules-right": {{ sway__waybar_modules_right | tojson }},
|
12 | 12 | // Modules configuration
|
13 | 13 | "sway/workspaces": {
|
|
76 | 76 | "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
77 | 77 | "format-alt": "{:%Y-%m-%d %H:%M %Z}"
|
78 | 78 | },
|
| 79 | + "disk": { |
| 80 | + "interval": 30, |
| 81 | + "format": "{path}: {percentage_used}%", |
| 82 | + "format-alt": "{used}/{total}", |
| 83 | + "path": "/" |
| 84 | + }, |
| 85 | + "sway/language": { |
| 86 | + "format": "{shortDescription}", |
| 87 | + "tooltip-format": "{long} {variant}", |
| 88 | + "on-click": "swaymsg input type:keyboard xkb_switch_layout next", |
| 89 | + "on-click-right": "gnome-control-center region" |
| 90 | + }, |
79 | 91 | "cpu": {
|
80 | 92 | "format": "{usage}% ",
|
81 | 93 | "tooltip": false
|
|
102 | 114 | "critical": 15
|
103 | 115 | },
|
104 | 116 | "format": "{capacity}% {icon}",
|
105 |
| - "format-charging": "{capacity}% ", |
| 117 | + "format-charging": "{capacity}% 🗲", |
106 | 118 | "format-plugged": "{capacity}% ",
|
107 | 119 | "format-alt": "{time} {icon}",
|
108 | 120 | // "format-good": "", // An empty format will hide the module
|
|
115 | 127 | "network": {
|
116 | 128 | // "interface": "wlp2*", // (Optional) To force the use of this interface
|
117 | 129 | "format-wifi": "{essid} ({signalStrength}%) ",
|
118 |
| - "format-ethernet": "{ipaddr}/{cidr} ", |
119 |
| - "tooltip-format": "{ifname} via {gwaddr} ", |
120 |
| - "format-linked": "{ifname} (No IP) ", |
| 130 | + "format-ethernet": "{ipaddr}/{cidr} 🖧", |
| 131 | + "tooltip-format": "{ifname} via {gwaddr} 🔗", |
| 132 | + "format-linked": "{ifname} (No IP) ⛒", |
121 | 133 | "format-disconnected": "Disconnected ⚠",
|
122 |
| - "format-alt": "{ifname}: {ipaddr}/{cidr}" |
| 134 | + "format-alt": "{ifname}: {ipaddr}/{cidr}", |
| 135 | + "on-click": "gnome-control-center network" |
123 | 136 | },
|
124 | 137 | "pulseaudio": {
|
125 | 138 | // "scroll-step": 1, // %, can be a float
|
|
131 | 144 | "format-source-muted": "",
|
132 | 145 | "format-icons": {
|
133 | 146 | "headphone": "",
|
134 |
| - "hands-free": "", |
135 |
| - "headset": "", |
| 147 | + "hands-free": "🤙", |
| 148 | + "headset": "🎧", |
136 | 149 | "phone": "",
|
137 | 150 | "portable": "",
|
138 | 151 | "car": "",
|
|
147 | 160 | "exec": "{{ swayusr.home }}/.config/waybar/wttr.py",
|
148 | 161 | "return-type": "json"
|
149 | 162 | },
|
| 163 | + "custom/power": { |
| 164 | + "format": "", |
| 165 | + "on-click": "wlogout", |
| 166 | + "tooltip": false |
| 167 | + } |
150 | 168 | }
|
151 | 169 |
|
0 commit comments