2019-08-19 21:24:41 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Not working if there is no navigation bar
|
|
|
|
xdotool key ctrl+l
|
|
|
|
xdotool key ctrl+c
|
2019-09-01 17:22:54 +02:00
|
|
|
# xdotool type yy
|
2019-08-19 21:24:41 +02:00
|
|
|
|
2019-09-01 17:22:54 +02:00
|
|
|
# link="$(xclip -o -selection clipboard | sed -E 's|([^&]*)(&)(.*)|\1|')"
|
2019-08-19 21:24:41 +02:00
|
|
|
link="$(xclip -o | sed -E 's|([^&]*)(&)(.*)|\1|')"
|
|
|
|
|
|
|
|
dash $SCRIPTS/tube.sh "$link"
|