diff options
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/common/ytclipo | 4 | ||||
| -rwxr-xr-x | bin/extra/1xsearch | 20 | ||||
| -rwxr-xr-x | bin/guiscripts/keyadd | 8 | ||||
| -rwxr-xr-x | bin/menuscripts/mhelp | 20 | 
4 files changed, 14 insertions, 38 deletions
diff --git a/bin/common/ytclipo b/bin/common/ytclipo index 263f1b3..7e7b9cc 100755 --- a/bin/common/ytclipo +++ b/bin/common/ytclipo @@ -19,8 +19,8 @@ notify-send "ytclipo" "<b>downloading</b> $inp"  yt-dlp "$inp" \  	--restrict-filenames \  	-f "b" \ -	-S "res:720" \ +	-S "res:1080" \  	-P "$HOME/vids/youtube/" \ -	-o "%(title)s.%(ext)s" +	-o "%(channel)s - %(title)s.%(ext)s"  notify-send "ytclipo" "<b>ytclipo</b><br>finished downloading."  echo "$inp" >> /tmp/ytclipo_history diff --git a/bin/extra/1xsearch b/bin/extra/1xsearch deleted file mode 100755 index a248d38..0000000 --- a/bin/extra/1xsearch +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh - -# dependencies -which pup > /dev/null || -	exit 1 - -test -z "${query:=$1}" &&  -	query="$(cat /dev/stdin)" - -url="https://1337x.to" -query="$(echo "$query" | tr ' ' '+' )" -result="$(curl -s "$url/search/$query/1/" | -	pup -p 'a attr{href}' | -	grep "^/torrent" |  -	head -n 1)" -# result contains / as first char -curl -s "$url$result" | -	pup -p 'a attr{href}' | -	grep "^magnet:" | -	head -n 1 diff --git a/bin/guiscripts/keyadd b/bin/guiscripts/keyadd index 96d6d03..1df8896 100755 --- a/bin/guiscripts/keyadd +++ b/bin/guiscripts/keyadd @@ -43,16 +43,16 @@ die "HOST: $HOST"  if [ "$1" = "-d" ]  then  	ssh-add -d - < "$SSHFOLDER"/$key.pub && -		notify-send "$0" "deleted <b>$key</b>" || -		notify-send "$0" "could not delete." +		notify-send "keyadd" "deleted <b>$key</b>" || +		notify-send "keyadd" "could not delete."  elif ! ssh-add -l | grep -q "$(ssh-keygen -lf "$SSHFOLDER"/$key)"  then  	die "adding: $key"  	export PASSWORD="keys/$HOST/ssh/$key"  	export SSH_ASKPASS="$0"  	ssh-add - < "$SSHFOLDER"/$key && -		notify-send "$0" "added <b>$key</b>" +		notify-send "keyadd" "added <b>$key</b>"  else  	die "key already added." -	notify-send "$0" "key already added." +	notify-send "keyadd" "key already added."  fi diff --git a/bin/menuscripts/mhelp b/bin/menuscripts/mhelp index e03222b..5963a88 100755 --- a/bin/menuscripts/mhelp +++ b/bin/menuscripts/mhelp @@ -1,5 +1,4 @@  #!/usr/bin/env sh -OPTIONS="/tmp/dmh_options.txt"  if [ "$MENUCMD" = "tofi" ]  then @@ -16,18 +15,15 @@ fi  test -z "$program" && exit 1 -if $program --help > "$OPTIONS" -then -    option="$(grep "^ *-[-a-zA-Z0-9]* " "$OPTIONS" | -		tr -s ' ' | -		sort | -		uniq | -		column -l 2 -t | -		$menucmd | -		awk '{print $1}')" -fi +option="$($program --help | +	# Parse options +	grep "^ *-[-a-zA-Z0-9]* " | +	tr -s ' ' | +	sort | uniq | +	column -l 2 -t | +	$menucmd | +	awk '{print $1}')"  test -z "$option" && exit 1 -rm -f "$OPTIONS"  setsid $program $option  | 
