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
|
{
"layer": "top",
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-center": ["sway/window"],
"modules-right": ["tray", "custom/alsa", "network", "battery", "clock"],
"sway/workspaces": {
"format": "{icon}",
"format-icons": {
"1": "一",
"2": "二",
"3": "三",
"4": "四",
"5": "五",
"6": "六",
"7": "七",
"8": "八",
"9": "九",
"10": "十"
}
},
"sway/window": {
"max-length": 100,
"icon": true,
"icon-size": 16
},
"tray": {
"show-passive-items": true
},
"custom/alsa": {
"exec": "amixer get Master | grep '%' | awk -F '[][]' '{print $2}'",
//"exec-if": "alsactl monitor",
"format": "V {}",
"on-scroll-up": "amixer set Master 1%+",
"on-scroll-down": "amixer set Master 1%-",
"interval": 1
},
"network": {
"format": "{ipaddr}",
"format-disconnected": "Offline",
"interval": 1,
"on-click-right": "~/.local/bin/iwctl-re",
"on-click-middle": "notify-send 'WLAN Reload' 'Restart iwd.service'; sudo systemctl restart iwd.service"
},
"battery": {
"format": "E {capacity}%",
"format-full": "",
"full-at": 60
},
"clock": {
"format": "{:%a %d. %b %H:%M}"
}
}
|