#+TITLE: Dotfiles #+OPTIONS: toc:nil This is a collection of dotfiles and scripts for my i3/bspwm setup, previewed below: [[screenshot.png]] [[[https://github.com/Riyyi/dotfiles/blob/8d8a21166b106bdb06a5b3e48724c9cd930a7e4b/dotfiles.sh][Archived]]] 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 @@html:
@@ - ~<>~ variable @@html:
@@ - ~()~ action *** Pre-reboot Boot defaults: #+BEGIN_SRC shell-script $ vim /boot/loader/loader.conf timeout 3 default arch #+END_SRC Boot config: #+BEGIN_SRC shell-script = $ 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 #+END_SRC Predictable network interface names: #+BEGIN_SRC shell-script $ ln -s /dev/null /etc/systemd/network/99-default.link #+END_SRC Network: #+BEGIN_SRC shell-script $ systemctl enable netctl-auto@wlan0.service $ wifi-menu #+END_SRC Trim: #+BEGIN_SRC shell-script $ systemctl enable fstrim.timer #+END_SRC Give wheel users sudo permission: #+BEGIN_SRC shell-script $ sudo EDITOR=vim visudo (add)Defaults insults (uncomment)%wheel ALL=(ALL) ALL #+END_SRC Add user: #+BEGIN_SRC shell-script $ useradd -m -G wheel -s /bin/bash $ passwd #+END_SRC Pacman colors: #+BEGIN_SRC shell-script $ vim /etc/pacman.conf (uncomment)Color #+END_SRC *** Post-reboot: Installing AUR helper: #+BEGIN_SRC shell-script $ git clone https://aur.archlinux.org/trizen.git $ cd trizen $ makepkg -si $ cd .. $ trizen -S trizen $ rm -rf trizen #+END_SRC Switch shell to zsh: #+BEGIN_SRC shell-script $ chsh -s /bin/zsh #+END_SRC Git: #+BEGIN_SRC shell-script $ git config --global user.email "" $ git config --global user.name "" #+END_SRC Lock before sleep: #+BEGIN_SRC shell-script $ sudo systemctl enable i3lock@ #+END_SRC Tlp: #+BEGIN_SRC shell-script $ systemctl enable tlp.service $ vim /etc/tlp.conf (edit)SOUND_POWER_SAVE_ON_BAT=0 #+END_SRC Mail gpg: #+BEGIN_SRC shell-script $ gpg --decrypt | gpg --import $ gpg --search-keys #+END_SRC Give permission to ~/dev/ttyUSB0~ to PlatformIO: #+BEGIN_SRC shell-script $ gpasswd -a uucp #+END_SRC Give permissions to change the brightness to brightnessctl: #+BEGIN_SRC shell-script $ gpasswd -a input $ gpasswd -a video #+END_SRC Set Firefox as default browser: #+BEGIN_SRC shell-script $ xdg-settings set default-web-browser firefox.desktop #+END_SRC Prevent bricking motherboard by mounting efivars read-only:\\ https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#Mount_efivarfs #+BEGIN_SRC shell-script $ vim /etc/fstab (add)efivarfs /sys/firmware/efi/efivars efivarfs ro,nosuid,nodev,noexec,noatime 0 0 #+END_SRC