aboutsummaryrefslogblamecommitdiff
path: root/.local/bin/xdg-open
blob: 8cb094ec916994ebbd6e2aa5b03c226486f73d8c (plain) (tree)






















                                                        
#!/usr/bin/env sh

URL="$1"
xdgopen="$(which --all xdg-open | tac | head --lines 1)"

if [ "$URL" = "--help" ]
then
	echo "Help here"
	exit 1
fi

term() {
	footclient $@ || alacritty -e $@
}

if echo "$URL" | grep -qE "https?://.*youtu"
then
	mpv "$URL"
else
	$xdgopen "$URL"
	# term w3m "$URL"
fi
nfig/swaylock/config?id=e16dc2afe8e28d681e625b95e6b009656f70d383&follow=1'>swaylock: set background imageLuca Matei Pintilie1-2/+5 2024-07-11hyprlock: add configLuca Matei Pintilie2-0/+132 2024-07-11swayrbar: add configLuca Matei Pintilie6-0/+252