summaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: 13eeadc12e650bab0087176a0abab606fc55c55b (plain)
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
{
    "layer": "top",
    "modules-left": ["sway/workspaces", "custom/workspace-add", "sway/mode"],
    "modules-center": ["sway/window"],
    "modules-right": ["tray", "pulseaudio", "network", "clock"],
    "sway/workspaces": {
      "format": "{icon}",
      "format-icons": {
        "1": "一",
        "2": "二",
        "3": "三",
        "4": "四",
        "5": "五",
        "6": "六",
        "7": "七",
        "8": "八",
        "9": "九",
        "10": "十",
        "11": "十一",
        "12": "十二",
        "13": "十三",
        "14": "十四",
        "15": "十五",
        "16": "十六",
        "17": "十七",
        "18": "十八",
        "19": "十九",
        "20": "二十"
      }
    },
    "custom/workspace-add": {
      "exec": "echo '+'",
      "on-click": "~/.config/sway/bin/workspace-add"
    },
    "sway/window": {
      "max-length": 100,
      "icon": true,
      "icon-size": 16
    },
    "tray": {
      "show-passive-items": true
    },
    "pulseaudio": {
      "format": "V {volume}%",
      "on-click-right": "pavucontrol"
    },
    "network": {
      "format": "{ipaddr}",
      "format-disconnected": "Offline",
      "interval": 1,
      "on-click-right": "~/.local/bin/iwctl-re --mode=soft",
      "on-click-middle": "~/.local/bin/iwctl-re --mode=hard"
    },
    "battery": {
      "format": "E {capacity}%",
      "format-full": "",
      "full-at": 60
    },
    "clock": {
      "format": "{:L%a %d. %b  %H:%M}"
    }
}