aboutsummaryrefslogtreecommitdiff
path: root/env/.local/bin/system/url-handler.sh
diff options
context:
space:
mode:
Diffstat (limited to 'env/.local/bin/system/url-handler.sh')
-rwxr-xr-xenv/.local/bin/system/url-handler.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/env/.local/bin/system/url-handler.sh b/env/.local/bin/system/url-handler.sh
deleted file mode 100755
index 5d0e893..0000000
--- a/env/.local/bin/system/url-handler.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-url=$@
-prompt_message="Open with:"
-
-echo "$url"
-
-choices="
-clipboard
-browser/xdg-open
-"
-
-choice=$(echo "$choices" | sed /^$/d | rofi -dmenu "$prompt_message")
-choice=$(echo "$choice" | sed -e 's/browser\/xdg-open/xdg-open/')
-
-if [ "$choice" = "clipboard" ]; then
- if [ -z "$WAYLAND_DISPLAY" ]; then
- printf -- "%s" "$url" | xclip -selection clipboard
- else
- printf -- "%s" "$url" | wl-copy
- fi
-else
- $choice "$url" & disown
-fi