After Arch Linux Installation

# Before entering WM

  1. Disable the -debug flag in /etc/makepkg.conf: in option, ! the debug
  2. Enable pacman features in /etc/pacman.conf: uncomment Color, and multilib
  3. Install yay
    1. Install pre-request: $ sudo pacman -Syyu git go
    2. Download AUR snapshot: $ curl -L -O https://archlinux.org/cgit/aur.git/snapshot/yay.tar.gz
    3. Extract the snapshot and enter the dir: $ tar -xf yay.tar.gz && cd yay
    4. Make package and install: $ makepkg && sudo pacman -U *.zst
    5. Git could also be configured: $ git config --global user.name ?{name}, and git config --global user.email ?{email}
  4. Install restic, recover the backup, and modify some backups: $ yay -S restic; $ restic -r ?{repo_location} recover latest --target ${HOME}
  5. Install WM: $ yay -S gtk3 hyprland-git kitty
  6. Enter the WM: $ Hyprland

# Configuration of system-base settings and display

  1. For recording the processes, install code and wl-clipboard: $ yay -S code wl-clipboard
  2. Prefer settings in Hyprland in {HOME}/.config/hypr/hyprland.conf
    1. Change the scaling in MONITORS, set monitor=,preferred,auto,1
    2. Swap the esc and caps in INPUT, under input: kb_options = caps:swapescape
    3. Enable natural scrolling in INPUT, under input:touchpad: natural_scroll = true
    4. Enable workspace swipe in INPUT, under gesture: workspace_swipe = true
  3. Install I/O & Hyprland-must packages: $ yay -S xdg-desktop-portal-hyprland-git sof-firmware pipewire-pulse alsa-utils pipewire-alsa pipewire-jack polkit-gnome
    1. In ${HOME}/.config/hypr/hyprland, add exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  4. Set fonts and dark mode: $ yay -S gnome-themes-extra adwaita-qt5-git adwaita-qt6-git noto-fonts noto-fonts-cjk ttf-fira-code ttf-nerd-fonts-symbols-mono
    1. In system settings:

      $ gsettings set org.gnome.desktop.interface gtk-theme Adwaita-dark
      $ gsettings set org.gnome.desktop.wm.preferences theme Adwaita-dark
      $ gsettings set org.gnome.desktop.interface color-scheme prefer-dark
      $ gsettings set org.gnome.desktop.interface font-name 'Noto Sans 12'
      $ gsettings set org.gnome.desktop.interface document-font-name 'Noto Sans 12'
      $ gsettings set org.gnome.desktop.interface monospace-font-name 'Fira Code 12'
      
    2. Environmental Vars (in ${HOME}/.config/hypr/hyprland.conf):

      env = GTK_THEME,Adwaita-dark
      env = GTK2_RC_FILES,/usr/share/themes/Adwaita-dark/gtk-2.0/gtkrc
      env = QT_STYLE_OVERRIDE,Adwaita-Dark
      
    3. Set fonts in kitty (in ${HOME}/.config/kitty/kitty.conf):

      font_family Fira Code
      scrollback_lines 8192
      foreground green
      background_opacity 0.75
      
    4. Set waybar wofi: $ yay -S waybar wofi, and exec-once=waybar, then set your config in ${HOME}/.config/waybar/config and ${HOME}/.config/waybar/style.css

  5. Reboot: $ reboot

# More packages (applications) and settings

  • Fingerprint: yay -S libfprint-2-tod1-xps9300-bin fprintd then add auth sufficient pam_unix.so try_first_pass likeauth nullok, then auth sufficient pam_fprintd.so to /etc/pam.d/login (after requisite) and sudo

    • Enroll: # fprintd-enroll ${name}
    • Delete: # fprintd-delete ${name}
    • Verify: $ fprintd-verify
  • Power management: $ yay -S tlp, then edit /etc/tlp.conf

  • Adjust the brightness: # echo 10000 > /sys/class/backlight/intel_backlight/brightness

  • Btop: $ yay -S btop, then add ``

  • Install and add file manager: $ yay -S ranger python-pillow (python-pillow to preview images)

    • In ${HOME}/.config/hypr/hyprland.conf: ``
    • $ ranger --copy-config=rc- In ${HOME}/.config/ranger/rc.conf: set preview_images true, set preview_images_method kitty; and $ ranger --copy-config=rifle - In ${HOME}/.config/ranger/rifle.conf: ext html, has firefox X, flag f = firefox -- "$@"; ext pdf, has firefox, X, flag f = firefox "$@"
    • In /usr/share/applications/ranger.desktop: Exec=kitty --title ranger sh -c 'ranger %U', and terminal=false
  • Install and twick the browser: $ yay -S firefox, then bind = $mainMod, b, exec, firefox

  • Lock and Blank screen: $ yay -S hyprlock, then bind = $mainMod, L, exec, hyprlock & sleep 0.5 && hyprctl dispatcher dpms off to .config/hypr/hyprland.conf and add key_press_enables_dpms = true under misc

  • Screenshot: $ yay -S hyprshot, then bind = , PRINT, exec, hyprshot -m region --output-folder ${HOME}/Pictures/.hyprshot

  • Adding Windows Entree: add the following to /etc/grub.d/40_custom, then # grub-mkconfig -0 /boot/grub/grub.cfg

    menuentry "Windows" {
       insmod part_gpt
       insmod chain
       set root='hd0,gpt1'
       chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    }
    

# For my work

  • $\LaTeX$: texlive-latex for pdflatex, texlive-latexrecommended for amsmath, texlive-latexextra for orcidlink, texlive-fontsrecommended for essentials published fonts.

  • VSCode-OSS: $ yay -S code with extensions:

  • Blog: $ yay -S hugo for blogs publishing.

  • Paper: $ yay -S zotero-bin

  • Xournal++: $ yay -S xournalpp

# Social and Communication

  • Telegram: $ yay -S telegram-desktop
  • Discord: $ yay -S webcord-bin
Built with Hugo
Theme Stack designed by Jimmy