install scripts. reorganization. soon to be deployable

This commit is contained in:
2025-05-24 04:08:28 -05:00
parent 5010e57533
commit e966d5328d
242 changed files with 407 additions and 45 deletions

23
env/.local/bin/system/url-handler.sh vendored Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
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 "$url" | xclip -selection clipboard
else
printf "$url" | wl-copy
fi
else
$choice "$url" & disown
fi