f3rno's dotfiles
Deployed since Thu Dec 25 20:03:34 2014 +0100
Accumulated since 2012, from my dwm days and beyond awesome, now settled on a combination of i3, dunst, and rofi powered by fzf and the classic silver-searcher-ag, then finally full-circle to a populated .bashrc requiring a personal xf-bash-lib to operate sanely across a variety of environments.
Setup
Since the beginning I've utilised the outdated dotfiles package to deploy this configuration. As of this moment, Fri Oct 8 05:50:45 PM UTC 2021, it still clobbers existing directories. Hence a re-install of local pip packages is required after each sync. Regardless:
cd ~
pip install --user dotfiles
# This folder structure is used for the Github repo helpers, i.e. gc
mkdir -p ".src/github/$USER"
cd ".src/github/$USER"
git clone https://github.com/f3rno64/dotfiles.git
cd dotfiles
git submodule init
git submodule update
Edit the config at dotfilesrc to point to the cloned repo. Example follows.
// ...
repository = /home/USER/.src/github/mf3rnol/dotfiles
// ...
Finally, sync and re-install your pip
packages due to the subsequent clobber:
cp dotfilesrc ~/.dotfilesrc
dotfiles -f -s
pip install --user dotfiles
Bash Utility Examples
Highly opinionated and plentiful, below are some examples:
# clones github.com/nvm-sh/nvm to ~/.src/github/nvm-sh/nvm
gc nvm-sh/nvm # clones https://github.com/nvm-sh/nvm.git into .src/github/nvm-sh/nvm
# Installs neovim using either apt, pkg (termux), or dnf
pkgi neovim
# ls -alhc
ll
# Uses unix pass to generate g/google, copies it, and clears the screen
pass-gen g/google
VIM Eye Candy
Dependencies
Since xf-bash-lib only enables then features that have the require dependencies present on the system, all of the following are optional:
NOTE: one may consider these bare essentials
-
sharkdp/bat -
cat
with syntax highlighting and themes, bells, whistles, ets.. -
wting/autojump - a fuzzy
cd
- nvm-sh/nvm - node version manager
- rvm/rvm - ruby version manager
- junegunn/fzf - recursive CLI fuzzy file finder
- zx2c4/password-store - unix pass
- i3/i3 - i3 tiling window manager
-
i3/i3lock - minimalist lockscreen for i3
- NOTE: a display manager is required, otherwise one can bypass i3lock by switching to a different tty. gdm is an option.
- dunst-project/dunst - minimalist desktop growl notifiation daemon
- davatorium/rofi - multi-purpose graphical list selector (i.e. can render results from fzf and pipe your selection onwards)
Notes
Virtual Console Fonts
Fonts are available in /usr/lib/kbd/consolefonts
and need to be set in
/etc/vconsole.conf
. To use terminus
, install the console terminus font for
the running distro (terminus-fonts-console
for fedora) and set it in
/etc/vcovconsole.conf
.
To test, use setfont
:
setfont -h12 /usr/lib/kbd/consolefonts/ter-u12n.psf.gz
.
Example final vconsole.conf
KEYMAP="us"
FONT="ter-u12n.psf.gz"
License
Distributed under the MIT license. See LICENSE.md for more information.