Laptop

From Hegemon Wiki
Jump to navigation Jump to search

The laptop is a HP Laptop 15-fd0741TU 15.6" Full HD Laptop (Intel Core i5)[256GB] with 8GB of ram and a Intel Iris i915

All scripts must be idempotent.

sudo pacman -S sof-firmware alsa-ucm-conf

Basic Packages Install[edit | edit source]

fish tmux vim neovim python-pynvim nano git ripgrep fd ntpd openssh uptimed 7zip networkmanager btrfs-progs nfs-utils cifs-utils jq htop btop bottom inxi

systemctl enable networkmanager

systemctl enable ntpd

systemctl enable sshd

systemctl enable uptimed

Add user account[edit | edit source]

User hegemon should exist. hegemon is added to groups: wheel video audio

User hegemon should have passwordless sudo access.

Install Other Shell Packages[edit | edit source]

Desktop Packages Install[edit | edit source]

xorg-server xorg-apps xorg-xinit lightdm lightdm-gtk-greeter xbindkeys mesa lib32-vulkan-intel vulkan-intel picom vlc vlc-plugins-all mpv deluge-gtk dolphin gedit feh eog skim network-manager-applet libinput evtest brightnessctl cbatticon keepassxc deskflow gparted bluez bluez-utils redshift noto-fonts-cjk flameshot calibre glxinfo

systemctl enable lightdm

Setup audio[edit | edit source]

sof-firmware pipewire pipewire-alsa pipewire-pulse wireplumber pavucontrol

systemctl enable bluetooth

Install packages from the AUR[edit | edit source]

First install yay and paru to allow packages to be installed from the AUR.

Uncomment multilib in /etc/pacman.conf to install steam

aur/brave-bin

aur/steam

aur/tor-browser

mpv-handler

Stop Arch locking out user accounts.[edit | edit source]

Edit /etc/security/faillock.conf and ensure that "deny = 0" is set.

Enable KMSCON[edit | edit source]

sudo pacman -S kmscon

sudo systemctl enable kmscon

Enable tap to click on the touchpad.[edit | edit source]

/etc/X11/xorg.conf.d/50-synaptics.conf

Section "InputClass"

    Identifier "touchpad"

    Driver "synaptics"

    MatchIsTouchpad "on"

        Option "TapButton1" "1"

        Option "TapButton2" "2"

        Option "TapButton3" "3"

        Option "VertEdgeScroll" "on"

        Option "VertTwoFingerScroll" "on"

        Option "HorizEdgeScroll" "on"

        Option "HorizTwoFingerScroll" "on"

        Option "CircularScrolling" "off"

        #Option "CircScrollTrigger" "2"

        Option "EmulateTwoFingerMinZ" "40"

        Option "EmulateTwoFingerMinW" "8"

        Option "CoastingSpeed" "0"

        Option "FingerLow" "35"

        Option "FingerHigh" "40"

EndSection

Swap file[edit | edit source]

btrfs subvolume create /swap

btrfs filesystem mkswapfile --size 16g --uuid clear /swap/swapfile

Add to /etc/fstab:

/swap/swapfile none swap defaults 0 0

Mount Points[edit | edit source]

Install nfs-utils cifs-utils

Add entry to /etc/fstab

hextor:/pkg /var/cache/pacman/pkg nfs4 noauto,x-systemd.automount,x-systemd.device-timeout=10,x-systemd.idle-timeout=1min,bg,timeo=5,retrans=3,retry=2,noatime,nodiratime,soft 0 0

TODO[edit | edit source]

Power button: acpid, kernel param?

volume buttons

brightness

pacman cache netmount

hyprland cmake hyprland-protocols xdg-desktop-portal-hyprland cpio glaze

uv tool install homeassistant-cli

Choppy Audio[edit | edit source]

sudo usermod -aG audio $USER (Didn't help, but didn't reboot)

DisablePlugins = sap (Didn't help)

ControllerMode = bredr (Didn't help)