aboutsummaryrefslogtreecommitdiff
path: root/env/.config/waybar/config.jsonc
blob: b469e7ad28e62d37d0f4b8029d34c1215df3f689 (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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
{
    "layer": "top",
    "position": "bottom",
    "modules-left": [ "hyprland/workspaces", "sway/workspaces", "custom/ws_end_arrow", "sway/mode" ],

    "modules-right": [
        "custom/mod_end_arrow",
        "custom/mic",
        "pulseaudio",
        //"backlight",
        "battery",
        "custom/wifi",
        "network",
        "cpu",
        "memory",
        //"custom/docker",
        "custom/disc",
        "custom/rss",
        "clock",
        "tray",
        "custom/lock",
        "custom/power"
    ],

    "custom/ws_end_arrow":{
        "format": "",
        "tooltip": false
    },

    "custom/mod_end_arrow":{
        "format": "",
        "tooltip": false
    },

    "hyprland/workspaces": {
        //"format": "{name}: {icon}",
        //"all-outputs":true,
        "format": "{icon}",
        "format-icons": {
            /*
            "1": "",
            "3": "",
            "4": "",
            "5":"   ",
            */
            "1":"   ",
            "2":"   ",
            "3":"   ",
            "4":"   ",
            "5": "  ",
            "6":"   ",
            "7":"   ",
            "8":"   ",
            "9":"   ",
            "10":"  ",
            "11":"   ",
            "12":"   ",
            "13":"   ",
            "14":"   ",
            "15":"   ",
            "16":"   ",
            "17":"   ",
            "18":"   ",
            "19":"   ",
            "20":"  "
        },
        "persistent-workspaces": {
            "1": ["HDMI-A-1"],
            "2": ["HDMI-A-1"],
            "3": ["HDMI-A-1"],
            "4": ["HDMI-A-1"],
            "5": ["HDMI-A-1"],
            "6": ["HDMI-A-1"],
            "7": ["HDMI-A-1"],
            "8": ["HDMI-A-1"],
            "9": ["HDMI-A-1"],
            "10": ["HDMI-A-1"],
            "11": ["DP-1"],
            "12": ["DP-1"],
            "13": ["DP-1"],
            "14": ["DP-1"],
            "15": ["DP-1"],
            "16": ["DP-1"],
            "17": ["DP-1"],
            "18": ["DP-1"],
            "19": ["DP-1"],
            "20": ["DP-1"]
        },
        "sort-by-name": true
    },

    "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":"  "
        },
        "persistent-workspaces": {
            "1": ["HDMI-A-1"],
            "2": ["HDMI-A-1"],
            "3": ["HDMI-A-1"],
            "4": ["HDMI-A-1"],
            "5": ["HDMI-A-1"],
            "6": ["HDMI-A-1"],
            "7": ["HDMI-A-1"],
            "8": ["HDMI-A-1"],
            "9": ["HDMI-A-1"],
            "10": ["HDMI-A-1"],
            "11": ["DP-1"],
            "12": ["DP-1"],
            "13": ["DP-1"],
            "14": ["DP-1"],
            "15": ["DP-1"],
            "16": ["DP-1"],
            "17": ["DP-1"],
            "18": ["DP-1"],
            "19": ["DP-1"],
            "20": ["DP-1"]
        },
        "sort-by-name": true
    },

    "tray": {
        "icon-size": 16,
        "spacing": 10
    },

    "custom/music": {
        "format": "  {}",
        "escape": true,
        "interval": 5,
        "tooltip": false,
        "exec": "playerctl metadata --format='{{ artist }} - {{ title }}'",
        "on-click": "playerctl play-pause",
        "max-length": 50
    },

    "clock": {
        "timezone": "America/Chicago",
        "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
        "format": "  {:%a %m/%d/%Y %I:%M:%S}  ",
        "interval": 1
    },

    "network": {
        "interface": "wlan0",
        "format-wifi": " 󰤢 {bandwidthDownBits}",
        "format-ethernet": " 󰈀 {bandwidthDownBits}",
        "format-disconnected": " 󰤠 No Network",
        "interval": 5,
        "tooltip": true,
        "tooltip-format-wifi": "{essid} ({signalStrength}%) ",
        "tooltip-format-ethernet": "{ifname} ",
        "tooltip-format-disconnected": "Disconnected"
    },

    "cpu": {
        "interval": 1,
        "format": "    {icon0}{icon1}{icon2}{icon3} {usage:>2}%",
        "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"]
    },

    "memory": {
        "interval": 30,
        "format": "    {used:0.1f}G/{total:0.1f}G"
    },

    "pulseaudio": {
        "format": "{icon} {volume}%",
        "format-muted": "  ",
        "format-icons": {
            "default": ["  ", "  ", "   "]
        },
        "on-click": "pavucontrol"
    },

    "custom/power": {
        "tooltip": false,
        "on-click": "~/.config/wlogout/wlogout.sh",
        "format": "⏻"
    },

    "custom/lock": {
        "format": "   ",
        "on-click": "hyprlock"
    },

    "custom/docker": {
        "format": "{}",
        "return-type": "json",
        "interval": 10,
        "exec": "$(pwd)/scripts/docker-stats/docker-stats",
        "tooltip": true
    },

    "custom/weather": {
        "format": "  {}",
        "tooltip": true,
        "interval": 1800,
        "exec": "$(pwd)/scripts/weather-stats/weather-stats",
        "return-type": "json"
    },

    "custom/rss": {
        "format": "   {}",
        "interval": 3,
        "exec": "/usr/bin/newsboat -x print-unread|sed 's/\\s.*//; s/Error:/E/'"
    },

    "custom/disc": {
        "format": "   {}",
        "interval": 20,
        "exec": "df -h -x=used /dev/mapper/artix-root | sed '1d' | awk '{print $4}'| sed 's/[^0-9]*//g'"
    },

    "custom/mic": {
        "format": "{}",
        "interval": 1,
        "exec": "[ \"$(pactl get-source-mute @DEFAULT_SOURCE@)\" == \"Mute: no\" ] && echo  || echo 󰍭"
    },

    "custom/wifi": {
        "format": "  {}",
        "interval": 1000,
        "exec": "sed 's/down/\\:\\(/;s/up/\\:\\)/' /sys/class/net/wlan0/operstate"
    }
}