i use arch btw
dotfiles#
My dotfiles managed using GNU Stow.
Personal installation notes#
Things that I might want to backup manually#
~/.local/share/fish/fish_history- uBlock Origin filters & settings
- Twitch FFZ, Previews, 7TV settings
- ViolentMonkey userscripts & options
- YouTube Enhancer & SponsorBlock config
- Tabs and windows using Session Buddy
- Remote Torrent Adder config
- AniList Automail userscript config
- VueTorrent settings
- Redirector entries
- Flatpak apps (
~/.var/app/orflatpak list --columns=application --app) - gpg keys (
~/.gnupg/)
// TODO: automate everything below
Clone dotfiles#
git clone git@github.com:brw/dotfiles.git
Disable Intel pstate driver#
Add intel_pstate=disable to the options in /boot/entries/linux.conf
Or intel_pstate=active, if using throttled:
Copy system files#
sudo cp -i sysctl/etc/sysctld.d/* /etc/sysctl.d/
sudo cp -i zram/etc/systemd/zram-generator.conf /etc/systemd/
sudo cp -i etc/udev/rules.d/10-trim.rules /etc/udev/rules.d/
sudo cp -i throttled/etc/throttled.conf /etc/throttled.conf
Enable throttled#
sudo systemctl enable --now throttled
Install yay#
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
yay -Y --gendb
Import tor gpg key#
gpg --auto-key-locate nodefault,wkd --locate-keys torbrowser@torproject.org
Install packages#
yay -Syu --needed $(cat arch-{shell,desktop}-packages)
Install dotfiles#
rm -rf ~/.config/fish
stow -d dotfiles bin cpupower direnv fish git gtk neofetch nvim ripgrep mise starship stow wayland paru ghostty jj
Use systemd-resolved#
sudo ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
sudo systemctl enable --now systemd-resolved
Enable pkgfile daemon and pacman files db refresh timer#
sudo systemctl enable --now pkgfiled pacman-filesdb-refresh.timer
Enable timers#
sudo systemctl enable --now yaycache.timer paccache.timer plocate-updatedb.timer
Enable printer service#
sudo systemctl enable --now cups
Enable systemd-boot update service#
sudo systemctl enable systemd-boot-update
Enable en_NL locale#
sudo sed -i '/^#en_NL.UTF-8 UTF-8/s/^#//' /etc/locale.gen
sudo locale-gen
Enable kernel-modules-hook linux-modules-cleanup service#
sudo systemctl enable --now linux-modules-cleanup
Fix fish universal variables in Gnome Wayland session#
Modify /usr/bin/gnome-session, changing (hardcoding) $SHELL to sh on line 10 (temporary fix, probably bad practice but /shrug, universal variables are sort of maybe being removed in the near future anyway, at which point I'll change this)
Fix scaling issues on Gnome Wayland and bluriness with Xwayland#
org.gnome.mutter experimental-features ['scale-monitor-framebuffer', 'xwayland-native-scaling']
Unbind XF86Tools (F13) on Gnome#
For some reason the button I have bound to F13 on my mouse opens the Gnome control center/settings by default, with no way to change it outside of dconf/gsettings. quite annoying
gsettings set org.gnome.settings-daemon.plugins.media-keys control-center-static "['']"
Enable Gnome Keyring SSH Agent#
systemctl --user enable --now gcr-ssh-agent
ssh-add
Set up keylightd#
sudo usermod -aG keylightd bas
sudo systemctl enable --now keylightd
Get latest plex-rich-presence#
curl -s https://api.github.com/repos/Arno500/plex-richpresence/releases/latest \
| jq -r '.assets[] | select(.name | contains("linux_amd64")).browser_download_url' \
| wget -q -P $HOME -i - \
&& chmod +x $HOME/plex-rich-presence_linux_amd64-*
Install systemd services#
cp -i systemd/.config/systemd/user/plex-rich-presence.service ~/.config/systemd/user/
systemctl --user enable --now plex-rich-presence
#sudo cp -i etc/systemd/system/reload-cpu-modules.service /etc/systemd/system/
#sudo systemctl enable --now reload-cpu-modules
#cp -i systemd/.config/systemd/user/imwheel.service ~/.config/systemd/user/
#systemctl --user enable --now imwheel