Scripts for my daily use
- autoscript
- comp
- dmenu
- dmenu
- ffyt
- lolban
- mpd
- optout
- pdfcomp
- reprog
- shotgun
- ffgif
- ffimgaud
- ytclip
- dr
- ffconv
- ffrec
- finstall
- gamelaucher
- gdrive
- livesetup
- gtt
- colorgen
- ytstream
- soundpost
- quickType
- toggleKeyboard
- timelogger
This script creates new scripts and automatically makes the file executable. It has been copied from Let's Linux #009
This script is used when working with Goff/Toff and Markdown. It will automatically convert the documents to PDF format. It is binding with my default text editor (nvim). It also handles python files
- pandoc (For Markdown to PDF)
- python (For Running python scripts)
This is an application launcher using ls. It has an alternative using find to list applications. It is made due to dmenu_run being slow on my system.
This is add a music folder to the current playlist of mpd.
- mpc
- dmenu
This uses youtube-dl and ffplay to play youtube videos. You can add a second argument to specify quality. If nothing is inputted in the second argument the best quality will be picked
- yt-dlp
- ffmpeg
- mpv
- vlc
This converts text to ascii art. Purely for fun. It has been copied from Let's Linux #009
This control the mpd. You can see the current song, pause, next, previous, and add to mpd.
- dmenu
- mpd
This script opens the output of comp from the default editor(nvim).
This attempt to combine PDF files together. There is a bug when combining PDF file with spaces in their file name. It has options of -low
, -high
, and -comp
. -low
outputs the lowest acceptable resolution. -high
output the highest acceptable resolution. -comp
is the compressed version of PDF. If no option has be inputted it will a normal PDF combination. Combining files with no option may results in pages not having the same size.
- ghostscript
This killall an application and launches it again. I used this when experimenting with picom settings.
This script is a fork of the script shown in the shotgun github. I have added the feature of saving files with the option -s
.
This script will turn a video into a gif in the highest quality
- ffmpeg
This script will combine a single image and a single audio together Great for making sound images into a video
- ffmpeg
ytclip is a simple video trimming program I use this to make clips fast during livestreams
- ffmpeg
- yt-dlp
A dragon-drag-and-drop wrapper that supports links
Quickly converts one video format to another
- ffmpeg
A forked version of rec.sh. I have added the the feature of selecting a windows to record.
- ffmpeg
- xorg-xwininfo
- slop
Auto-install and reload of fonts. It stores the fonts in $HOME/.local/share/fonts
It is a gamelaucher using dmenu. It stores a list of games in $HOME/.cache/gamelaucher-bash/ .
Adding games:
gamelaucher add <alias> <launch command>
Removing games:
gamelaucher rm <alias>
Download public google drive files. It supports files and folders and has interactive interface with complex file selection.
- curl
It uses mpv(video) and brave(chat) to watch livestream. It supports upcoming videos.
- mpv
- socat
- curl
launch normally
livesetup <streamer>
add a new streamer. The <link>
must be a live link (e.g. https://www.youtube.com/channel/XXXXXXXXX/live
, https://www.twitch.tv/XXXXXXXX
)
livesetup add <streamer> <link>
remove a streamer
livesetup rm <streamer>
list all streamers
livesetup ls
Combines my commonly used git commands. It executes the commands in order.
- git
add a file
gtt -a <file>
add all files
gtt -A
add files and then commit a message
gtt -a <file> -cm <message>
view differences
git -d
check status
git -s
push changes to github
gtt -p
Generates a color map based on the image given.
colorgen <Image> [fuzziness] [number of colors]
- magick
Launching Normally
colorgen <Image>
Setting the fuzziness of the color generation to 60%
colorgen <Image> 60
Get 10 different colors
colorgen <Image> 30 10
Downloads youtube livestream using ffmpeg
- ffmpeg
- curl
Plays 4chan soundpost files.
Example of a soundpost file
filename[sound=<Link to sound file>].<image extention(png, jpg, gif, etc)>
- ffmpeg
Types out predetermined phrases using alias with dmenu
You can specify the phrases with editing the file $HOME/.config/quickType/database
- dmenu
- xdotool
This will enable/disable your keyboard. Use only if you have a second keyboard.
This will take the timestamp of the current time in mpv. It uses mpv ipc to get the current timestamp.
It has a default of 5 seconds delay and can be changed inside the script
Everytime you press enter, it will take the timestamp and you can add comments next to it. The comments will be written to the file after you start a new timestamp.
- mpv
- socat and can be changed inside the script
Correct way of launching
timelogger <MPV INPUT-IPC-SERVER> <OUTPUT FILE>