]> src.twobees.de Git - dotfiles.git/blob - stow/waybar/.config/waybar/config
6a02fe7aa8dbe3ba891fcffbfab7646e8b133986
[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         // "timezone": "America/New_York",
86         "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
87         "format-alt": "{:%Y-%m-%d}"
88     },
89     "cpu": {
90         "format": "{usage}% ",
91         "tooltip": false
92     },
93     "memory": {
94         "format": "{}% "
95     },
96     "temperature": {
97         // "thermal-zone": 2,
98         // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
99         "critical-threshold": 80,
100         // "format-critical": "{temperatureC}°C {icon}",
101         "format": "{temperatureC}°C {icon}",
102         "format-icons": ["", "", ""]
103     },
104     "backlight": {
105         // "device": "acpi_video1",
106         "format": "{percent}% {icon}",
107         "format-icons": ["", "", "", "", "", "", "", "", ""]
108     },
109     "battery": {
110         "states": {
111             // "good": 95,
112             "warning": 30,
113             "critical": 15
114         },
115         "format": "{capacity}% {icon}",
116         "format-charging": "{capacity}% ",
117         "format-plugged": "{capacity}% ",
118         "format-alt": "{time} {icon}",
119         // "format-good": "", // An empty format will hide the module
120         // "format-full": "",
121         "format-icons": ["", "", "", "", ""]
122     },
123     "battery#bat2": {
124         "bat": "BAT2"
125     },
126     "network": {
127         // "interface": "wlp2*", // (Optional) To force the use of this interface
128         "format-wifi": "{essid} ({signalStrength}%) ",
129         "format-ethernet": "{ipaddr}/{cidr} ",
130         "tooltip-format": "{ifname} via {gwaddr} ",
131         "format-linked": "{ifname} (No IP) ",
132         "format-disconnected": "Disconnected ⚠",
133         "format-alt": "{ifname}: {ipaddr}/{cidr}"
134     },
135     "pulseaudio": {
136         // "scroll-step": 1, // %, can be a float
137         "format": "{volume}% {icon} {format_source}",
138         "format-bluetooth": "{volume}% {icon} {format_source}",
139         "format-bluetooth-muted": " {icon} {format_source}",
140         "format-muted": " {format_source}",
141         "format-source": "{volume}% ",
142         "format-source-muted": "",
143         "format-icons": {
144             "headphone": "",
145             "hands-free": "",
146             "headset": "",
147             "phone": "",
148             "portable": "",
149             "car": "",
150             "default": ["", "", ""]
151         },
152         "on-click": "pavucontrol"
153     },
154     "custom/media": {
155         "format": "{icon} {}",
156         "return-type": "json",
157         "max-length": 40,
158         "format-icons": {
159             "spotify": "",
160             "default": "🎜"
161         },
162         "escape": true,
163         "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
164         // "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
165     }
166 }
167