# Dotfiles This is a collection of dotfiles and scripts for my i3/bspwm setup, previewed below: ![Screenshot](screenshot.png) [[Archived](https://github.com/Riyyi/dotfiles/blob/8d8a21166b106bdb06a5b3e48724c9cd930a7e4b/dotfiles.sh)] dotfiles.sh: script to manage dotfiles. ### Software: All packages that are manually installed via pacman -S, can be found in the packages file, dependencies are not included. ### Configuration: Below are all the system changes that were made.
$ = command
<> = variable
() = action Boot defaults: ``` $ vim /boot/loader/loader.conf timeout 3 default arch ``` Boot config: ``` = $ blkid # from the / 'root' partition $ vim /boot/loader/entries/arch.conf title Arch Linux linux /vmlinuz-linux initrd /intel-ucode.img initrd /initramfs-linux.img options root=PARTUUID= rw ``` Predictable network interface names: ``` $ ln -s /dev/null /etc/systemd/network/99-default.link ``` Network: ```sh $ systemctl enable netctl-auto@wlan0.service ``` Give wheel users sudo permission: ```sh $ vim /etc/sudoers (add)Defaults insults (uncomment)%wheel ALL=(ALL) ALL ``` Add user: ```sh $ useradd -m -G wheel -s /bin/bash $ passwd ``` Installing AUR helper: ```sh $ git clone https://aur.archlinux.org/trizen.git $ cd trizen $ makepkg -si $ cd .. $ trizen -S trizen $ rm -rf trizen ``` Switch shell to zsh: ```sh $ chsh -s /bin/zsh ``` Pacman colors: ```sh $ vim /etc/pacman.conf (uncomment)Color ``` Git: ```sh $ git config --global user.email "" $ git config --global user.name "" ``` Tlp: ```sh $ systemctl enable tlp.service $ systemctl enable tlp-sleep.service $ vim /etc/default/tlp (edit)SOUND_POWER_SAVE_ON_BAT=0 ``` Trim: ```sh $ systemctl enable fstrim.timer ``` Clock internet sync: ```sh $ timedatectl set-ntp true ``` Mail gpg: ```sh $ gpg --decrypt | gpg --import $ gpg --search-keys ``` Give permission to /dev/ttyUSB0 for PlatformIO: ```sh $ gpasswd -a uucp ``` Give permisson to change brightness for brightnessctl: ```sh $ gpasswd -a input $ gpasswd -a video ``` Set Firefox as default browser: ```sh $ xdg-settings set default-web-browser firefox.desktop ``` Prevent bricking motherboard by mounting efivars read-only:
https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#Mount_efivarfs ```sh $ vim /etc/fstab (add)efivarfs /sys/firmware/efi/efivars efivarfs ro,nosuid,nodev,noexec,noatime 0 0 ```