This is my repo for scripts, configuration files, etc. I currently use Ubuntu-based distros, at least for now, so most scripts will work for those. Some of the code (particularly for doing specific tasks, like the nautilus-to-nemo script) has been pulled from various places on the internet, and moving forward I will try to source them in the body of the code itself.
- generalconfigs.sh
- installscript.sh
- nautilus-to-nemo.sh
- neovim-setup.sh
- torrent.sh
- vimconfig.sh
- vim configuration file highlights
This script set up configurations for the following programs:
This script installs a handful of favorite programs. For brevity's sake, look at the apt install line of the script to see and modify the programs to be installed. Some repositories are also added for software installation.
You must run it as root: sudo ./nautilus-to-nemo.sh
This script replaces Nautilus (Ubuntu's default file manager) with Nemo (which is more feature-filled, if not to a KDE-like degree). Nemo will be installed and set as the default file manager.
Because nautilus-to-nemo.sh uses APT to add a PPA, update repository lists, and install Nemo, you must run it as root: sudo ./nautilus-to-nemo.sh
This script follows the instructions from neovim's :help nvim-from-vim. Refers neovim to vim's configuration file (~/.vimrc). Also aliases vi and vim to nvim in bash (running vi will now run neovim instead).
This script sorts media files in the designated folders. As-is, it scans designated directories for specific media types, and copies them to a new location with cleaned up filenames and directory structures. It also copies to a secondary location like a NAS or other whatever.
To use, just make sure that you have renamed all the filepaths appropriately. I have tried to make the file as easy as possible to edit, but please send me any suggestions for readability, modularity, etc.
- filebot for scanning, renaming, and reorganizing of movies an TV shows
- calibre for e-book management (pretty optional)
This script sets up vim just how I like it. If you want neovim configured the same way, check out neovim-setup.sh.
The script will:
- Install Vundle, a vim plugin manager
- Copy over my .vimrc from configs/.vimrc
- Download and install patched Powerline fonts for use with vim-airline (see below)
- Use Vundle to install all plugins called for in ~/.vimrc
- Adds a line to your ~/.bashrc to use vim as the default $MANPAGER
Note: When running for the first time, an error message about the molokai colorscheme not being found. Ignore and hit enter. Commit e461728 should make it so that this script can run without any user interaction.
- Vundle, a vim plugin manager
- molokai colorscheme
- vim-fugitive-git commmands from within vim
- vim-airline-an attractive and functional statusline
- NERDTree-a file tree explorer (open with
:NERDTree) - Mouse support turned on
- Run currently opened file (according to its shebang) with Shift+e
- Python specific:
- Code folding (
zato fold/unfold, or:help foldfor more info) - Run file in python3 interpreter with (Shift + E)
- Code folding (
- And much more! Check the comments in .vimrc for details.
- Ubuntu Mono Derivative Powerline and Indentline
This is my patched Ubuntu mono font for use with vim.airline and indentline. You will need to set your terminal to use it after either manually adding it to ~/.local/share/fonts or running my vimconfig script. See configs/.vimrc for notes on what these do. Licensed under the Ubuntu font license, a free license. I adapted the Ubuntu mono font from powerline fonts using Yggdroot's instructions. I added the font file here for ease of use for myself and others.
