diff options
Diffstat (limited to 'users/ryan/linux/waybar/config')
| -rw-r--r-- | users/ryan/linux/waybar/config | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/users/ryan/linux/waybar/config b/users/ryan/linux/waybar/config new file mode 100644 index 0000000..62e6b20 --- /dev/null +++ b/users/ryan/linux/waybar/config | |||
| @@ -0,0 +1,167 @@ | |||
| 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", "battery#num2", "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":"BAT0" | ||
| 38 | }, | ||
| 39 | "battery#num2": { | ||
| 40 | "format": "{capacity}% {icon}", | ||
| 41 | "format-alt": "{time} {icon}", | ||
| 42 | "format-icons": ["", "", "", "", ""], | ||
| 43 | "format-charging": "{capacity}% ", | ||
| 44 | "interval": 30, | ||
| 45 | "states": { | ||
| 46 | "warning": 25, | ||
| 47 | "critical": 10 | ||
| 48 | }, | ||
| 49 | "tooltip": false, | ||
| 50 | "bat":"BAT1" | ||
| 51 | }, | ||
| 52 | "bluetooth": { | ||
| 53 | "format": "", | ||
| 54 | "format-disabled": "", | ||
| 55 | "format-connected": "", | ||
| 56 | "format-connected-battery": " {device_battery_percentage}%", | ||
| 57 | "on-click": "foot bluetui", | ||
| 58 | "tooltip-format": "{controller_alias}\t{controller_address}\n\n{num_connections} connected", | ||
| 59 | "tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{num_connections} connected\n\n{device_enumerate}", | ||
| 60 | "tooltip-format-enumerate-connected": "{device_alias}\t{device_address}", | ||
| 61 | "tooltip-format-enumerate-connected-battery": "{device_alias}\t{device_address}\t{device_battery_percentage}%" | ||
| 62 | }, | ||
| 63 | "network": { | ||
| 64 | "format-alt": "{ipaddr}/{cidr} {icon} {bandwidthTotalBytes}", | ||
| 65 | "format": "{ipaddr}/{cidr} {icon}", | ||
| 66 | "format-alt-click": "click-right", | ||
| 67 | "format-icons": { | ||
| 68 | "wifi": ["", "" ,"", ""], | ||
| 69 | "ethernet": [""], | ||
| 70 | "disconnected": [""] | ||
| 71 | }, | ||
| 72 | "on-click": "foot -t alacritty doas nmtui", | ||
| 73 | "tooltip": false | ||
| 74 | }, | ||
| 75 | "privacy": { | ||
| 76 | "icon-spacing":4, | ||
| 77 | "icon-size":18, | ||
| 78 | "transition-duration":250, | ||
| 79 | "modules": [ | ||
| 80 | { | ||
| 81 | "type":"screenshare", | ||
| 82 | "tooltip":true, | ||
| 83 | "tooltip-icon-size":24 | ||
| 84 | }, | ||
| 85 | { | ||
| 86 | "type":"audio-in", | ||
| 87 | "tooltip":true, | ||
| 88 | "tooltip-icon-size":24 | ||
| 89 | } | ||
| 90 | ] | ||
| 91 | }, | ||
| 92 | "pulseaudio": { | ||
| 93 | "format-alt": "{icon}", | ||
| 94 | "format": "{volume} {icon}", | ||
| 95 | "format-alt-click": "click-right", | ||
| 96 | "format-muted": "", | ||
| 97 | "format-icons": { | ||
| 98 | "phone": [" ", " ", " ", " "], | ||
| 99 | "default": ["", "", "", ""] | ||
| 100 | }, | ||
| 101 | "scroll-step": 1, | ||
| 102 | "on-click": "pavucontrol", | ||
| 103 | "tooltip": false | ||
| 104 | }, | ||
| 105 | "custom/spotify": { | ||
| 106 | "interval": 2, | ||
| 107 | "return-type": "json", | ||
| 108 | "exec": "~/.config/waybar/modules/spotify.sh", | ||
| 109 | "exec-if": "~/.config/waybar/modules/check-for-music.sh", | ||
| 110 | "escape": true, | ||
| 111 | "on-click": "playerctl play-pause" | ||
| 112 | }, | ||
| 113 | "custom/storage": { | ||
| 114 | "format-alt": "{} ", | ||
| 115 | "format": "{percentage}% ", | ||
| 116 | "format-alt-click": "click-right", | ||
| 117 | "return-type": "json", | ||
| 118 | "interval": 60, | ||
| 119 | "exec": "~/.config/waybar/modules/storage.sh" | ||
| 120 | }, | ||
| 121 | "backlight": { | ||
| 122 | "format-alt": "{icon}", | ||
| 123 | "format": "{percent}% {icon}", | ||
| 124 | "format-alt-click": "click-right", | ||
| 125 | "format-icons": ["", ""], | ||
| 126 | "on-scroll-up": "light -A 1", | ||
| 127 | "on-scroll-down": "light -U 1" | ||
| 128 | }, | ||
| 129 | "custom/weather_OLD": { | ||
| 130 | "format-alt": "{}", | ||
| 131 | "format": "{alt}: {}", | ||
| 132 | "format-alt-click": "click-right", | ||
| 133 | "interval": 1800, | ||
| 134 | "return-type": "json", | ||
| 135 | "on-click": "foot -a ala-wttr -H curl https://v2.wttr.in", | ||
| 136 | "exec": "~/.config/waybar/modules/weather.sh", | ||
| 137 | "exec-if": "ping wttr.in -c1" | ||
| 138 | }, | ||
| 139 | "custom/weather": { | ||
| 140 | "format": "{} °F", | ||
| 141 | "tooltip": true, | ||
| 142 | "interval": 3600, | ||
| 143 | "exec": "exit=101; while [ $exit = 101 ]; do wttrbar --main-indicator temp_F --fahrenheit; exit=$(echo $?); sleep 1; done", | ||
| 144 | "on-click": "foot -a ala-wttr -H curl https://v2.wttr.in", | ||
| 145 | "return-type": "json" | ||
| 146 | }, | ||
| 147 | "idle_inhibitor": { | ||
| 148 | "format": "{icon}", | ||
| 149 | "format-icons": { | ||
| 150 | "activated": "", | ||
| 151 | "deactivated": "" | ||
| 152 | }, | ||
| 153 | "tooltip": false | ||
| 154 | }, | ||
| 155 | "custom/mail": { | ||
| 156 | "format": "", | ||
| 157 | "format-alt": "{alt} ", | ||
| 158 | "format-alt-click": "click-right", | ||
| 159 | "interval": 60, | ||
| 160 | "return-type": "json", | ||
| 161 | "exec": "~/.config/waybar/modules/mail.py", | ||
| 162 | "tooltip": false | ||
| 163 | }, | ||
| 164 | "tray": { | ||
| 165 | "icon-size": 18 | ||
| 166 | } | ||
| 167 | } | ||
