1
0

get rid of useless oneliners

This commit is contained in:
dtb 2022-06-02 20:21:41 -04:00
parent c89990673d
commit a5e74c8552

View File

@ -9,37 +9,15 @@ set -x
mkdir -p $HOME/bin/oneliners || exit
cd $HOME/bin/oneliners
SUDO=doas
SHEBANG="#!/bin/sh\n"
BASH_SHEBANG="#!/bin/bash\n"
DMENU_LINES="40"
# private bookmarks
printf $SHEBANG'$BROWSER file://$HOME/bookmarks.html\n' >bmarks
# deemix
printf $SHEBANG'python $HOME/src/deemix-pyweb/deemix-pyweb.py\n' >deemix
# settings for specific monitors
printf $SHEBANG'xrandr --output HDMI-1 --auto --mode 720x480 --right-of LVDS-1\n' >1702
printf $SHEBANG'xrandr --output VGA-1 --auto --right-of LVDS-1\n' >mv720
# more monitor settings
printf $SHEBANG"xrandr --output HDMI-1 --off\n" >hdmioff
printf $SHEBANG"xrandr --output VGA-1 --off\n" >vgaoff
# 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-dlo -f \"bestvideo[vcodec=vp9]+bestaudio[acodec=opus]\" \"\$@\"\n" >youtube-dlp
printf $SHEBANG"youtube-dlp -f \$(youtube-dl -F \$1 | tail +4 | dmenu -p \"Choose a format.\" -l $DMENU_LINES | awk '{ print \$1 }') \"\$@\"\n" >youtube-dl-interactive
printf $SHEBANG"youtube-dl-interactive \"\$@\" -o - | mpv -\n" >youtube-dl-mpv
# sxhkd
printf $SHEBANG"cd '$HOME/.config/sxhkd/'
cat sxhkdrc-base sxhkdrc-bspwm >sxhkdrc
pkill sxhkd -USR1\n" >sxhkd-bspwm-reload
set +x
ls && [ $(printf "Yes.\nNo." | dmenu -p "Any risky files?") = "No." ] && printf "Making executable.\n" && chmod +x *