formatting fixes
This commit is contained in:
		
							parent
							
								
									3ad6d11822
								
							
						
					
					
						commit
						b31b8c57cb
					
				
							
								
								
									
										21
									
								
								readme.md
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								readme.md
									
									
									
									
									
								
							| 
						 | 
					@ -1,6 +1,7 @@
 | 
				
			||||||
# Installing Arch on a 2015 Retina MacBook Pro
 | 
					# Installing Arch on a 2015 Retina MacBook Pro
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Disk formatting ##
 | 
					## Disk formatting ##
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/dev/sda
 | 
					/dev/sda
 | 
				
			||||||
* /dev/sda1 - EFI Partition
 | 
					* /dev/sda1 - EFI Partition
 | 
				
			||||||
* /dev/sda2 - dmcrypt encrypted partition
 | 
					* /dev/sda2 - dmcrypt encrypted partition
 | 
				
			||||||
| 
						 | 
					@ -9,11 +10,13 @@
 | 
				
			||||||
- @home -> /home
 | 
					- @home -> /home
 | 
				
			||||||
- @snapshots -> /.snapshots
 | 
					- @snapshots -> /.snapshots
 | 
				
			||||||
- @swap -> /swap
 | 
					- @swap -> /swap
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  for [swapfile](https://wiki.archlinux.org/title/swap#Swap_file) /swap/swapfile
 | 
					  for [swapfile](https://wiki.archlinux.org/title/swap#Swap_file) /swap/swapfile
 | 
				
			||||||
  ensure only root can access swapfile
 | 
					  ensure only root can access swapfile
 | 
				
			||||||
    `chmod 600 /swa/swapfile`
 | 
					  > `chmod 600 /swa/swapfile`
 | 
				
			||||||
  create swapfile that is bigger than my ram for hibernate-to-disk
 | 
					  create swapfile that is bigger than my ram for hibernate-to-disk
 | 
				
			||||||
    `dd if=/dev/zero of=/swapfile bs=1M count=8196 status=progress`
 | 
					  > `dd if=/dev/zero of=/swapfile bs=1M count=8196 status=progress`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- @tmp -> /var/tmp
 | 
					- @tmp -> /var/tmp
 | 
				
			||||||
- @log -> /var/log
 | 
					- @log -> /var/log
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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 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:
 | 
					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
 | 
					# ~/.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%"
 | 
					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
 | 
					# ~/.config/sway/config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue