Config: Fix i3 startup scripts, some minor tweaks

This commit is contained in:
Riyyi
2022-02-03 19:56:52 +01:00
parent b87e49711d
commit fadfdd1963
5 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -42,13 +42,13 @@ play() {
if [ -z "$1" ]; then
MPV="$MPV $CLIP"
# Cut off everything after space
LINK=" $(echo "$CLIP" | sed -nE 's/^(\S+).*/\1/p')"
LINK="$(echo "$CLIP" | sed -nE 's/^(\S+).*/\1/p')"
else
MPV="$MPV $*"
# Determain which argument holds the urls
[ "$1" = "${1#-}" ] && DISPLAY="$1" || DISPLAY="$2"
# Cut off everything after space
LINK=" $(echo "$DISPLAY" | sed -nE 's/^(\S+).*/\1/p')"
LINK="$(echo "$DISPLAY" | sed -nE 's/^(\S+).*/\1/p')"
fi
notify-send -t 2500 "Loading video: $LINK"