/archlinux

Archlinux desktop settings and things to remember.

Primary LanguageShell

# archlinux

Archlinux desktop settings and things to remember.

## Pacman

- Ignored groups: 'patched'
  - To ignore a package, add `groups=('patched')` to the `PKGBUILD` or add the package name in `/etc/pacman.conf` like this: `IgnorePkg = kwin`
- Modify `/etc/makepkg.conf` and add `MAKEFLAGS="-j5"` to use all cores when compiling packages

## HIDPI

- Fractional scaling introduces a lot of problems. Avoid it!
- Optimal setup: Scale display to x2. Force font DPI to 154.
  - Firefox scaling: set `layout.css.devPixelsPerPx` to 1.7 in `about:config`
  - `export PLASMA_USE_QT_SCALING=1` in `.bash_profile` to enable scaling of plasma panels and desktop

## Global Menu

- Install `appmenu-gtk-module`, `libdbusmenu-glib`, `libdbusmenu-gtk3`, `libdbusmenu-gtk2`
- Go to Settings / Application style / Window Decorations / Buttons and add the global menu button.
  - Alternative is to use a global menu panel.

## Firefox

- Use `firefox-kde-opensuse-bin`
  - includes global menu
  - includes KDE file dialogs

## Node JS

- Global yarn packages are installed into `/home/oskar/.config/yarn/global/`, while the global executables are in `/home/oskar/.yarn/bin/`.

## Theming

- Breeze AlphaBlack: Disable the theming of windows:
  - Comment out Line 200 `setTitlebarColors(newColor)` in `/home/oskar/.local/share/plasma/desktoptheme/breeze-alphablack/desktoptheme.py`
- Folder Icons: Replaced the default Breeze theme folders (`/usr/share/icons/breeze/places`) with [Nix OS folders](https://www.opendesktop.org/p/1228310/)

## Dolphin

- Service Menus
  - Service menus are defined in `/home/oskar/.local/share/kservices5/`

## AUR

- Use [yay](https://github.com/Jguer/yay) instead of pacaur.

## KWIN

- Use patched KWIN in `./kwin` to enable middle-click close and disable hover effects in Present Window Effect

## Plasma Applets & Themes

- Stuff installed via pacman is usually in `/usr/share/plasma`
- Stuff installed via the plasma UI is in `/home/oskar/.local/share/plasma/`
- Increase systemtray icon spacing in `/usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/main.qml` line 310.
- Edit ~/.local/share/konsole/<name>.profile and add TerminalMargin=X to increase Konsole Padding.

## iPOD

- Install `libgod` and `gvfs` as well as `gvfs-nfs gvfs-mtp gvfs-afc gvfs-smb`.
- (Re)Build clementine