remove mnt from oneliners
This commit is contained in:
parent
689a6fb791
commit
d60686ae1d
@ -29,17 +29,6 @@ printf $SHEBANG'xrandr --output VGA-1 --auto --right-of LVDS-1\n
|
|||||||
printf $SHEBANG"xrandr --output HDMI-1 --off\n" >hdmioff
|
printf $SHEBANG"xrandr --output HDMI-1 --off\n" >hdmioff
|
||||||
printf $SHEBANG"xrandr --output VGA-1 --off\n" >vgaoff
|
printf $SHEBANG"xrandr --output VGA-1 --off\n" >vgaoff
|
||||||
|
|
||||||
# mounting volumes
|
|
||||||
printf $SHEBANG"[ -z \"\$1\" ] && printf 'Usage: %%b [device]\\\\n' \"\$0\" && exit 1 || true
|
|
||||||
[ -d \"/mnt/\$1\" ] || $SUDO mkdir \"/mnt/\$1\"
|
|
||||||
$SUDO mount \"/dev/\$1\" \"/mnt/\$1\" && cd \"/mnt/\$1\"\n" >mnt
|
|
||||||
|
|
||||||
# wireguard vpn stuff
|
|
||||||
printf $SHEBANG$SUDO' wg-quick up "$@"\n' >vpn-connect
|
|
||||||
printf $SHEBANG$SUDO' wg-quick down "$@"\n' >vpn-disconnect
|
|
||||||
printf $SHEBANG$SUDO' ls /etc/wireguard/ | grep "conf$" | awk -F ".conf" "{print $1}"\n' >vpn-list
|
|
||||||
printf $SHEBANG'xterm -e "vpn-connect $(vpn-list | dmenu); read -s -n 1"\n' >vpn-quick # not to be confused with wg-quick
|
|
||||||
|
|
||||||
# youtube-dl stuff
|
# youtube-dl stuff
|
||||||
printf $SHEBANG"youtube-dl --add-metadata -i -o \"$HOME/%%(upload_date)s %%(title)s.%%(ext)s\" \"\$@\"\n" >youtube-dlo
|
printf $SHEBANG"youtube-dl --add-metadata -i -o \"$HOME/%%(upload_date)s %%(title)s.%%(ext)s\" \"\$@\"\n" >youtube-dlo
|
||||||
printf $SHEBANG"youtube-dlo -f \"bestvideo[vcodec=vp9]+bestaudio[acodec=opus]\" \"\$@\"\n" >youtube-dlp
|
printf $SHEBANG"youtube-dlo -f \"bestvideo[vcodec=vp9]+bestaudio[acodec=opus]\" \"\$@\"\n" >youtube-dlp
|
||||||
|
Loading…
Reference in New Issue
Block a user