|
1 | 1 | {
|
2 |
| - "layer": "top", // Waybar at top layer |
3 |
| - "position": "top", // Waybar at the bottom of your screen |
4 |
| - "height": 24, // Waybar height |
5 |
| - // "width": 1366, // Waybar width |
6 |
| - // Choose the order of the modules |
7 |
| - "modules-left": ["sway/workspaces", "sway/mode", "custom/spotify"], |
8 |
| - "modules-center": ["sway/window"], |
9 |
| - "modules-right": ["pulseaudio", "network", "cpu", "battery", "tray", "clock"], |
10 |
| - "sway/workspaces": { |
11 |
| - "disable-scroll": true, |
12 |
| - "all-outputs": false |
13 |
| - }, |
| 2 | + "layer": "bottom", |
| 3 | + "position": "top", |
| 4 | + "height": 30, |
| 5 | + |
| 6 | + "modules-left": ["sway/workspaces", "sway/mode"], |
| 7 | + "modules-center": ["clock"], |
| 8 | + "modules-right": ["tray", "custom/spotify", "custom/weather", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery"], |
14 | 9 | "sway/mode": {
|
15 |
| - "format": "<span style=\"italic\">{}</span>" |
| 10 | + "format": " {}" |
16 | 11 | },
|
17 |
| - "tray": { |
18 |
| - "icon-size": 21, |
19 |
| - "spacing": 20 |
| 12 | + "sway/workspaces": { |
| 13 | + "format": "{name}", |
| 14 | + "disable-scroll": true |
20 | 15 | },
|
21 |
| - "clock": { |
22 |
| - "format": "{:%a, %d %b - %H:%M}" |
| 16 | + "sway/window": { |
| 17 | + "max-length": 80, |
| 18 | + "tooltip": false |
23 | 19 | },
|
24 |
| - "memory": { |
25 |
| - "format": "{}% " |
| 20 | + "clock": { |
| 21 | + "format": "{:%a %d %b %H:%M}", |
| 22 | + "tooltip": false |
26 | 23 | },
|
27 | 24 | "battery": {
|
28 |
| - "bat": "BAT0", |
| 25 | + "format": "{capacity}% {icon}", |
| 26 | + "format-icons": ["", "", "", "", ""], |
| 27 | + "format-charging": "{capacity}% ", |
| 28 | + "interval": 30, |
29 | 29 | "states": {
|
30 |
| - // "good": 95, |
31 |
| - "warning": 30, |
32 |
| - "critical": 15 |
| 30 | + "warning": 25, |
| 31 | + "critical": 10 |
33 | 32 | },
|
34 |
| - "format": "{icon} {capacity}%", |
35 |
| - // "format-good": "", // An empty format will hide the module |
36 |
| - "format-full": "Charged {icon}", |
37 |
| - "format-icons": ["", "", "", "", ""] |
| 33 | + "tooltip": false |
38 | 34 | },
|
39 | 35 | "network": {
|
40 |
| - // "interface": "wlp2s0", // (Optional) To force the use of this interface |
41 |
| - "format-wifi": "{essid} ({signalStrength}%) ", |
42 |
| - "format-ethernet": "{ifname}: {ipaddr}/{cidr} ", |
43 |
| - "format-disconnected": "Disconnected ⚠" |
| 36 | + "format": "{icon}", |
| 37 | + "format-alt": "{ipaddr}/{cidr} {icon}", |
| 38 | + "format-alt-click": "click-right", |
| 39 | + "format-icons": { |
| 40 | + "wifi": ["", "" ,""], |
| 41 | + "ethernet": [""], |
| 42 | + "disconnected": [""] |
| 43 | + }, |
| 44 | + "on-click": "gnome-terminal -e nmtui", |
| 45 | + "tooltip": false |
44 | 46 | },
|
45 | 47 | "pulseaudio": {
|
46 |
| - //"scroll-step": 1, |
47 |
| - "format": "{volume}% {icon}", |
48 |
| - "format-bluetooth": "{volume}% {icon}", |
49 |
| - "format-muted": "", |
| 48 | + "format": "{icon}", |
| 49 | + "format-alt": "{volume} {icon}", |
| 50 | + "format-alt-click": "click-right", |
| 51 | + "format-muted": "", |
50 | 52 | "format-icons": {
|
51 |
| - "headphones": "", |
52 |
| - "handsfree": "", |
53 |
| - "headset": "", |
54 |
| - "phone": "", |
55 |
| - "portable": "", |
56 |
| - "car": "", |
57 |
| - "default": ["", ""] |
| 53 | + "phone": [" ", " ", " ", " "], |
| 54 | + "default": ["", "", "", ""] |
58 | 55 | },
|
| 56 | + "scroll-step": 10, |
59 | 57 | "on-click": "pavucontrol",
|
60 |
| - "on-scroll-up": "pactl -- set-sink-volume 0 +1%", |
61 |
| - "on-scroll-down": "pactl -- set-sink-volume 0 -1%" |
| 58 | + "tooltip": false |
62 | 59 | },
|
63 | 60 | "custom/spotify": {
|
64 |
| - "format": " {}", |
65 |
| - "max-length": 40, |
66 |
| - "interval": 30, // Remove this if your script is endless and write in loop |
67 |
| - "exec": "$HOME/.config/waybar/mediaplayer.sh 2> /dev/null", // Script in resources folder |
68 |
| - "exec-if": "pgrep spotify" |
| 61 | + "interval": 1, |
| 62 | + "return-type": "json", |
| 63 | + "exec": "~/.config/waybar/modules/spotify.sh", |
| 64 | + "exec-if": "pgrep spotify", |
| 65 | + "escape": true |
| 66 | + }, |
| 67 | + "custom/storage": { |
| 68 | + "format": "{} ", |
| 69 | + "format-alt": "{percentage}% ", |
| 70 | + "format-alt-click": "click-right", |
| 71 | + "return-type": "json", |
| 72 | + "interval": 60, |
| 73 | + "exec": "~/.config/waybar/modules/storage.sh" |
| 74 | + }, |
| 75 | + "backlight": { |
| 76 | + "format": "{icon}", |
| 77 | + "format-alt": "{percent}% {icon}", |
| 78 | + "format-alt-click": "click-right", |
| 79 | + "format-icons": ["", ""], |
| 80 | + "on-scroll-down": "light -A 1", |
| 81 | + "on-scroll-up": "light -U 1" |
| 82 | + }, |
| 83 | + "custom/weather": { |
| 84 | + "format": "{}", |
| 85 | + "format-alt": "{alt}: {}", |
| 86 | + "format-alt-click": "click-right", |
| 87 | + "interval": 1800, |
| 88 | + "return-type": "json", |
| 89 | + "exec": "~/.config/waybar/modules/weather.sh", |
| 90 | + "exec-if": "ping wttr.in -c1" |
| 91 | + }, |
| 92 | + "idle_inhibitor": { |
| 93 | + "format": "{icon}", |
| 94 | + "format-icons": { |
| 95 | + "activated": "🔓", |
| 96 | + "deactivated": "" |
| 97 | + }, |
| 98 | + "tooltip": false |
| 99 | + }, |
| 100 | + "custom/mail": { |
| 101 | + "format": "", |
| 102 | + "format-alt": "{alt} ", |
| 103 | + "format-alt-click": "click-right", |
| 104 | + "interval": 60, |
| 105 | + "return-type": "json", |
| 106 | + "exec": "~/.config/waybar/modules/mail.py", |
| 107 | + "tooltip": false |
| 108 | + }, |
| 109 | + "custom/test": { |
| 110 | + "format": "{}", |
| 111 | + "exec": "/tmp/test blub", |
| 112 | + "param": "blah", |
| 113 | + "interval": 5 |
| 114 | + }, |
| 115 | + "tray": { |
| 116 | + "icon-size": 18 |
69 | 117 | }
|
70 | 118 | }
|
0 commit comments