|Nero ffed57826b||2 weeks ago|
|bin||1 month ago|
|feh||2 months ago|
|git||2 months ago|
|htop||1 month ago|
|i3||1 month ago|
|mpv||2 years ago|
|nano||1 month ago|
|profile.d||1 year ago|
|screen||7 months ago|
|shellrc.d||2 weeks ago|
|terminfo||1 year ago|
|tmux||7 months ago|
|xinitrc.d||3 months ago|
|.gitignore||1 year ago|
|LICENSE||10 months ago|
|README.md||10 months ago|
|Xresources||2 months ago|
|nobackup.txt||2 weeks ago|
|profile||3 months ago|
|shellrc||2 weeks ago|
|xinitrc||3 months ago|
This repository is for synchronizing my shell and i3 settings across machines.
The checkout location is
$XDG_CONFIG_HOME, which is usually equal to
~/.profile is made a symlink to the checkout location.
That also defines the value of
The profile defines
$ENV, which defines which file will by sourced by interactive shells.
$ENV in general and requires a
~/.bashrc symlink to shellrc.
In addition to that, bash also calls the
~/.bashrc for non-interactive shells under certain circumstances, thats why the shellrc tests for -i.
For xinit, a
~/.xinitrc symlink needs to be created to point to
For tmux, the same needs to be done with
profiledetects this by following the
~/.profilesymlink if not present.
Machine-specific fixes are placed in
These directories are optional.
Shell scripts started from background daemons like cron or init won't have the environment variables resulting from the login process and
-l to the end of their shebang line will cause the executing shell to undergo this process and, in turn, also load the settings from
Depending on the setup, i either create
.xinitrc as a symlink to
.config/xinitrc, or create a custom
xsession implements whatever is necessary to load my environment and chains to
xinitrc does alot of things:
The i3 setup shows o spaces and no window decorations. All windows are maximized, a single row on top of the screen displays the window titles in a browser-like tabbed fashion.
Most of my activity happens in a rxvt-unicode terminal, but depending on the setup, i might use other emulators as well.
I use mosh or plain ssh to connect to the machine which is hosting irssi in a tmux session. Notifications happen via the terminal bell, which propagates from irssi up to my window manager and causes the terminal title to turn to a bright color.
rxvt is configured to hilight links with a underscore and run
xdg-open on them.
xdg-open is a script from the repo in this case.
The name was intentionally chosen to override the systems default handler with the same name.
xdg-open runs the
view script in a new terminal window / tmux pane.
view itself contains complex logic to display the contents of the url to me, usually via feh, mpv or by chaining to firefox.
This includes displaying files of unknown type via hexdump, or showing text files via
It also degrades nicely in functionality when there is no Xorg available.
There is the
save command, which is a wrapper around
Its job is to generate a useful filename and extension for the download.
The downloaded files end up directly in my home directory, where they are later archived from.
My homedir and Downloads folder has a constant influx of memes, datasheet PDFs and compressed archives.
To avoid them piling up, i occasionally run the
archive script to move them into
This cleans all non-hidden files that are directly in ~/$HOME.
For directories, i need to explicitly call
archive on them.
There is a
do-backup script which does a rsync of
$HOME to a storage machine.
It uses a long ignore list from
.config/nobackup.txt to avoid caches, sensitive data and trash.
The destination directory is host specific with delete propagation.
This means when i delete a file locally, it is also deleted from the backup on the next
The archive directory special: it is backupped to a directory shared for all machines, files from there are never deleted.
This is my
data dump that i go digging in when im looking for things from earlier times.