Reference of one-off stuff that I will forget.
- Flameshot
- Gnome Keyring
- GPG
- Hosts file
- Mounting NTFS with udisks
- Package cache
- Disable installation of debug packages
- Pacman Parallel Downloads
- Reflector
- Sudoers
- thermald
- TTY keymap and font
- Misc (situational)
Most likely requires xdg-portals xdg-desktop-portal-wlr and xdg-desktop-portal-gtk.
Multiple potential fixes for wayland. Currently using ly with sway:
File: /usr/share/wayland-sessions/sway.desktop
[Desktop Entry]
Name=Sway
Comment=An i3-compatible Wayland compositor
Exec=sway --unsupported-gpu
Type=Application
DesktopNames=sway # important line to add
Other solutions:
- Environment variables
- https://flameshot.org/docs/guide/wayland-help/
- https://github.com/fairyglade/ly/issues/702
sudo pacman -S --needed gnome-keyringAdd auth optional pam_gnome_keyring.so at the end of the auth section and
session optional pam_gnome_keyring.so auto_start at the end of the session section.
/etc/pam.d/login
auth requisite pam_nologin.so
auth include system-local-login
auth optional pam_gnome_keyring.so <<<
account include system-local-login
session include system-local-login
session optional pam_gnome_keyring.so auto_start <<<
password include system-local-login
Restart and check status:
busctl --user get-property org.freedesktop.secrets /org/freedesktop/secrets/collection/login org.freedesktop.Secret.Collection Lockedhttps://wiki.archlinux.org/title/GNOME/Keyring#PAM_step, https://www.reddit.com/r/bash/comments/s2n756/comment/hsfnpit/
mkdir -p $GNUPGHOME
chown -R $(whoami) $GNUPGHOME
chmod 600 $GNUPGHOME/*
chmod 700 $GNUPGHOMEAfter using the above for a long time, I realised I had permission issues with
directories (and specifically dirmngr). The following fixed it:
As root:
cd /home/user/.local/share
chmod 700 gnupg
cd gnupg
find . -type d -exec chmod 700 {} \;
find . -type f -exec chmod 600 {} \;https://wiki.archlinux.org/title/GnuPG#Keyblock_resource_does_not_exist, https://gist.github.com/oseme-techguy/bae2e309c084d93b75a9b25f49718f85
https://wiki.archlinux.org/title/Network_configuration#localhost_is_resolved_over_the_network
/etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 xps
sudo pacman -S --needed udisks2sudo bash -c 'cat <<EOF>/etc/udisks2/mount_options.conf
[defaults]
ntfs_defaults=uid=\$UID,gid=\$GID,prealloc
EOF'https://wiki.archlinux.org/title/NTFS#udisks_support
sudo pacman -S --needed pacman-contribsudo systemctl enable --now paccache.timerhttps://wiki.archlinux.org/title/pacman#Cleaning_the_package_cache
Edit /etc/makepkg.conf and disable the debug flag in OPTIONS:
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !debug lto)
If you have already installed some packages, uninstall them with:
yay -Rns $(pacman -Qq | rg -- '-debug$')sudo sed -i.bak 's/#ParallelDownloads/ParallelDownloads/' /etc/pacman.confsudo pacman -S --needed reflectorsudo bash -c 'cat <<EOF>/etc/xdg/reflector/reflector.conf
--save /etc/pacman.d/mirrorlist
--protocol https
--latest 50
--number 20
--sort rate
EOF'sudo systemctl enable reflector.timer
sudo systemctl start reflectorhttps://wiki.archlinux.org/title/reflector
Defaults editor=/usr/bin/vim
Defaults env_keep += "SYSTEMD_EDITOR"
sudo pacman -S --needed thermaldsudo mkdir -p /etc/systemd/system/thermald.service.d
sudo bash -c 'cat <<EOF>/etc/systemd/system/thermald.service.d/nostdout.conf
[Service]
StandardOutput=null
EOF'sudo systemctl enable --now thermaldhttps://www.reddit.com/r/archlinux/comments/3okrhl/thermald_anyone/
sudo pacman -S --needed terminus-fontsudo mkdir -p /usr/local/share/kbd/keymaps
sudo cp /usr/share/kbd/keymaps/i386/qwerty/us.map.gz /usr/local/share/kbd/keymaps/personal.map.gz
sudo gunzip -f /usr/local/share/kbd/keymaps/personal.map.gz
sudo sed -i 's/Caps_Lock/Escape/g' /usr/local/share/kbd/keymaps/personal.mapAdd related lines to /etc/vconsole.conf:
# KEYMAP=us
KEYMAP=/usr/local/share/kbd/keymaps/personal.map
# FONT=ter-d20b.psf.gz
FONT=ter-v24b.psf.gz
sudo modprobe -r uvcvideoIf you get "Module uvcvideo is in use", then:
sudo rmmod -f uvcvideoecho 'blacklist uvcvideo' | sudo tee /etc/modprobe.d/blacklist-uvcvideo.confRegenerate initramfs:
sudo mkinitcpio -PTo enable the webcam for a single session, run:
sudo modprobe uvcvideohttps://askubuntu.com/questions/166809/how-can-i-disable-my-webcam https://bbs.archlinux.org/viewtopic.php?id=170416
echo 'options i915 enable_guc=2' | sudo tee /etc/modprobe.d/i915-enable-guc.confRegenerate initramfs:
sudo mkinitcpio -Phttps://wiki.archlinux.org/title/Intel_graphics#Enable_GuC_/_HuC_firmware_loading
sudo mkdir -p /etc/systemd/logind.conf.d
sudo bash -c 'cat <<EOF>/etc/systemd/logind.conf.d/HandleLidSwitch.conf
[Login]
HandleLidSwitch=ignore
EOF'sudo systemctl kill -s HUP systemd-logindhttps://wiki.archlinux.org/title/Power_management#ACPI_events
Override Intel Kabylake HDMI pins using alsa-tools and hdajackretask.
❯ cat /usr/lib/firmware/hda-jack-retask.fw
[codec]
0x8086280b 0x80860101 2
[pincfg]
0x05 0x18560070
0x06 0x18560070
0x07 0x18560070
❯ cat /etc/modprobe.d/hda-jack-retask.conf
# This file was added by the program 'hda-jack-retask'.
# If you want to revert the changes made by this program, you can simply erase this file and reboot your computer.
options snd-hda-intel patch=hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw,hda-jack-retask.fw