✨ Replaced yt alias with yt script
This commit is contained in:
parent
91984d2a6b
commit
bccb2dbbc5
2 changed files with 16 additions and 2 deletions
4
aliases
4
aliases
|
|
@ -169,7 +169,7 @@ alias pulse="pamixer --set-volume"
|
|||
alias {mu,mt,mute}="pamixer -t"
|
||||
# laptop only currently, records video/audio, simply name filename .mp4 after command:
|
||||
alias r_vid="ffmpeg -f v4l2 -framerate 24 -video_size 640x480 -i /dev/video0 -itsoffset 00:00:01.0 -f alsa -i default -c:v libx264 -preset ultrafast -c:a aac"
|
||||
alias ytube="ytfzf -l --features=subtitles"
|
||||
# alias ytube="ytfzf -l --features=subtitles"
|
||||
alias {yti,ytinfo}="ytfzf -I L"
|
||||
alias {ytd,ytdownload}="ytfzf -d"
|
||||
alias {odysee,lbry}="ytfzf -c O --features=subtitles"
|
||||
|
|
@ -446,7 +446,7 @@ alias mdn='ddgr \!mdn "${1}"'
|
|||
# must have account to use gitlab bang
|
||||
alias glab='ddgr \!glab "${1}"'
|
||||
alias red='ddgr \!r "${1}"'
|
||||
alias yt='ddgr \!yt "${1}"'
|
||||
# alias yt='ddgr \!yt "${1}"'
|
||||
|
||||
# run the following two aliases every time you update the kernels and nvidiadkms
|
||||
alias {grub_update,update_grub}="doas grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
|
|
|
|||
14
scripts/yt
Executable file
14
scripts/yt
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
lastarg=("${@: -1}")
|
||||
|
||||
search=""
|
||||
for ARG in "${@}" ; do
|
||||
if [[ $ARG == "${lastarg[1]}" ]] ; then
|
||||
search+="${ARG}"
|
||||
else
|
||||
search+="${ARG}+"
|
||||
fi
|
||||
done
|
||||
|
||||
$BROWSER https://www.youtube.com/results?search_query="${search}" &
|
||||
Loading…
Add table
Add a link
Reference in a new issue