Move notes
This commit is contained in:
@@ -1,4 +1,71 @@
|
||||
Arch linux configs
|
||||
# Arch Linux
|
||||
|
||||
* `config` -> map contents to `~/.config`.
|
||||
* `home` -> map contents to `~/`.
|
||||
* `config/` -> map contents to `~/.config`.
|
||||
* `home/` -> map contents to `~/`.
|
||||
|
||||
# Setup
|
||||
|
||||
* Full disk encryption with Veracrypt
|
||||
|
||||
* Store /tmp in RAM
|
||||
|
||||
* Move browser cache directories to /tmp as a means of reducing file writes on SSD
|
||||
|
||||
* Fix fonts by placing the following XML into `/etc/fonts/conf.avail/29-prettify.conf`
|
||||
and then symlinking: `ln -s /etc/fonts/conf.avail/29-prettify.conf /etc/fonts/conf.d/29-prettify.conf`
|
||||
|
||||
```
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
||||
<fontconfig>
|
||||
<match target="font" >
|
||||
<edit mode="assign" name="rgba" >
|
||||
<const>rgb</const>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font" >
|
||||
<edit mode="assign" name="hinting" >
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font" >
|
||||
<edit mode="assign" name="hintstyle" >
|
||||
<const>hintslight</const>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font" >
|
||||
<edit mode="assign" name="antialias" >
|
||||
<bool>true</bool>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="font">
|
||||
<edit mode="assign" name="lcdfilter">
|
||||
<const>lcddefault</const>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
```
|
||||
|
||||
## Map caps to left-ctrl
|
||||
|
||||
* Most promising method
|
||||
|
||||
* Install `xorg-xmodmap`
|
||||
* Map `linux/home/Xmodmap` to ~/
|
||||
* The above taken from https://wiki.archlinux.org/index.php/xmodmap
|
||||
|
||||
* Second method: map caps key to left-ctrl (see https://wiki.archlinux.org/index.php/Map_scancodes_to_keycodes for details)
|
||||
* edit `/etc/udev/hwdb.d/10-my-modifiers.hwdb`
|
||||
* add:
|
||||
|
||||
```
|
||||
evdev:atkbd:dmi:* # built-in keyboard: match all AT keyboards for now
|
||||
KEYBOARD_KEY_3a=leftctrl # bind capslock to leftctrl
|
||||
```
|
||||
|
||||
* run `udevadm hwdb --update` then reboot
|
||||
|
||||
## Install clipboard getter
|
||||
|
||||
* `pi xsel`
|
||||
* Now we can grab clipboard content in vim using `:read !xsel --clipboard --output`
|
||||
|
||||
Reference in New Issue
Block a user