home-config/waybar/config

77dbb818209f59e40a353302d76975e9bd654e55 · 4.9 KB · 154 lines raw

1 {
2 "layer": "top",
3 "position": "top",
4 "height": 30,
5
6 "modules-left": ["hyprland/workspaces", "hyprland/submap"],
7 "modules-center": ["hyprland/window"],
8 "modules-right": ["tray", "custom/spotify", "privacy", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
9 "hyprland/submap": {
10 "format": " {}"
11 },
12 "hyprland/workspaces": {
13 "format": "{id}",
14 "all-outputs": false,
15 "disable-scroll": true
16 },
17 "hyprland/window": {
18 "max-length": 80,
19 "tooltip": false,
20 "separate-outputs": true
21 },
22 "clock": {
23 "format": "{:%a %d %b %H:%M}",
24 "tooltip": false
25 },
26 "battery": {
27 "format": "{capacity}% {icon}",
28 "format-alt": "{time} {icon}",
29 "format-icons": ["", "", "", "", ""],
30 "format-charging": "{capacity}% ",
31 "interval": 30,
32 "states": {
33 "warning": 25,
34 "critical": 10
35 },
36 "tooltip": false,
37 "bat":"BAT1"
38 },
39 "bluetooth": {
40 "format": "󰂯",
41 "format-disabled": "󰂲",
42 "format-connected": "󰂯",
43 "format-connected-battery": "󰂱 {device_battery_percentage}%",
44 "on-click": "blueman-manager",
45 "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
46 "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
47 "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
48 "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
49 },
50 "network": {
51 "format-alt": "{ipaddr}/{cidr} {icon} {bandwidthTotalBytes}󰹹",
52 "format": "{ipaddr}/{cidr} {icon}",
53 "format-alt-click": "click-right",
54 "format-icons": {
55 "wifi": ["󰤟", "󰤢" ,"󰤥", "󰤨"],
56 "ethernet": [""],
57 "disconnected": ["󰤭"]
58 },
59 "on-click": "foot -t alacritty doas nmtui",
60 "tooltip": false
61 },
62 "privacy": {
63 "icon-spacing":4,
64 "icon-size":18,
65 "transition-duration":250,
66 "modules": [
67 {
68 "type":"screenshare",
69 "tooltip":true,
70 "tooltip-icon-size":24
71 },
72 {
73 "type":"audio-in",
74 "tooltip":true,
75 "tooltip-icon-size":24
76 }
77 ]
78 },
79 "pulseaudio": {
80 "format-alt": "{icon}",
81 "format": "{volume} {icon}",
82 "format-alt-click": "click-right",
83 "format-muted": "",
84 "format-icons": {
85 "phone": [" ", " ", " ", " "],
86 "default": ["", "", "", ""]
87 },
88 "scroll-step": 1,
89 "on-click": "pavucontrol",
90 "tooltip": false
91 },
92 "custom/spotify": {
93 "interval": 2,
94 "return-type": "json",
95 "exec": "~/.config/waybar/modules/spotify.sh",
96 "exec-if": "~/.config/waybar/modules/check-for-music.sh",
97 "escape": true,
98 "on-click": "playerctl play-pause"
99 },
100 "custom/storage": {
101 "format-alt": "{} ",
102 "format": "{percentage}% ",
103 "format-alt-click": "click-right",
104 "return-type": "json",
105 "interval": 60,
106 "exec": "~/.config/waybar/modules/storage.sh"
107 },
108 "backlight": {
109 "format-alt": "{icon}",
110 "format": "{percent}% {icon}",
111 "format-alt-click": "click-right",
112 "format-icons": ["", ""],
113 "on-scroll-up": "light -A 1",
114 "on-scroll-down": "light -U 1"
115 },
116 "custom/weather_OLD": {
117 "format-alt": "{}",
118 "format": "{alt}: {}",
119 "format-alt-click": "click-right",
120 "interval": 1800,
121 "return-type": "json",
122 "on-click": "foot -a ala-wttr -H curl https://v2.wttr.in",
123 "exec": "~/.config/waybar/modules/weather.sh",
124 "exec-if": "ping wttr.in -c1"
125 },
126 "custom/weather": {
127 "format": "{} °F",
128 "tooltip": true,
129 "interval": 3600,
130 "exec": "exit=101; while [ $exit = 101 ]; do wttrbar --main-indicator temp_F --fahrenheit; exit=$(echo $?); sleep 1; done",
131 "on-click": "foot -a ala-wttr -H curl https://v2.wttr.in",
132 "return-type": "json"
133 },
134 "idle_inhibitor": {
135 "format": "{icon}",
136 "format-icons": {
137 "activated": "",
138 "deactivated": ""
139 },
140 "tooltip": false
141 },
142 "custom/mail": {
143 "format": "",
144 "format-alt": "{alt} ",
145 "format-alt-click": "click-right",
146 "interval": 60,
147 "return-type": "json",
148 "exec": "~/.config/waybar/modules/mail.py",
149 "tooltip": false
150 },
151 "tray": {
152 "icon-size": 18
153 }
154 }