1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
{
"layer": "bottom",
"position": "top",
"height": 22,
"spacing": 4,
"modules-left": ["ext/workspaces", "dwl/window#layout", "dwl/window"],
"modules-center": ["clock"],
"modules-right": ["tray", "battery", "cpu", "memory", "custom/playerctl", "pulseaudio"],
"dwl/tags": {
"hide-vacant": false
},
"ext/workspaces": {
"disable-scroll": false,
"format": "{icon}",
"on-click": "activate"
},
"dwl/window#layout": {
"format": "[{layout}]"
},
"dwl/window": {
"format": "{title}",
"rewrite": {
"(.*)(- Brave)(.*)": "$1",
"(.*)(- Thunar)(.*)": "$1",
"(.*)(kitty)(.*)": "Kitty",
"(.*)(kew)(.*)": "$1"
},
"on-click": "",
"tooltip": false
},
"clock": { "format": "{:%I:%M %p <span color='#696969'>|</span> %b %d, %Y}",
"tooltip": false
},
"custom/playerctl": {
"exec": "/usr/bin/python3 /home/anand/dots/mango/waybar/mediaplayer.py",
"format": "{}",
"return-type": "json",
"on-click": "playerctl play-pause",
"on-click-right": "playerctl next"
},
"mpris": {
"format": "{stateIcon} {title}",
"format-disconnected": "Disconnected",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped",
"state-icons": {
"playing": "",
"paused": ""
},
"tooltip-format": "{title}\nBy: {artist}\nFrom: {album}\n({elapsedTime:%M:%S}/{totalTime:%M:%S})\nVol. {volume}%",
"tooltip-format-disconnected": "MPD (disconnected)",
"on-click": "rmpc togglepause",
"on-click-right": "rmpc next",
"on-scroll-up": "rmpc volume +5",
"on-scroll-down": "rmpc volume -5"
},
"tray": {
"icon-size": 16,
"spacing": 16,
"show-passive-items": true
},
"battery": {
"states": {
"warning": 33,
"critical": 10
},
"format": "{capacity}%"
},
"memory": {
"format": "<span color='#8A2BE2'></span>{used:0.1f}G/{total:0.1f}G",
"tooltip": false,
"interval": 5,
"tooltip-format": "{used:0.2f}G/{total:0.2f}G"
},
"pulseaudio": {
"scroll-step": 1, // %, can be a float
"format": "{icon} {volume}%",
"format-muted": "",
"format-icons": {
"default": ["", "", ""]
},
"tooltip-format": false,
"on-click": "pavucontrol"
}
}
|