~ntgg/dotfiles

ref: fccd2520360823048b8297d440e1c2711947c7ae dotfiles/.config/waybar/config -rw-r--r-- 2.3 KiB View raw
fccd2520Noah Graff use plug.kak for kak-lsp 5 months ago
                                                                                
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
{
    "layer": "top",
    "height": 24,
    "modules-left": ["sway/workspaces", "custom/spotify", "sway/mode"],
    "modules-center": ["sway/window"],
    "modules-right": ["idle_inhibitor", "pulseaudio", "network", "backlight", "battery", "clock"],
    "sway/workspaces": {
        "disable-scroll": true,
        "disable-bar-scroll": true
    },
    "custom/spotify": {
        "format": "{}",
        "return-type": "json",
        "max-length": 50,
        "interval": 5,
        "exec": "$HOME/.config/waybar/modules/spotify.sh",
        "exec-if": "pgrep spotify"
    },
    "sway/mode": { "tooltip": false },
    "sway/window": {
        "max-length": 80,
        "tooltip": false
    },
    "idle_inhibitor": {
        "tooltip": false,
        "format": "{icon}",
        "format-icons": {
            "activated": "",
            "deactivated": ""
        }
    },
    "pulseaudio": {
        "tooltip": false,
        "format": "{volume}% {icon}",
        "format-muted": "",
        "format-bluetooth": "{volume}% {icon}",
        "format-icons": {
            "headphones": "",
            "handsfree": "",
            "headset": "",
            "phone": "",
            "portable": "",
            "car": "",
            "default": ["", ""]
        },
        "on-click": "pactl set-sink-mute 0 toggle"
    },
    "network": {
        "tooltip": false,
        "format": "{ifname}",
        "format-alt": "{ifname}: {ipaddr}/{cidr}",
        "format-wifi": "{essid} ({signalStrength}%) ",
        "format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
        "format-linked": "{ifname} (No IP) ",
        "format-disconnected": "⚠"
    },
    "backlight": {
        "tooltip": false,
        "format": "{percent}% {icon}",
        "format-icons": ["", ""]
    },
    "battery": {
        "tooltip": false,
        "format": "{capacity}% {icon}",
        "format-charging": "{capacity}% ",
        "format-plugged": "{capacity}% ",
        "format-alt": "{capacity}% {time} {icon}",
        "format-icons": ["", "", "", "", ""],
        "states": {
            "warning": 30,
            "critical": 15,
            "extra-critical": 5
        }
    },
    "clock": {
        "tooltip": false,
        "format-alt": "{:%Y-%m-%d}"
    }
}