repos / dotfiles

my dotfiles

dotfiles / dot_config / waybar
Eric Bower  ·  2026-02-01

config

 1{
 2  "layer": "top",
 3  "position": "bottom",
 4  "modules-left": [
 5    "sway/workspaces",
 6    "sway/mode"
 7  ],
 8  "modules-center": [
 9  ],
10  "sway/workspaces": {
11    "disable-scroll": true,
12    "all-outputs": true,
13    "format": "{name}",
14  },
15  "sway/mode": {
16    "format": "<span style=\"italic\">{}</span>"
17  },
18  "modules-right": [
19    "battery",
20    "backlight",
21    "pulseaudio",
22    "network",
23    "clock",
24    "tray"
25  ],
26  "pulseaudio": {
27    "tooltip": false,
28    "scroll-step": 5,
29    "format": "{icon}  {volume}%",
30    "format-muted": "{icon}  {volume}%",
31    "on-click": "pavucontrol",
32    "format-icons": {
33      "default": [
34        "",
35        "",
36        ""
37      ]
38    }
39  },
40  "network": {
41    "tooltip": false,
42    "format-wifi": "   {essid}",
43    "format-ethernet": "",
44    "on-click": "iwgtk"
45  },
46  "backlight": {
47    "tooltip": false,
48    "format": "  {}%",
49    "interval": 1,
50    "on-scroll-up": "light -A 5",
51    "on-scroll-down": "light -U 5"
52  },
53  "battery": {
54    "states": {
55      "good": 95,
56      "warning": 30,
57      "critical": 20
58    },
59    "format": "{icon}   {capacity}%",
60    "format-charging": " {capacity}%",
61    "format-plugged": " {capacity}%",
62    "format-alt": "{time} {icon}",
63    "format-icons": [
64      "",
65      "",
66      "",
67      "",
68      ""
69    ]
70  },
71  "clock": {
72    "format": "{:%I:%M %m/%d}"
73  },
74  "tray": {
75    "icon-size": 18,
76    "spacing": 5
77  }
78}