~maberger/dotfiles

maberger's dotfiles/config for Arch Linux and Wayland/Sway on the Framework Laptop
Update .gitconfig
Add mpv conf
Update package lists

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~maberger/dotfiles
read/write
git@git.sr.ht:~maberger/dotfiles

You can also use your local clone with git send-email.

#dotfiles

My personal collection of dotfiles and config for Arch Linux and Sway on the Framework Laptop.

screenshot

#Installation

#Arch Linux and Packages

  1. Install Arch Linux by following the Installation guide or by using archinstall. You may wish to enable parallel downloads in /etc/pacman.conf and/or modify the mirror list in /etc/pacman.d/mirrorlist.
  2. Install Git:
    sudo pacman -S git
    
  3. Create home directories:
    mkdir ~/Desktop ~/Downloads ~/Git ~/go ~/Sync ~/zig
    
  4. Clone this repository:
    git clone https://github.com/mark-berger/dotfiles.git ~/Git/dotfiles
    
  5. Install packages as described in packages/README.md.
  6. Enable Network Manager:
    systemctl enable NetworkManager
    
  7. Reboot.

#Framework Laptop

For more details refer to Framework Laptop on the Arch Wiki.

  1. Add acpi_osi=\"Windows 2020\" mem_sleep_default=deep to the kernel parameters to enable deep sleep and add ACPI OS option to address CPU stalls.
  2. Add options i915 enable_psr=0 to /etc/modprobe.d/i915.conf to disable Panel Self-Refresh.
  3. Enable TLP:
    systemctl enable tlp.service
    
  4. Reboot.

#Customization

  1. Copy dotfiles into $/.config:
    cp -r .config/* ~/.config/
    
  2. Configure fish shell:
    # Use fish as the default shell
    chsh -s /usr/bin/fish
    
    # Logout
    
    # Set environment variables
    set --append --universal fish_user_paths ~/.local/bin/ /usr/local/bin /usr/local/go/bin ~/go/bin ~/zig
    set --export --universal COLORTERM truecolor
    set --export --universal EDITOR kak
    set --export --universal GTK_THEME Adwaita:dark
    set --export --universal MICRO_TRUECOLOR 1
    set --export --universal MOZ_ENABLE_WAYLAND 1
    set --export --universal MOZ_USE_XINPUT2 1
    set --export --universal QT_QPA_PLATFORM wayland
    set --export --universal QT_QPA_PLATFORMTHEME qt5ct
    set --export --universal XCURSOR_SIZE 32
    set --export --universal XDG_CURRENT_DESKTOP Unity
    
    # Update completions
    fish_update_completions
    
  3. Add FONT=ter-122n to /etc/vconsole.conf to use the terminus-font in the Linux console.
  4. GTK settings:
    gsettings set org.gnome.desktop.interface cursor-size 32
    gsettings set org.gnome.desktop.interface icon-theme Papirus-Dark
    
  5. Copy any custom icons to /usr/share/icons/hicolor/scalable/apps.

#Setup

  1. Generate new SSH and GPG keys. Update global user settings in ~/.gitconfig.
  2. Configure brightness rules:
    sudo touch /etc/udev/rules.d/90-backlight.rules
    
    Add the following contents:
    ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chgrp video /sys/class/backlight/intel_backlight/brightness"
    ACTION=="add", SUBSYSTEM=="backlight", RUN+="/bin/chmod g+w /sys/class/backlight/intel_backlight/brightness"
    ACTION=="add", SUBSYSTEM=="leds", RUN+="/bin/chgrp video /sys/class/leds/intel_backlight/brightness"
    ACTION=="add", SUBSYSTEM=="leds", RUN+="/bin/chmod g+w /sys/class/leds/intel_backlight/brightness"
    
    Add user to group:
    sudo usermod -aG video $USER
    
    Set minimum brightness for light:
    light -N 1
    
  3. Enable systemd units:
    # Copy systemd unit file
    cp .local/share/systemd/user/*.{service,socket} ~/.local/share/systemd/user/
    
    systemctl daemon-reload --user
    
    # Enable systemd services
    systemctl enable --now --user kanshi.service
    systemctl enable --now --user wob.socket
    
  4. Install lsix.
  5. Reboot.

#Color Scheme

#ANSI

Name Hex
Foreground #cdcdcd
Background #1d1d1d
Black #2d2d2d
Red #fd7d7d
Green #9dbd7d
Yellow #edcd6d
Blue #8daddd
Magenta #bd8dbd
Cyan #8dbdbd
White #dddddd
Bright Black #3d3d3d
Bright Red #dd5d5d
Bright Green #7ddd7d
Bright Yellow #edcd4d
Bright Blue #7daddd
Bright Magenta #cd9ddd
Bright Cyan #7dcdbd
Bright White #ededed

#Base16

Name Hex
base00 #1d1d1d
base01 #2d2d2d
base02 #3d3d3d
base03 #7d7d7d
base04 #adadad
base05 #cdcdcd
base06 #dddddd
base07 #ededed
base08 #fd7d7d
base09 #fd9d5d
base0A #edcd6d
base0B #9dbd7d
base0C #8dbdbd
base0D #8daddd
base0E #cd9ddd
base0F #ad6d4d

#License

All content is released under the MIT License.