dot_testing/sh/snownews-url-handler
2022-06-18 22:28:58 -05:00

10 lines
183 B
Bash
Executable File

#!/bin/sh
printf "%s\n" "$1" >> /home/usr/aaaaaaaa
tube="$(printf "%s\n" "$1" | grep "watch?v=" | wc -l)"
[ "$tube" -eq 1 ] && mpv "$1" && exit
firefox $1
killall -10 simplestatus