Skip to content

blobject/dotfiles

Repository files navigation

dotfiles

selection

classinstance
hwthinkpad x1 nano g1, corne, atheris, mz1, i1601fwux
envvoid linux, labwc, bash, tcl
lookcemant, sarasa, agave, inter, font awesome

scripts

namedescription
00run file(s) based on mimetype (like xdg-open)
0cpass command string to tcl
0lread log
0mwrap xrandr
0ssystem utilities
0tgraphical shell utilities
0ugeneral utilities
0vwrap qemu
lib.tclhelp 0* tcl scripts
stow.tclprep and link all user files
load.tclsetup entire system + user configuration from scratch

keybinding

key templatekey moredo
GENERAL, MOVE, RESIZE
MS-rreconfigure
CA- char\b / \dlock / sleep
M/A-Lresize / move window
MS[C]-\eclose [ or kill ] window
MS- num1 / 2 / 3 / 4move window to nth desktop
M[S]- dirh / j / k / l / y / u / b / nmove [ and snap ] window to edge
M- charc / slash / quote / semic / comma / dot / lt / gtsnap window to variations of grid
M[S]-ftoggle maximise [ or fullscreen ]
FOCUS
M- num1 / 2 / 3 / 4focus nth desktop
A[S]-\tcycle focus [ backwards ]
M-atoggle always on top
APP
[S]-printtake picture of screen [ then edit ]
M-\sdismiss notification
M- char\n / grave / e / t / wlaunch launcher / treeview / editor / terminal / www

usage

keep a user configuration file

  1. Let’s say this repository is saved as dotfiles and you are in it.
  2. Create a directory with a name of your choice, prepending _.
  3. cd inside the new directory.
  4. Pretending that you are at $HOME, recreate the location of the configuration file.
    • For example, say you want to back up mimeapps.list. Create the path of folders ...dotfiles/_mime/.config, and write the file ...dotfiles/_mime/.config/mimeapps.list.

Note: Sometimes, a subpath may not exist, and that will affect both keeping and loading. Say you want to keep $HOME/.config/foo/bar.txt, but $HOME/.config doesn’t exist yet. If you call ./stow.tcl now to load everything, a link called $HOME/.config will be created referencing somewhere in dotfiles. When other files get put into $HOME/.config, all those files (even those you don’t want to keep) will actually reside in this repository!

For this reason, edit the fend list inside stow.tcl. For the above example, add .config to the list (to link foo/) or add .config/foo (to link bar.txt).

load/restore all user configuration files

Note: If you don’t want to load some _configuration, place it in disabled first.

  1. Go to the dotfiles root directory.
  2. ./stow.tcl

load entire system configuration

IMPORTANT: Customised to my system. Will most likely bork your system.

WIP

  1. Go to the dotfiles root directory.
  2. ./load.tcl
    • presumes: drives prepped; base system and tcl installed; internet available

remove a user configuration file.

WIP

  1. Find the link and manually rm it.