1
0
Fork 0
archlinux/README.md

126 lines
4.8 KiB
Markdown

# Arch Linux
My custom Arch Linux configuration for the [MINIX NEO Z100-0dB][minix100].
## Blog post about this
Some background on the intention is available in my [blog post][post].
## Repository contents
```shell
$ tree -a -I .git -F
./
├── etc/
│   ├── default/
│   │   └── useradd # ZSH as default shell
│   ├── iwd/
│   │   └── main.conf # Fix IPV4 DHCP
│   └── pacman.d/
│   └── mirrorlist # Arch mirrors near me
├── generate_pkglist.sh*
├── generate_systemd_enabled.sh*
├── home/
│   └── oli/
│   ├── bin/
│   │   └── vnc.sh # VNC config explained above
│   ├── .config/
│   │   ├── fastfetch/
│   │   │   └── config.jsonc # Minimal fastfetch config
│   │   ├── fontconfig/
│   │   │   └── fonts.conf # Set default fonts for Sway/Wayland
│   │   ├── htop/
│   │   │   └── htoprc
│   │   ├── mako/
│   │   │   └── config # Notifications
│   │   ├── pipewire/
│   │   │   └── pipewire.conf # Audio
│   │   ├── sway/
│   │   │   ├── config # Sway
│   │   │   └── status.sh* # swaybar output
│   │   ├── swaylock/
│   │   │   └── config # Lock screen
│   │   └── wayvnc/
│   │   └── config
│   └── .local/
│   └── share/
│   └── fonts/
│   ├── BerkeleyMono[...]-BoldOblique.ttf # https://usgraphics.com
│   ├── BerkeleyMono[...]-Bold.ttf # https://usgraphics.com
│   ├── BerkeleyMono[...]-Oblique.ttf # https://usgraphics.com
│   └── BerkeleyMono[...]-Regular.ttf # https://usgraphics.com
├── pkglist.txt # List of installed packages
├── README.md
├── root/
│   └── aufii.sh* # Generates EFI boot stub
├── systemd_enabled.txt # List of enabled services (system-wide)
└── systemd_enabled_user.txt # List of enabled user services
```
## Installation
Follow the [official Installation guide][guide].
```shell
pacstrap -K /mnt base linux linux-firmware intel-ucode efibootmgr iwd neovim openssh git curl xfsprogs
```
- initramfs generation is needed `mkinitcpio -P`
- Use `root/aufii.sh` to generate/execute the [efibootmgr][efi] command
## Using it
### Fonts
Are managed by fontconfig.
### VNC
| Type | Name | Purpose | Details |
| ------- | -------- | -------------- | -------------------------------- |
| Package | `wayvnc` | VNC server | `~/.config/wayvnc/config` |
| File | SSH key | VNC encryption | `~/.config/wayvnc/rsa_key.pem\*` |
Packages:
- `wayvnc`. Running `~/bin/vnc.sh` allows to connect to an already
established sway session. On macOS, you can use the RealVNC client. Keys are
switched, Alt on Linux is Cmd on macOS.
[minix100]: https://www.minix.com.hk/products/minix-z100-0db-fanless-mini-pc
[guide]: https://wiki.archlinux.org/title/Installation_guide
[efi]: https://wiki.archlinux.org/title/EFI_boot_stub
[post]: https://lugh.ch/i-use-arch-btw.html
### Sway
#### Launching/stopping things
- `mod` + `enter` terminal
- `mod` + `d` launcher
- `mod` + `g` browser
- `mod` + `t` file manager
- `mod` + `shift` + `q` kill window
- `mod` + `shift` + `e` exit Sway
#### Window management
- `mod` + `-` show scratch pad
- `mod` + `-` + `shift` put focused window to scratch pad
- `mod` + `shift` + `Space` move focues scratch pad window out of scratch area
- `Meh` + `w/a/s/d` resize windows
- `mod` + `h/j/k/l` focus window
- `mod` + `shift` + `h/j/k/l` move window
- `mod` + `f` zoom window fullscreen
- `mod` + `z` zoom window centered (or Zen mode)
- `mod` + `1/2/3/4/5/6` switch workspace
- `mod` + `shift` + `1/2/3/4/5/6` move focused window to workspace
- `Meh` + `n` next workspace
- `Meh` + `p` previous workspace
- `Meh` + `enter` cycle between current/previous workspace
#### Others
- `mod` + `shift` + `c` reload Sway config
- `mod` + `ctrl` + `v` paste from cliphist
- `mod` + `o` lock screen