knowledge › Arch Linux
Arch Linux is my favourite operating system. It's incredibly minimal, fast, and easy to customise. This page documents some tips that don't belong in any specific category. I may split this content out later.
As always, see my dotfiles for the technically details.
Laptop battery life
tlp for better battery life. The defaults are usually perfectly fine.
sudo pacman -S tlp # install tlp sudo systemctl enable tlp.service # enable the service
As far as I'm aware, HiDPI is a shitshow on Arch if you're not using a mainstream desktop environment like KDE or Gnome. Default DPI everywhere is the best solution for now. If scaling is important it's possible to get "good enough" fractional scaling under Arch, i3, and Xorg with the following.
Set xrandr DPI to 96 with
xrandr --dpi 96 (likely in
.xinitrc) and set the
GDK_DPI_SCALE environment variable to a number like
1.25 for 125% scaling (this worked well on my XPS 13 1080p). Firefox should have
layout.css.devPixelsPerPx configured to
about:config to scale up the UI by 125% to match the GTK DPI scale.
If you're using an external display where these DPI values are different, try not to cry and unset
GDK_DPI_SCALE, and the Firefox config, then log out and in.
It's typically better to use groups to manage user's access to certain features.
Add the current user to the
gpasswd -a $USER uucp. See also
Instead of adding a specific user to the
/etc/sudoers file, use the
wheel group to allow users access to
visudoand uncomment the
%wheel ALL=(ALL) ALLline.
- Add the user with a home folder to the
useradd -m -G wheel <username>.
.AppImage file is a completely self-contained executable for Linux, similar to an
.exe in Windows. Though without installers they're sometimes a bit messy to run.
To install, download the
.AppImage file to
~/AppImage/ and run the following:
sudo chmod +x ~/AppImage/MyApp.AppImage
.desktop files are created in
~/.local/share/applications and icons can be found in