aboutsummaryrefslogtreecommitdiff
path: root/src/waybar/020_config.jsonc
blob: 967c256bf63e350067cae72c19aa9300e74e3f77 (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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
{
    //
    // ~~~ waybar config
    //

    //
    /// ~~~ bar

    // sizing
    "position": "bottom",
    "height": 28,

    // modules
    "modules-left": [ "sway/workspaces", "sway/window" ],
    "modules-right": [ "cpu", "memory", "wireplumber", "network", "custom/vpn", "bluetooth", "battery", "clock" ],

    //
    // ~~~ modules

    // sway workspaces
    "sway/workspaces": {
        "persistent-workspaces": {
            "1": [ "eDP-1" ],
            "2": [ "eDP-1" ],
            "3": [ "eDP-1" ],
            "4": [ "eDP-1" ],
            "5": [ "eDP-1" ],
            "6": [ "eDP-1" ],
            "7": [ "eDP-1" ],
            "8": [ "eDP-1" ],
            "9": [ "eDP-1" ],
            "10": [ "eDP-1" ],
            "11": [ "DP-2" ],
            "12": [ "DP-2" ],
            "13": [ "DP-2" ],
            "14": [ "DP-2" ],
            "15": [ "DP-2" ],
            "16": [ "DP-2" ],
            "17": [ "DP-2" ],
            "18": [ "DP-2" ],
            "19": [ "DP-2" ],
            "20": [ "DP-2" ]
        }
    },

    // cpu
    "cpu": {
        "interval": 5,

        "format": "[ CPU: {usage}% ]"
    },

    // memory
    "memory": {
        "interval": 15,

        "format": "[ MEM: {percentage}% ]",
        "tooltip-format": "{used}GiB used out of {total}GiB"
    },

    // volume
    "wireplumber": {
        "max-volume": 100,

        "format": "[ VOL: {volume}% ]",
        "format-muted": "[ VOL: <span color='#eb4056'>MUTE</span> ]",

        "on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
    },

    // internet
    "network": {
        "interface": "wlan0",

        "format": "[ NET: <span color='#fad075'>UNKNOWN</span> ]",
        "format-wifi": "[ NET: {essid} ]",
        "format-linked": "[ NET: <span color='#fad075'>{essid}</span> ]",
        "format-disconnected": "[ NET: <span color='#eb4056'>NONE</span> ]",

        "tooltip-format-wifi": "IP: {ipaddr}\nStrength: {signalStrength}%"
    },

    // tinc
    "custom/vpn": {
        "exec": "~/scripts/sway/vpn.nu",
        "interval": 3
    },

    // bluetooth
    "bluetooth": {
        "format-off": "[ BT: <span color='#f7768e'>0</span> ]",
        "format-on": "[ BT: 0 ]",
        "format-connected": "[ BT: <span color='#7aa2f7'>{num_connections}</span> ]"
    },

    // battery
    "battery": {
        "states": {
            "warning": 20,
            "critical": 10
        },
        "full-at": 95,

        "format": "[ BAT: {capacity}% ]",
        "format-charging": "[ BAT: <span color='#9ece6a'>{capacity}%+</span> ]",
        "format-warning": "[ BAT: <span color='#e0af68'>{capacity}%</span> ]",
        "format-critical": "[BAT: <span color='#f7768e'>{capacity}%</span> ]",

        "tooltip": true,
        "tooltip-format": "{time} remaining"
    },

    // clock
    "clock": {
        "interval": 45,

        "format": "[ {:%H:%M} ]",
        "tooltip": true,
        "tooltip-format": "{:%Y-%m-%d %H:%M}"
    }
}