My dotfiles for my Linux-based system setup. The structure of this repo is designed to be managed with GNU Stow, a symlinks farm manager.
I don’t know what I’m doing most of the time in creating this setup so if you’re brave (or suicidal) enough to take a look at my stuff, go ahead.
Caution
|
As they always say: "Don’t blindly apply these dotfiles unless you know what you’re doing." Review the code first, change the setting accordingly, and apply it on your own if you want. |
Here’s what the setup should look like (aside from the Stow packages which will be discussed later):
dotfiles
├── .vtsm/
├── docs/
├── LICENSE
├── makefile
├── README.adoc
└── vtsm
The big picture for my dotfiles setup have big goals and those are (according to priority):
-
Easy to transfer and/or reproduce.
-
Modularity, @holman-style.
-
Looking cool (but not too cool or else my potato will weep).
The dotfiles are mostly intended to be used with GNU Stow. If you’re not familiar with it, you can read this sweet short article to get you started.
However, with Python 3 (specifically 3.8) installed, you have another option. Behold, the "Very Tiny Stow Manager" (VTSM for short)! The best way to describe VTSM is basically GNU Stow with a generic shell runner. VTSM takes inspiration from GNU Stow (obviously) and how Zach Holman’s dotfiles are set. When managing your dotfiles, VTSM is going to be your friend/workmate.
All VTSM needs is a directory containing a package list stored in a JSON file with the name of the packages and their target path.
By default, it searches for a file named locations.json
but you can specify what JSON file to use with the -m
/--manifest
option.
{
"alacritty": "$HOME/.config/alacritty/",
"bin": "$HOME/bin/",
"bspwm": "$HOME/.config/bspwm/",
"dunst": "$HOME/.config/dunst/",
"emacs": "$HOME/.config/doom",
"lf": "$HOME/.config/lf",
"nvim": "$HOME/.config/nvim/",
"picom": "$HOME/.config/picom",
"polybar": "$HOME/.config/polybar",
"rofi": "$HOME/.config/rofi/",
"sxiv": "$HOME/.config/sxiv",
"sxhkd": "$HOME/.config/sxhkd/",
"wal": "$HOME/.config/wal",
"xorg": "$HOME",
"zsh": "$HOME"
}
With the tiny manager and the package list, we can then execute commands with all of the packages and its target path with one go. Here are some examples of running commands with VTSM.
# Take the setup as the filesystem structure.
# See the JSON files at .vtsm to see what packages to be installed and where to install them.
# Running the program without any arguments for a test run.
# There should be a bunch of `echo` commands being ran for all of the listed packages.
./vtsm
# Create the directories of the target path and install them with GNU Stow.
# Bada-bing, bada-boom, you have installed your setup or something.
./vtsm --manifest .vtsm/arch.json --commands "mkdir -p {location} && stow {package} --target {location}"
# Run commands only to Rofi and Emacs config files.
./vtsm --manifest .vtsm/arch.json --only "rofi" "emacs" --commands "stow --restow {package} --target {location}"
For the command string, it is a Python template with package
and location
as the available objects.
Next are more custom scripts!
They’re located in bin/
and ideally should be linked in $HOME/.local/bin
.
[1]
Here’s a list of the top most useful scripts (at least for me):
-
A Rofi menu for all of my screenshoting and screencasting needs. The script is also a fork of
ceuk’s
rofi-screenshot. Big thanks to them for the idea! -
An image selection-to-text script using OCR. Capture a region, process it through an OCR engine, and the content are then copied into the clipboard. Useful for capturing links in images or videos usually found in lecture videos.
-
Quick command prompts. The script is based from Luke Smith’s prompt script.
-
Switching on/off programs. Useful for situations where only one instance of the program is desirable.
-
A universal emoji list for easy copy-pasting and clear communication with those who speak Emojian.
-
https://github.com/jethrokuan/dots/ for his Emacs and Org Mode writing setup. He also has a dedicated series on his blog site if you want the juicy details.
-
https://www.reddit.com/r/unixporn/ obviously.
-
Specifically for the tabbed terminals idea and the linked dotfiles repo) (not yet implemented, still cleaning up my stuff)
Here’s a list of some of the best wallpapers I’ve used throughout my ricing journey. I’ve also tried to get the creators to show appreciation for their work.
-
-
Creator: rmRadev
-
-
-
Creator: Mikael Gustafsson
-
-
-
Creator: Mbdsgns
-
-
-
Creator: Beau Lamb
-
-
-
I was not able to track down the photographer of this one.
-
-
-
Creator: datGryphon
-
-
-
Creator: Beau Lamb
-
-
-
Creator: Josef Bartoň
-
My personal recommendations for looking out for more cool-looking photos.
-
Images from NASA. They also have a small collection of them in their Unsplash account.
-
Firewatch (or any style similar to Firewatch) wallpapers are top-notch ricing material.