Meliurwen
2e5924bc35
|
1 year ago | |
---|---|---|
.cinnamon | 3 years ago | |
.dependencies | 3 years ago | |
.dotvenv@5402f09300 | 3 years ago | |
.gedit | 3 years ago | |
.gnome | 3 years ago | |
.mousepad | 3 years ago | |
.nemo | 3 years ago | |
common-shells | 3 years ago | |
deepin-screenshot/.config/deepin | 4 years ago | |
dunst/.config/dunst | 3 years ago | |
firefox/.mozilla/firefox/userprofile/chrome | 3 years ago | |
gnome | 3 years ago | |
htop/.config/htop | 2 years ago | |
i3/.config/i3 | 2 years ago | |
icons/.icons/Adwaita-dark-custom/32x32/status | 3 years ago | |
mime/.config | 2 years ago | |
mpv/.config/mpv | 3 years ago | |
nano/.config/nano | 3 years ago | |
picom/.config/picom | 2 years ago | |
polybar/.config/polybar | 2 years ago | |
rofi/.config/rofi | 2 years ago | |
screen | 2 years ago | |
urxvt | 2 years ago | |
vscode | 2 years ago | |
x | 3 years ago | |
xdg/.config | 4 years ago | |
zathura/.config/zathura | 4 years ago | |
zsh | 1 year ago | |
.gitmodules | 3 years ago | |
.stow-local-ignore | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 2 years ago |
README.md
.dotfiles
Dependencies
Install from a file list:
Note: comments and trailing comments starting with
#
are ignored
apt-get install $(grep -vE "^\s*#" <FILEPATH> | sed -e 's/#.*//' | tr "\n" " ")
Kernel Modules
Add modules to the Linux kernel:
modprobe <module>
Shell
Take note of the full path of your favorurite shell:
type -a zsh
Set it as default:
chsh -s /bin/zsh
Fonts
Reload locally (~/.local/share/fonts
) installed fonts:
fc-cache -f -v
Gnome settings
Dump an entire subpath of the dconf database:
dconf dump <dir_subpath_inside_db> > <settings_file>.dconf
Populate a subpath of the dconf database:
cat <settings_file>.dconf | dconf load <dir_subpath_inside_db>
VSCode/Codium
List all extensions into a file:
codium --list-extensions > vscode/codium-extensions.list
Install all the extensions listed into a file (any line that starts with #
will get ignored):
cat vscode/codium-extensions.list | grep -v '^#' | xargs -L1 codium --install-extension
Order alphabetically and format settings.json
:
Note 1: Unfortunately there is no in-place feature available a the moment
Note 2: Manually remove all comments (
//
or/* */
) first; they are non-standard, bad practice and not supported byjq
.
VSC_D="vscode/.config/Code/User/" VSC_J="settings.json" sh -c '\
jq --indent 2 --sort-keys . "${VSC_D}${VSC_J}" > "${VSC_D}${VSC_J}.new" && \
mv "${VSC_D}${VSC_J}.new" "${VSC_D}${VSC_J}"'
Order alphabetically and format argv.json
:
VSC_D="vscode/.vscode/" VSC_J="argv.json" sh -c '\
jq --indent 2 --sort-keys . "${VSC_D}${VSC_J}" > "${VSC_D}${VSC_J}.new" && \
mv "${VSC_D}${VSC_J}.new" "${VSC_D}${VSC_J}"'
Format keybindings.json
:
VSC_D="vscode/.config/Code/User/" VSC_J="keybindings.json" sh -c '\
cat "${VSC_D}${VSC_J}" | jq --indent 2 > "${VSC_D}${VSC_J}.new" && \
mv "${VSC_D}${VSC_J}.new" "${VSC_D}${VSC_J}"'
Stow
stow --restow --no-folding <DIR>