From b31b8c57cbcf854dfa70cba9460e72c618624a44 Mon Sep 17 00:00:00 2001 From: Janis Date: Mon, 26 Dec 2022 19:51:28 +0100 Subject: [PATCH] formatting fixes --- readme.md | 45 ++++++++++++++++++++++++++++++--------------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/readme.md b/readme.md index 443e3b7..b270394 100644 --- a/readme.md +++ b/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