diff options
| author | Robert Günzler <r@gnzler.io> | 2026-02-10 12:32:48 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2026-02-10 12:41:25 +0100 |
| commit | 63feeb9f369fc6176e85c1c2d8fcc863caad1946 (patch) | |
| tree | 41cd5d2d1ec36e74e464caab722cc9b460153f04 /.config/waybar/modules/hotspots.sh | |
| parent | 5bd0a4aca65ecb9818ef1285982d160b6b6ff665 (diff) | |
start new
Signed-off-by: Robert Günzler <r@gnzler.io>
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 |