dotfiles/.local/bin/scripts/linkurl

6 lines
130 B
Bash
Executable File

#!/bin/sh
echo "[Desktop Entry]
Icon=text-html
Type=Link
URL=$1" >"$(test -n "$2" && echo $2 || echo $1 | cut -d'/' -f3).desktop"