aboutsummaryrefslogtreecommitdiffstats
path: root/home/waybar/config
blob: 779a9a193445afaffb17399562eabe456de22a67 (plain) (blame)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
    // -------------------------------------------------------------------------
    // Global configuration
    // -------------------------------------------------------------------------
    "ipc": true,
    "position": "bottom",
    "layer": "top",
    "height": 30,
    "mode": "dock",
    "modules-left": [
        "hyprland/hide",
        "hyprland/mode",
        "hyprland/workspaces",
        "disk",
        "memory",
        "cpu",
        "temperature",
        "custom/spotify"
    ],
    "modules-center": [
        "hyprland/window"
    ],
    "modules-right": [
        "pulseaudio",
        "battery",
        "backlight",
        "clock#date",
        "clock#time",
        "network",
        "tray"
    ],
    // -------------------------------------------------------------------------
    // Modules
    // -------------------------------------------------------------------------
    "hyprland/hide": {
        "hide-on-startup": true
    },
    "battery": {
        "interval": 1,
        "states": {
            "low": 30,
            "warning": 15,
            "critical": 5
        },
        "format": "{icon} {capacity}%",
        "format-discharging": "{icon} {capacity}%",
        "format-charging": "󰂄 {capacity}%",
        "tooltip-format": "{time} left",
        "format-icons": [
          "󰁺",
          "󰁻",
          "󰁼",
          "󰁽",
          "󰁾",
          "󰁿",
          "󰂀",
          "󰂁",
          "󰂂",
          "󰁹",
        ],
        "tooltip": true,
        "full-at": 95
    },
    "clock#time": {
        "interval": 10,
        "format": "{:%H:%M}",
        "tooltip": false
    },
    "clock#date": {
        "interval": 60,
        "format": "{:%A, %e %b %Y}",
        "tooltip": true
    },
    "cpu": {
        "interval": 2,
        "tooltip": true,
        "format": " {usage}%",
        "states": {
            "low": 0,
            "normal": 20,
            "warning": 70,
            "critical": 90
        }
    },
    "memory": {
        "interval": 5,
        "format": "  {used:0.1f}G",
        "tooltip-format": "{used:0.1f}G / {total:0.1f}G",
        "states": {
            "warning": 70,
            "critical": 90
        }
    },
    "network": {
        "interval": 1,
        "format-wifi": "{icon}",
        "format-disconnected": "󱖣",
        "format-icons": [
            "",
            "",
            "",
            "",
            ""
        ],
        "tooltip-format": "{essid} ({signalStrength}%) - {ifname} - {ipaddr} - {bandwidthDownBits} {bandwidthUpBits}",
        "tooltip": true,
    },
    "hyprland/mode": {
        "format": "<span style=\"italic\"> {}</span>",
        "tooltip": false
    },
    "hyprland/window": {
        "format": "{}",
        "max-length": 60,
        "tooltip": true
    },
    "hyprland/workspaces": {
        "all-outputs": true,
        "format": "{icon}"
    },
    "pulseaudio": {
        "scroll-step": 1,
        "format": "{icon} {volume}%",
        "format-muted": "",
        "format-bluetooth": " {icon} {volume}%",
        "format-bluetooth-muted": "",
        "on-click": "pulseaudio-control togmute",
        "on-click-middle": "pulseaudio-control --sink-blacklist 'alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink,alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink,alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink' next-sink"
    },
    "temperature": {
        "critical-threshold": 90,
        "interval": 5,
        "format": "{icon} {temperatureC}°C",
        "format-icons": [
            "",
            "",
            "",
            "",
            ""
        ],
        "tooltip": true
    },
    "disk": {
        "interval": 10,
        "format": "{free}"
    },
    "backlight": {
        "device": "intel_backlight",
        "format": "{icon} {percent}",
        "format-icons": [
            ""
        ],
        "on-scroll-up": "brightnessctl set +1% -e 6 -n 1",
        "on-scroll-down": "brightnessctl set 1%- -e 6 -n 1"
    },
    "tray": {
        "icon-size": 24,
        "spacing": 10
    }
}