home-config/waybar/config
229951a502d1a6ddc00fff2a1170ad7436966379
· 4.5 KB · 137 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", "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 | "pulseaudio": { |
| 63 | "format-alt": "{icon}", |
| 64 | "format": "{volume} {icon}", |
| 65 | "format-alt-click": "click-right", |
| 66 | "format-muted": "", |
| 67 | "format-icons": { |
| 68 | "phone": [" ", " ", " ", " "], |
| 69 | "default": ["", "", "", ""] |
| 70 | }, |
| 71 | "scroll-step": 1, |
| 72 | "on-click": "pavucontrol", |
| 73 | "tooltip": false |
| 74 | }, |
| 75 | "custom/spotify": { |
| 76 | "interval": 2, |
| 77 | "return-type": "json", |
| 78 | "exec": "~/.config/waybar/modules/spotify.sh", |
| 79 | "exec-if": "~/.config/waybar/modules/check-for-music.sh", |
| 80 | "escape": true, |
| 81 | "on-click": "playerctl play-pause" |
| 82 | }, |
| 83 | "custom/storage": { |
| 84 | "format-alt": "{} ", |
| 85 | "format": "{percentage}% ", |
| 86 | "format-alt-click": "click-right", |
| 87 | "return-type": "json", |
| 88 | "interval": 60, |
| 89 | "exec": "~/.config/waybar/modules/storage.sh" |
| 90 | }, |
| 91 | "backlight": { |
| 92 | "format-alt": "{icon}", |
| 93 | "format": "{percent}% {icon}", |
| 94 | "format-alt-click": "click-right", |
| 95 | "format-icons": ["", ""], |
| 96 | "on-scroll-down": "light -A 1", |
| 97 | "on-scroll-up": "light -U 1" |
| 98 | }, |
| 99 | "custom/weather_OLD": { |
| 100 | "format-alt": "{}", |
| 101 | "format": "{alt}: {}", |
| 102 | "format-alt-click": "click-right", |
| 103 | "interval": 1800, |
| 104 | "return-type": "json", |
| 105 | "on-click": "foot -a ala-wttr -H curl https://v2.wttr.in", |
| 106 | "exec": "~/.config/waybar/modules/weather.sh", |
| 107 | "exec-if": "ping wttr.in -c1" |
| 108 | }, |
| 109 | "custom/weather": { |
| 110 | "format": "{} °F", |
| 111 | "tooltip": true, |
| 112 | "interval": 3600, |
| 113 | "exec": "exit=101; while [ $exit = 101 ]; do wttrbar --main-indicator temp_F --fahrenheit; exit=$(echo $?); sleep 1; done", |
| 114 | "on-click": "foot -a ala-wttr -H curl https://v2.wttr.in", |
| 115 | "return-type": "json" |
| 116 | }, |
| 117 | "idle_inhibitor": { |
| 118 | "format": "{icon}", |
| 119 | "format-icons": { |
| 120 | "activated": "", |
| 121 | "deactivated": "" |
| 122 | }, |
| 123 | "tooltip": false |
| 124 | }, |
| 125 | "custom/mail": { |
| 126 | "format": "", |
| 127 | "format-alt": "{alt} ", |
| 128 | "format-alt-click": "click-right", |
| 129 | "interval": 60, |
| 130 | "return-type": "json", |
| 131 | "exec": "~/.config/waybar/modules/mail.py", |
| 132 | "tooltip": false |
| 133 | }, |
| 134 | "tray": { |
| 135 | "icon-size": 18 |
| 136 | } |
| 137 | } |