This is a collection of scripts to improve my terminal workflow.
To install, clone the repo, and add
source <location of repo>/zshto your bashrc or zshrc. (all scripts run as bash)
Kladd is a sketching tool. Sketch files are put in the /tmp directory.
how to sketch a new file:
kladd <name-of-sketch>example:
kladd 1how to run a sketch
kladd <name-of-sketch> run <program-to-run-sketch>example:
kladd 1.pykladd 1.py run python3how to list all sketches
kladd listKladd requires no dependencies. Default editor is neovim from a binary file (because that is what i run) To change editor, change the $editor environment variable in the script
lets you fuzzy select from podman containers, starts the container its command
pd
lets you quickly search your toolbox directory and open
requirements: bat and nvim alternatively you can change the preview and editor variables to some other programs you prefer
tb
examples of toolbox notes can be found at https://github.com/TheSkibb/toolbox
you can also quickly add new tools by adding the argument n
tb nFirst you will be promted for a file name. All spaces will be replaced with dashes, and a .md extension will be added. Then that filename will be opened with your editor (nvim by default)
dnOpens a markdown file for daily note.
wnOpens a markdown file for weekly note.
To change the date and week format of the notes change the $DAILY_FORMAT and $WEEKLY_FORMAT variables.
To change to the location of where the notes open change the $NOTE $DAILY and $WEEKLY variables.
$NOTE is the directory of all your notes. The dn script will cd to this directory so all files in this directory can be edited. $DAILY is the directory where you want the daily notes to be.
Default editor is neovim from a binary file (because that is what i run) To change editor, change the $editor environment variable in the script
ff is a script which takes you to the directory of the file you select.
fzf is required.
fvim is lets you edit the file you choose
fzf is required.
pipes git diff into fzf with a preview of the diff in question
when selecting a diff it will run git diff for that file, so you can inspect the whole thing
mapped to gd
fzf and git is required.
bat is required, or change the display_program variable
cht
then input the command/program/concept to search for
To activate this uncomment the sudo alias in the optional section. The fake sudo will remaps "sudo" to a script which will always fail.
It can be bypassed by using absolute path for sudo.
Most of the other scripts are referenced externally on my machine.
- notifySuspend
- send a notification that the system will suspend soon.
- i3lock
- lock with wallpaper.
- batteryChecker
- checks how much batteru is left.
- newTask
- script to create tasks in neovim