formatting fixes
This commit is contained in:
parent
3ad6d11822
commit
b31b8c57cb
45
readme.md
45
readme.md
|
@ -1,21 +1,24 @@
|
|||
# Installing Arch on a 2015 Retina MacBook Pro
|
||||
|
||||
## Disk formatting ##
|
||||
|
||||
/dev/sda
|
||||
* /dev/sda1 - EFI Partition
|
||||
* /dev/sda2 - dmcrypt encrypted partition
|
||||
BTRFS filesystem with:
|
||||
- @root -> /
|
||||
- @home -> /home
|
||||
- @snapshots -> /.snapshots
|
||||
- @swap -> /swap
|
||||
for [swapfile](https://wiki.archlinux.org/title/swap#Swap_file) /swap/swapfile
|
||||
ensure only root can access swapfile
|
||||
`chmod 600 /swa/swapfile`
|
||||
create swapfile that is bigger than my ram for hibernate-to-disk
|
||||
`dd if=/dev/zero of=/swapfile bs=1M count=8196 status=progress`
|
||||
- @tmp -> /var/tmp
|
||||
- @log -> /var/log
|
||||
* /dev/sda1 - EFI Partition
|
||||
* /dev/sda2 - dmcrypt encrypted partition
|
||||
BTRFS filesystem with:
|
||||
- @root -> /
|
||||
- @home -> /home
|
||||
- @snapshots -> /.snapshots
|
||||
- @swap -> /swap
|
||||
|
||||
for [swapfile](https://wiki.archlinux.org/title/swap#Swap_file) /swap/swapfile
|
||||
ensure only root can access swapfile
|
||||
> `chmod 600 /swa/swapfile`
|
||||
create swapfile that is bigger than my ram for hibernate-to-disk
|
||||
> `dd if=/dev/zero of=/swapfile bs=1M count=8196 status=progress`
|
||||
|
||||
- @tmp -> /var/tmp
|
||||
- @log -> /var/log
|
||||
|
||||
## Configuration
|
||||
I use [sway](https://swaywm.org) as my window manager, this time I decided to try a display manager aswell which I usually dont bother with and just type `sway` after login, and went for [lemurs](https://github.com/coastalwhite/lemurs), a lightweight TUI dm written in Rust.
|
||||
|
@ -63,6 +66,18 @@ I use these options in my `/etc/libinput-gestures.conf` to switch between adjace
|
|||
|
||||
I also use the [swaylock-effecs](https://github.com/mortie/swaylock-effects) fork of swaylock, though I just use the image option without any effects because of how long it takes to compute the gaussean blur.
|
||||
|
||||
I then configured `logind` to ignore accidental short pressed to the power button, which happens frequently enough for the default (shutting down) to become annoying, and suspend when the lid is closed:
|
||||
```
|
||||
# /etc/systemd/logind.conf
|
||||
|
||||
[Login]
|
||||
HandlePowerKey=ignore
|
||||
HandlePowerKeyLongPress=poweroff
|
||||
|
||||
HandleLidSwitch=suspend
|
||||
HandleLidSwitchExternalPower=suspend
|
||||
```
|
||||
|
||||
Since I dont use a common display manager which automatically runs XDG autorun .desktop entries, I start libinput-gestures in my sway config:
|
||||
```
|
||||
# ~/.config/sway/config
|
||||
|
@ -94,7 +109,7 @@ bindsym XF86AudioLowerVolume exec "pactl -- set-sink-volume $(pactl get-default-
|
|||
bindsym XF86AudioRaiseVolume exec "pactl -- set-sink-volume $(pactl get-default-sink) +10%"
|
||||
```
|
||||
|
||||
I also installed and start [dunst]() for desktop notifications, and [gammastep]() to replace nightshift to make the display warmer at night:
|
||||
I also installed and start [dunst](https://wiki.archlinux.org/title/Dunst) for desktop notifications, and [gammastep](https://gitlab.com/chinstrap/gammastep) to replace nightshift to make the display warmer at night:
|
||||
```
|
||||
# ~/.config/sway/config
|
||||
|
||||
|
|
Loading…
Reference in a new issue