arch-install: Add display manager and zram section
This commit is contained in:
parent
45a15e65f2
commit
d1b38e4bd1
2 changed files with 101 additions and 18 deletions
|
@ -6,9 +6,9 @@ This document describes my ArchLinux installation steps. It skips over the prepa
|
|||
- use `NetworkManager` for network configuration
|
||||
- use `btrfs` as the main file system
|
||||
- use `LUKS` for disk encryption
|
||||
- use `greetd` as display manager
|
||||
- **try** to only use native wayland with sway as WM
|
||||
- no swap partition (i might use zram or a swapfile in the future though)
|
||||
- no display manager (for now at least)
|
||||
- use zram instead of a swap partition/file
|
||||
|
||||
My setup is opinionated and so is this doc.
|
||||
|
||||
|
@ -332,16 +332,10 @@ $ dotfiles config --local status.showUntrackedFiles no
|
|||
$ dotfiles checkout
|
||||
```
|
||||
|
||||
Install various packages from dotfiles
|
||||
Install and update various packages
|
||||
|
||||
```console
|
||||
$ sudo pacman -S --needed - < $HOME/.dotfiles/pkglist.txt
|
||||
```
|
||||
|
||||
Update system just to be sure
|
||||
|
||||
```console
|
||||
$ sudo pacman -Syu
|
||||
$ sudo pacman -Syu --needed - < $HOME/.dotfiles/pkglist.txt
|
||||
```
|
||||
|
||||
### AUR
|
||||
|
@ -349,7 +343,7 @@ $ sudo pacman -Syu
|
|||
Install `paru` as AUR helper
|
||||
|
||||
```console
|
||||
$ sudo pacman -S --needed base-devel
|
||||
$ sudo pacman -Syu --needed base-devel
|
||||
$ git clone https://aur.archlinux.org/paru.git
|
||||
$ cd paru
|
||||
$ makepkg -si
|
||||
|
@ -358,7 +352,7 @@ $ makepkg -si
|
|||
Install packages from AUR
|
||||
|
||||
```console
|
||||
$ paru -Sa wlogout
|
||||
$ paru -Syua --needed - < $HOME/.dotfiles/pkglist-aur.txt
|
||||
```
|
||||
|
||||
### Flatpak
|
||||
|
@ -366,7 +360,7 @@ $ paru -Sa wlogout
|
|||
Install flatpak package
|
||||
|
||||
```console
|
||||
$ sudo pacman -S flatpak
|
||||
$ sudo pacman -Syu flatpak
|
||||
```
|
||||
|
||||
Add the flathub repo
|
||||
|
@ -381,12 +375,27 @@ Install `Flatseal` to manage flatpak permissions via GUI
|
|||
$ flatpak install flathub com.github.tchx84.Flatseal
|
||||
```
|
||||
|
||||
### Setup zram
|
||||
|
||||
Install `zram-generator`
|
||||
|
||||
```console
|
||||
$ sudo pacman -Syu zram-generator
|
||||
```
|
||||
|
||||
Create zram config file `/etc/systemd/zram-generator.conf`, e.g.:
|
||||
|
||||
```ini
|
||||
[zram0]
|
||||
zram-size = min(ram, 8192)
|
||||
```
|
||||
|
||||
### (optional) Configure boot splash screen
|
||||
|
||||
Install `plymouth`
|
||||
|
||||
```console
|
||||
$ sudo paru -Sa plymouth-git
|
||||
$ sudo paru -Syua plymouth-git
|
||||
```
|
||||
|
||||
Adapt mkinitcpio hooks. Add `plymouth plymouth-encrypt` **after** `base udev` and remove `encrypt`. Resulting in e.g.
|
||||
|
@ -400,3 +409,81 @@ Set theme for plymouth (this also regenerates the initramfs)
|
|||
```console
|
||||
$ sudo plymouth-set-default-theme -R script
|
||||
```
|
||||
|
||||
### (optional) Configure display manager
|
||||
|
||||
These steps will use `greetd` with the `gtkgreet` greeter and will use `sway` as compositor.
|
||||
|
||||
Install `greetd` and `greetd-gtkgreet-git`
|
||||
|
||||
```console
|
||||
$ sudo paru -Syua greetd greetd-gtkgreet-git
|
||||
```
|
||||
|
||||
Create greetd config directory
|
||||
|
||||
```console
|
||||
$ sudo mkdir -p /etc/greetd
|
||||
```
|
||||
|
||||
Create `/etc/greetd/environments` file with all environments that gtkgreet should be able to start, e.g.:
|
||||
|
||||
```
|
||||
sway
|
||||
bash
|
||||
```
|
||||
|
||||
Create greetd config file `/etc/greetd/config.toml`, e.g.:
|
||||
|
||||
```toml
|
||||
[terminal]
|
||||
# The VT to run the greeter on. Can be "next", "current" or a number
|
||||
# designating the VT.
|
||||
vt = 1
|
||||
|
||||
# The default session, also known as the greeter.
|
||||
[default_session]
|
||||
command = "sway --config /etc/greetd/sway-config"
|
||||
user = "greeter"
|
||||
```
|
||||
|
||||
Create `/etc/greetd/sway-config` which will be used by the sway greeter session, e.g.:
|
||||
|
||||
```config
|
||||
exec "gtkgreet --layer-shell --style /etc/greetd/gtkgreet-style.css; swaymsg exit"
|
||||
|
||||
bindsym Mod4+shift+e exec swaynag \
|
||||
-t warning \
|
||||
-m 'What do you want to do?' \
|
||||
-b 'Poweroff' 'systemctl poweroff' \
|
||||
-b 'Reboot' 'systemctl reboot'
|
||||
|
||||
include /etc/sway/config.d/*
|
||||
```
|
||||
It is advisable to also set the correct output and input configuration.
|
||||
Either write them into the same file or place additional files into `/etc/sway/config.d/`.
|
||||
|
||||
Optionally one can style the gtkgreet greeter with `/etc/greetd/gtkgreet-style.css`, e.g.:
|
||||
|
||||
```css
|
||||
window {
|
||||
background-color: rgba(0, 0, 0, 0);
|
||||
background-size: contain;
|
||||
background-position: center;
|
||||
color: rgba(200, 200, 200, 0.9);
|
||||
}
|
||||
|
||||
box#body {
|
||||
background-color: rgba(50, 50, 50, 0.8);
|
||||
border-radius: 10px;
|
||||
color: rgba(250, 250, 250, 0.9);
|
||||
padding: 50px;
|
||||
}
|
||||
```
|
||||
|
||||
Enable and start `greetd.service`
|
||||
|
||||
```console
|
||||
$ sudo systemctl enable --now greetd.service
|
||||
```
|
||||
|
||||
|
|
|
@ -1,18 +1,14 @@
|
|||
aurutils
|
||||
brave-bin
|
||||
discord_arch_electron
|
||||
gamehub
|
||||
greetd
|
||||
greetd-gtkgreet-git
|
||||
greetd-wlgreet
|
||||
gvisor-tap-vsock
|
||||
jd-tool-bin
|
||||
looking-glass
|
||||
paru
|
||||
plymouth-git
|
||||
python-pyclip
|
||||
soundux
|
||||
teamspeak
|
||||
tessen
|
||||
vendor-reset-dkms-git
|
||||
waydroid
|
||||
|
|
Loading…
Add table
Reference in a new issue