home-config/waybar/config

76c68a9a9864f26b697d022fc8777dd95e8aa2ca · 4.1 KB · 128 lines raw

1 {
2 "layer": "top",
3 "position": "top",
4 "height": 30,
5
6 "modules-left": ["wlr/workspaces", "hyprland/submap"],
7 "modules-center": ["hyprland/window"],
8 "modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "bluetooth", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
9 "hyprland/submap": {
10 "format": " {}"
11 },
12 "wlr/workspaces": {
13 "format": "{name}",
14 "disable-scroll": true
15 },
16 "hyprland/window": {
17 "max-length": 80,
18 "tooltip": false,
19 "separate-outputs": true
20 },
21 "clock": {
22 "format": "{:%a %d %b %H:%M}",
23 "tooltip": false
24 },
25 "battery": {
26 "format": "{capacity}% {icon}",
27 "format-alt": "{time} {icon}",
28 "format-icons": ["", "", "", "", ""],
29 "format-charging": "{capacity}% ",
30 "interval": 30,
31 "states": {
32 "warning": 25,
33 "critical": 10
34 },
35 "tooltip": false,
36 "bat":"BAT1"
37 },
38 "bluetooth": {
39 "format": "",
40 "format-disabled": "",
41 "format-connected": "",
42 "format-connected-battery": " {device_battery_percentage}%",
43 "on-click": "blueman-manager",
44 "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected",
45 "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}",
46 "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}",
47 "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%"
48 },
49 "network": {
50 "format-alt": "{ipaddr}/{cidr} {icon} {bandwidthTotalBytes}󰹹",
51 "format": "{ipaddr}/{cidr} {icon}",
52 "format-alt-click": "click-right",
53 "format-icons": {
54 "wifi": ["󰤟", "󰤢" ,"󰤥", "󰤨"],
55 "ethernet": [""],
56 "disconnected": ["󰤭"]
57 },
58 "on-click": "alacritty -e doas nmtui",
59 "tooltip": false
60 },
61 "pulseaudio": {
62 "format-alt": "{icon}",
63 "format": "{volume} {icon}",
64 "format-alt-click": "click-right",
65 "format-muted": "",
66 "format-icons": {
67 "phone": [" ", " ", " ", " "],
68 "default": ["", "", "", ""]
69 },
70 "scroll-step": 1,
71 "on-click": "pavucontrol",
72 "tooltip": false
73 },
74 "custom/spotify": {
75 "interval": 2,
76 "return-type": "json",
77 "exec": "~/.config/waybar/modules/spotify.sh",
78 "exec-if": "pgrep spotifyd",
79 "escape": true,
80 "on-click": "~/.config/waybar/modules/spotify-play-pause.sh play-pause"
81 },
82 "custom/storage": {
83 "format-alt": "{} ",
84 "format": "{percentage}% ",
85 "format-alt-click": "click-right",
86 "return-type": "json",
87 "interval": 60,
88 "exec": "~/.config/waybar/modules/storage.sh"
89 },
90 "backlight": {
91 "format-alt": "{icon}",
92 "format": "{percent}% {icon}",
93 "format-alt-click": "click-right",
94 "format-icons": ["", ""],
95 "on-scroll-down": "light -A 1",
96 "on-scroll-up": "light -U 1"
97 },
98 "custom/weather": {
99 "format-alt": "{}",
100 "format": "{alt}: {}",
101 "format-alt-click": "click-right",
102 "interval": 1800,
103 "return-type": "json",
104 "on-click": "alacritty --class ala-wttr --hold -e curl https://v2.wttr.in",
105 "exec": "~/.config/waybar/modules/weather.sh",
106 "exec-if": "ping wttr.in -c1"
107 },
108 "idle_inhibitor": {
109 "format": "{icon}",
110 "format-icons": {
111 "activated": "",
112 "deactivated": ""
113 },
114 "tooltip": false
115 },
116 "custom/mail": {
117 "format": "",
118 "format-alt": "{alt} ",
119 "format-alt-click": "click-right",
120 "interval": 60,
121 "return-type": "json",
122 "exec": "~/.config/waybar/modules/mail.py",
123 "tooltip": false
124 },
125 "tray": {
126 "icon-size": 18
127 }
128 }