Skip to content

Instantly share code, notes, and snippets.

@bakana808
Last active September 29, 2020 21:30
Show Gist options
  • Save bakana808/3ac990a429cc313b3184e6cb0814b25c to your computer and use it in GitHub Desktop.
Save bakana808/3ac990a429cc313b3184e6cb0814b25c to your computer and use it in GitHub Desktop.
Arch Linux Packages

Sudo

sudo

Must add user to sudo group and edit etc/sudoers to allow users in the sudo group.

Text Editor

neovim python-neovim

Clipboard

xclip for X11 wl-clipboard for Wayland

Python

python3

Bluetooth Support

bluez bluez-utils

# sudo systemctl enable bluetooth.service
# sudo systemctl start bluetooth.service

If using KDE, it comes with its own Bluetooth frontend.

X11

xorg-xinit xorg-server

Plasma (Desktop Environment)

plasma

To open Plasma when running startx (provided by xorg-xinit), add these lines to a file named ~/.xinitrc.

~/.xinitrc
export DESKTOP_SESSION=plasma
exec startplasma-x11

Setting up a GRUB partition

  1. Create an EFI partition at 512 MB

  2. Set the type of the partition to "EFI System"

  3. Create a FAT32 filesystem on it (assuming /dev/sda1 is your EFI partition)

    mkfs.fat -F32 /dev/sda1
  4. Ensure that the required packages are installed

    pacman -S grub efibootmgr
    # if GRUB should detect other operating systems
    pacman -S os-prober
  5. Create a folder to mount the partition and mount it

    mkdir /efi
    mount /dev/sda1 /efi
  6. Install GRUB

    grub-install --target=x86_64-efi --bootloader-id=GRUB --efi-directory=/efi
  7. Configure GRUB

    grub-mkconfig -o /boot/grub/grub.cfg

Fix TTY Screen Resolution

Install fbset.

fbset -G <width> <height> <x> <y> 32

Temporarily Change TTY Font

setfont /usr/share/kbd/consolefonts/drdos8x16.psfu.gz

Changing GRUB kernal boot parameters

sudo gedit /etc/default/grub
sudo upgrade-grub
Disabling Nouveau

This is necessary when installing the official NVIDIA graphic drivers.

Add the parameters nomodeset nouveau.modeset=0 to the GRUB kernal boot parameters.

package management

Installing packages from the AUR repository

Manual method:

git clone https://aur.archlinux.org/<package>.git
cd <package>
mkpkg -si

Easy method:

Install yay using the manual method, then:

yay -S <package>

Deleting orphaned packages

sudo pacman -Rns $(pacman -Qtdq)

pacman -Qt queries all packages that are not required by any other package. The d flag filters it to only packages installed as dependencies. The q flag outputs simpler text (to send to pacman -Rns).

partition setup

Finding the UUID of a partition

sudo blkid /dev/<part>

Mounting NTFS partitions

Type: ntfs-3g Options: defaults,exec,nls=utf8,umask=000,uid=1000,guid=1000

This will mount the NTFS partition with RWX permissions.

May need to turn off hibernation and fast boot on Windows before doing this.

Auto-mounting drives

Goes into the /etc/fstab file.

Use the UUID instead of the /dev/<part> name since partition IDs may change.

xorg setup

Overriding the .xinitrc file that is used when running startx

startx ./<config>

The ./ before the path is important. startx won't recognize it otherwise.

Starting an Xserver under a different display ID

startx -- :<id>

With a custom config:

startx ./<config> -- :<id>

Finding the IDs of all connected monitors

xrandr --query

Playing Windows games

On Steam: Steam will attempt to play it with its built-in Proton dist.

Not on Steam: Use lutris.

things that look nice

Setting a wallpaper

Install feh.

Commonly used like:

feh --bg-fill <image>

or with multiple monitors:

feh --bg-fill <image 1> --bg-fill <image 2>

Wallpapers that span multiple monitors must be split up before being used as wallpapers for each monitor.

Automatic terminal colors based on a wallpaper

Install pywal.

Commonly used like:

wal -i <image>

Use the -n flag to prevent it from setting the wallpaper.

Different backends can be used to vary your results. List them with:

wal --backend

And set it when running like:

wall -i <image> --backend <backend>

Note that these backends must also be installed.

Fine-tuning color palettes

Install the wpgtk package to adjust the colors of a palette generated by wal. Install the gpick package for a screen color picker.

Round windows and blur effect

For windows with transpency, blur, and rounded corner support use this fork of picom

https://github.com/ibhagwan/picom

Must be built from source (follow the instructions at the page).

Relevant new options (found in ~/.config/picom.conf):

corner-radius = 10.0;
round-borders = 1;

blur: {
	method = "dual_kawase";
	strength = 5;
};

Status bars

polybar

music production

Native DAW options

  • Bitwig Studio
  • Reaper

Mounting & installing Native Instrument .isos

Installing products through Native Access (in Wine) will fail if it downloads an .iso and has to mount it (the mount program doesn't work in Wine). In this case, mount the .iso manually and install it.

sudo mount -t udf -o unhide <iso> <mount point>

Afterwards, execute the installer exe within to install it.

Bridging .dll VST plugins

Options

  • linvst
  • airwave
  • carla (and carla-bridges-win)

linvst seems to produce the best results.

linvstconvert-cli -i <vst dir>

Guitar Rig 5 does not work currently. Thankfully Bitwig Studio has its own amp plugin.

Adobe Creative Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment