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
97
|
{
"position": "top",
"modules-left": ["clock", "custom/date", "custom/weather", "memory"],
"modules-center": ["sway/workspaces"],
"modules-right": ["custom/wifi", "temperature", "pulseaudio", "battery"],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": true,
"format": "{icon}",
"persistent_workspaces": {
"1": [],
"2": [],
"3": [],
"4": [],
"5": [],
"6": []
},
"format-icons": {
"default": "",
"focused": "",
}
},
"clock": {
"format": " {:%H:%M}",
"tooltip-format": "<tt><small>{calendar}</small></tt>",
"calendar": {
"mode": "year",
"mode-mon-col": 3,
"weeks-pos": "right",
"on-scroll": 1,
"on-click-right": "mode",
"format": {
"months": "<span color='#f5e0dc'><b>{}</b></span>",
"days": "<span color='#cba6f7'><b>{}</b></span>",
"weeks": "<span color='#94e2d5'><b>W{}</b></span>",
"weekdays": "<span color='#f9e2af'><b>{}</b></span>",
"today": "<span color='#f38ba8'><b><u>{}</u></b></span>"
}
},
"actions": {
"on-click-right": "mode",
"on-click-forward": "tz_up",
"on-click-backward": "tz_down",
"on-scroll-up": "shift_up",
"on-scroll-down": "shift_down"
}
},
"custom/date": {
"format": " {}",
"interval": 60,
"exec": "~/.config/scripts/date.sh"
},
"custom/weather": { // https://github.com/bjesus/wttrbar
"format": "{}°C",
"tooltip": true,
"interval": 1800,
"exec": "wttrbar --hide-conditions",
"return-type": "json"
},
"memory": {
"interval": 30,
"format": " {}%"
},
"battery": {
"states": {
"warning": 20,
"critical": 10
},
"format": "{icon} {capacity}%",
"format-charging": " {capacity}%",
"format-plugged": " {capacity}%",
"format-alt": "{time} {icon}",
"format-icons": ["", "", "", "", ""]
},
"custom/wifi": {
"format": " {}",
"interval": 10,
"exec": "~/.config/scripts/network.sh"
},
"pulseaudio": {
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"format": "{icon} {volume}%",
"format-muted": " muted",
"format-icons": {
"headphone": "",
"default": ["", ""]
},
},
"temperature": {
"interval": "5",
"hwmon-path": "/sys/devices/platform/coretemp.0/hwmon/hwmon4/temp1_input",
"critical-threshold": 90,
"format-critical": " {temperatureC}°C",
"format": " {temperatureC}°C"
}
}
|