]> src.twobees.de Git - dotfiles.git/blob - stow/waybar/.config/waybar/config
../..
[dotfiles.git] / stow / waybar / .config / waybar / config
1 {
2     // "layer": "top", // Waybar at top layer
3     "position": "top", // Waybar position (top|bottom|left|right)
4         "height": 30, // Waybar height (to be removed for auto height)
5                       // "width": 1280, // Waybar width
6         "spacing": 4, // Gaps between modules (4px)
7                       // Choose the order of the modules
8         "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
9         "modules-center": ["sway/window"],
10         //"modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"],
11         "modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "tray", "clock"],
12         // Modules configuration
13         // "sway/workspaces": {
14         //     "disable-scroll": true,
15         //     "all-outputs": true,
16         //     "format": "{name}: {icon}",
17         //     "format-icons": {
18         //         "1": "",
19         //         "2": "",
20         //         "3": "",
21         //         "4": "",
22         //         "5": "",
23         //         "urgent": "",
24         //         "focused": "",
25         //         "default": ""
26         //     }
27         // },
28         "keyboard-state": {
29             "numlock": true,
30             "capslock": true,
31             "format": "{name} {icon}",
32             "format-icons": {
33                 "locked": "",
34                 "unlocked": ""
35             }
36         },
37         "sway/mode": {
38             "format": "<span style=\"italic\">{}</span>"
39         },
40         "sway/scratchpad": {
41             "format": "{icon} {count}",
42             "show-empty": false,
43             "format-icons": ["", ""],
44             "tooltip": true,
45             "tooltip-format": "{app}: {title}"
46         },
47         "mpd": {
48             "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) ⸨{songPosition}|{queueLength}⸩ {volume}% ",
49             "format-disconnected": "Disconnected ",
50             "format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",
51             "unknown-tag": "N/A",
52             "interval": 2,
53             "consume-icons": {
54                 "on": " "
55             },
56             "random-icons": {
57                 "off": "<span color=\"#f53c3c\"></span> ",
58                 "on": " "
59             },
60             "repeat-icons": {
61                 "on": " "
62             },
63             "single-icons": {
64                 "on": "1 "
65             },
66             "state-icons": {
67                 "paused": "",
68                 "playing": ""
69             },
70             "tooltip-format": "MPD (connected)",
71             "tooltip-format-disconnected": "MPD (disconnected)"
72         },
73         "idle_inhibitor": {
74             "format": "{icon}",
75             "format-icons": {
76                 "activated": "",
77                 "deactivated": ""
78             }
79         },
80         "tray": {
81             // "icon-size": 21,
82             "spacing": 10
83         },
84         "clock": {
85             "interval": 60,
86             "tooltip": true,
87             "format": "{:%H.%M}",
88             "tooltip-format": "{:%Y-%m-%d}",
89         },
90         "cpu": {
91             "format": "{usage}% ",
92             "tooltip": false
93         },
94         "memory": {
95             "format": "{}% "
96         },
97         "temperature": {
98             // "thermal-zone": 2,
99             // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
100             "critical-threshold": 80,
101             // "format-critical": "{temperatureC}°C {icon}",
102             "format": "{temperatureC}°C {icon}",
103             "format-icons": ["", "", ""]
104         },
105         "backlight": {
106             // "device": "acpi_video1",
107             "format": "{percent}% {icon}",
108             "format-icons": ["", "", "", "", "", "", "", "", ""]
109         },
110         "battery": {
111             "states": {
112                 // "good": 95,
113                 "warning": 30,
114                 "critical": 15
115             },
116             "format": "{capacity}% {icon}",
117             "format-charging": "{capacity}% ",
118             "format-plugged": "{capacity}% ",
119             "format-alt": "{time} {icon}",
120             // "format-good": "", // An empty format will hide the module
121             // "format-full": "",
122             "format-icons": ["", "", "", "", ""]
123         },
124         "battery#bat2": {
125             "bat": "BAT2"
126         },
127         "network": {
128             // "interface": "wlp2*", // (Optional) To force the use of this interface
129             "format-wifi": "{essid} ({signalStrength}%) ",
130             "format-ethernet": "{ipaddr}/{cidr} ",
131             "tooltip-format": "{ifname} via {gwaddr} ",
132             "format-linked": "{ifname} (No IP) ",
133             "format-disconnected": "Disconnected ⚠",
134             "format-alt": "{ifname}: {ipaddr}/{cidr}"
135         },
136         "pulseaudio": {
137             // "scroll-step": 1, // %, can be a float
138             "format": "{volume}% {icon} {format_source}",
139             "format-bluetooth": "{volume}% {icon} {format_source}",
140             "format-bluetooth-muted": " {icon} {format_source}",
141             "format-muted": " {format_source}",
142             "format-source": "{volume}% ",
143             "format-source-muted": "",
144             "format-icons": {
145                 "headphone": "",
146                 "hands-free": "",
147                 "headset": "",
148                 "phone": "",
149                 "portable": "",
150                 "car": "",
151                 "default": ["", "", ""]
152             },
153             "on-click": "pavucontrol"
154         },
155         "custom/media": {
156             "format": "{icon} {}",
157             "return-type": "json",
158             "max-length": 40,
159             "format-icons": {
160                 "spotify": "",
161                 "default": "🎜"
162             },
163             "escape": true,
164             "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
165                                                                        // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
166         }
167 }
168