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