Current default configuration consists of:
- NixOS (previously arch/manjaro)
- gruvbox light
- sway {waybar, rofi, lightdm}
- fish {alacritty, tmux}
- Neovim for coding, emacs Doom! for org-mode
- rg, fzf, ranger
- ...
You can see preview in (very likely out of date)
More screenshots can be found in this folder.
First step is to clone this repository:
git clone https://www.github.com/metiu07/dotfiles
The repository contains installation scripts. Namely:
- install.py
- install.sh # deprecated
The requirements.txt file contains arch package names of used packages. I am trying to keep the list updated, but if something is missing simple google query should find you the right package.
This is new and intended way to install dotfiles. To run this script at least python version 3.5 is needed. Example usage is shown in the next snippet.
./install.py # install default target (linux)
./install.py bash # install bash module
./install.py -r bash # remove bash module
./install.py linux # install linux target
./install.py -l # list all modules
./install.py -i asd.json asd # use custom json configuration file
./install.py -d linux # dry run (show user the command which will be run)
./install.py -m linux # install via moving instead of symlink
./install.py -a linux # auto-confirm all prompts
The program configuration is stored in json file configuration.json
. For
example next snippet means that the file ./.config/ranger/rc.conf
will be
installed to the location ./.config/ranger/rc.conf
and also depends on module
ragner_rifle
.
"ranger": {
"source": "./.config/ranger/rc.conf",
"destination": "~/.config/ranger/rc.conf",
"name": "Ranger configuration",
"install": "./scripts/install.sh",
"$deps": [
"ranger_rifle"
]
}
This script is deprecated and should not be used anymore. It's included only because of nostalgia and for educational purposes.
xdg-mime default org.pwmt.zathura.desktop application/pdf
Press ctrl
+ alt
+ cmd
+ fX
key.
Add-ons:
- there is a setting to ignore keyboard layout
- Go to
about:config
in firefox - Set the
browser.fullscreen.autohide
tofalse
mkdir -p ~/.local/share/applications
# Setup for rofi
cp /usr/share/applications/firefox.desktop ~/.local/share/applications
# Every "Exec=..." prefix with "Exec=env MOZ_ENABLE_WAYLAND=1 ..."
# Correct links from applications
# NOTE: firefox.desktop is only a name, not a file path
xdg-settings set default-web-browser firefox.desktop
# Permanent
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
mkinitcpio -p linux
# Temporary
echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
This wouldn't have been possible without other people who share their dotfiles. Take this as a list of my appreciation and inspiration.