Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

blobject/dotfiles

Repository files navigation

dotfiles

selection

classinstance
hwframework 13, voyager
envvoid linux, niri, bash, tcl
lookcemant, sarasa, sf pro, agave

scripts

namedescription
00 run file(s) based on mimetype (like xdg-open)
0c pass command string to tcl
0l read log
0m wrap xrandr
0s system utilities
0t graphical shell utilities
0u general utilities
0v wrap qemu
lib.tcl help 0* tcl scripts
stow.tcl prep and link all user files
load.tcl setup entire system + user configuration from scratch

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.

AltStyle によって変換されたページ (->オリジナル) /