dotfiles/.local/bin/scripts/linkurl
2021-10-08 12:29:55 +02:00

5 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"