Skip to content

Instantly share code, notes, and snippets.

@wastrachan
Last active September 30, 2022 03:33
Show Gist options
  • Save wastrachan/b1dcaafa181651a3fd6b1bb74066ab28 to your computer and use it in GitHub Desktop.
Save wastrachan/b1dcaafa181651a3fd6b1bb74066ab28 to your computer and use it in GitHub Desktop.
Arch utilities and modifications

Arch Linux

Packages

System Packages

  • yay-bin - AUR / Pacman helper
  • downgrade - Pacman package downgrade helper
  • kernel-modules-hook - Prevent kernel mods from breaking on kernel upgrade
  • systemd-boot-pacman-hook - Update systemd entry on systemd-boot upgrade
  • bolt - Utility to manage/trust thunderbolt accessories without udevd rules
  • reflector - Updated mirrorlist

Utilities

  • flameshot - Screenshot tool
  • gestures - MacOS-like multi-touch gesture support
  • ocs-url - Launch applications from URL
  • gocryptfs - Simple encrypted file trees
  • playerctl - Control media players with media keys
  • webapp-manager - Run websites as if they were apps

Development

  • kubectl
  • helm
  • kubectl
  • kubectx
  • minikube-bin
  • terraform
  • ansible
  • vscodium-bin
  • vscodium-bin-features
  • git-secret
  • google-cloud-sdk

Desktop Environment

  • cinnamon
  • gdm

Appearance

AUR Fonts

  • ttf-adobe-source-fonts
  • ttf-ms-win11-auto
  • ttf-twemoji

Themes

  • Juno-mirage
  • tela
  • capitaine-cursors

Bootloader

systemd-boot

/boot/loader/loader.conf

timeout 		30
console-mode 		max
default 		arch.conf
editor			1
auto-entries		0
auto-firmware		0

/boot/loader/entries/arch.conf

title		Arch Linux
linux		/vmlinuz-linux
initrd		/intel-ucode.img
initrd		/initramfs-linux.img
options		root=LABEL=Arch rw button.lid_init_state=open

Razer Blade 15

Kernel Params

Fix "wake after lid closed".

button.lid_init_state=open

Module Options

Fix an issue where the iwlwifi driver will crash and cause gdm to hang for a few seconds.

/etc/modprobe.d/iwlwifi.conf

options iwlwifi power_save=0

Blacklisted Modules

Fix an issue where the Thunderbolt controller causes > 2 minute resumes

blacklist i2c_nvidia_gpu

Systemd-tmpfiles

Prevents USB controller from waking laptop.

/etc/tmpfiles.d/disable-xhc-wakeup.conf

#    Path                  Mode UID  GID  Age Argument
w    /proc/acpi/wakeup     -    -    -    -   XHC

Power Management

Enable power management for hotplug devices

/etc/udev/rules.d/10-runtime-pm.rules

SUBSYSTEM!="pci", GOTO="power_runtime_rules_end"
ACTION!="add", GOTO="power_runtime_rules_end"

KERNEL=="????:??:??.?"
PROGRAM="/bin/sleep 0.1"

ATTR{power/control}=="*", ATTR{power/control}="auto"

LABEL="power_runtime_rules_end"

Persist several Powertop suggested tuneables /etc/tmpfiles.d/powertop-tuneables.conf

#    Path                  		Mode 	UID  	GID  	Age 	Argument
w    /proc/sys/kernel/nmi_watchdog	- 	-	-	-	0

Nvidia Optimus

Nvidia/Intel graphics switching for battery life supported with optimus-manager.

gdm-prime and libgdm-prime must be installed instead of GDM, and Wayland must be disabled see this README.

1password
aurpublish
autoconf
automake
base
bat
beekeeper-studio-appimage
bind
bison
bluez-utils
bolt
brother-hl3170cdw
capitaine-cursors
chitubox-free-bin
cinnamon
cups-pdf
dfu-util
dhcpcd
discord
docker
downgrade
dropbox
evince
expect
fakeroot
file-roller
flameshot
flex
gcc
gdm
gestures
git
git-secret
github-cli
gnome-calculator
gnome-keyring
gnu-netcat
gocryptfs
google-chrome
google-cloud-sdk
google-cloud-sdk-gke-gcloud-auth-plugin
groff
helm
htop
inetutils
intel-ucode
jq
juno-mirage-gtk-theme-git
kernel-modules-hook
kiibohd-configurator-bin
kubectx
kubetail
libreoffice-fresh
libtool
linux
linux-firmware
linux-headers
logrotate
lshw
m4
mailspring
make
man-db
man-pages
mariadb-clients
minikube
mtr
namcap
ncdu
networkmanager
nfs-utils
nvidia
nvidia-prime
nvm
ocs-url
openresolv
p7zip
patch
pcloud-drive
picocom
pipewire-alsa
pipewire-pulse
pkgconf
postman-bin
powertop
prusa-slicer
python-pip
reflector
sipcalc
slack-desktop
spotify
sudo
systemd-boot-pacman-hook
tela-icon-theme
terraform
texinfo
tilix
tilt-bin
tmux
traceroute
tree
ttf-adobe-source-fonts
ttf-ms-win11-auto
ttf-twemoji
usbutils
vim
vlc
vscodium-bin
vscodium-bin-features
wget
which
whois
wireguard-tools
wireplumber
xdotool
xf86-video-intel
xviewer
yarn
yay-bin
zoom
zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment