diff options
Diffstat (limited to '.config/waybar/modules/hotspots.sh')
| -rwxr-xr-x | .config/waybar/modules/hotspots.sh | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/.config/waybar/modules/hotspots.sh b/.config/waybar/modules/hotspots.sh deleted file mode 100755 index fe2ff65..0000000 --- a/.config/waybar/modules/hotspots.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -set -e - -case "$1" in -click) - uri=$(hspl -u) - xdg-open "http://$uri" - ;; -*) - output=$(hspl || echo "none") - if [ "$output" != "none" ]; then - jq -nc \ - --arg text " $(head -n1 <<<"$output")" \ - --arg tooltip "$(tail -n+2 <<<"$output")" \ - --arg class "$(if [ "$(hspl -d)" -lt 100 ]; then echo "soon"; else echo ""; fi)" \ - '{text:$text,tooltip:$tooltip,class:$class}' - else - jq -nc '{}' - fi - ;; -esac |