This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/fstab: static file system information. | |
# | |
# By default, the command `udisksctl mount -b /dev/sdb1` will mount the hard | |
# drive with read-only access. The following options allow `udisksctl` to mount | |
# the drive with read-write permissions without using `su` or `sudo`. | |
# | |
# Settings: read `man fstab ntfs-3g` for options. | |
# | |
# LABEL - the disk label obtained by running the `lsblk -f` command. | |
# /urn/media/luis/DATA - the directory where I want the disk to be mounted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# If there is only one argument: | |
if [ $# -eq 1 ] ; then | |
# Export the private key with the specified argument. | |
gpg --export-secret-keys --armor "$1" > "$1-private-key.asc" | |
# Export the public key with the specified argument. | |
gpg --export --armor "$1" > "$1-public-key.asc" | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Put in .config/fontconfig/fonts.conf --> | |
<?xml version='1.0'?> | |
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
<fontconfig> | |
<alias> | |
<family>serif</family> | |
<prefer> | |
<family>Linux Libertine</family> | |
<family>Joy Pixels</family> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Put in /etc/X11/xorg.conf.d/30-touchpad.conf | |
# Define touchpad behavior when using DWM. | |
Section "InputClass" | |
Identifier "touchpad catchall" | |
Driver "libinput" | |
Option "Tapping" "on" | |
Option "NaturalScrolling" "true" | |
EndSection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add at the end of /etc/environment | |
# This is very close to what the Arch wiki recommends. | |
# Use Fcitx or Fcitx5 for input method control. | |
GTK_IM_MODULE='fcitx' | |
QT_IM_MODULE='fcitx' | |
SDL_IM_MODULE='fcitx' | |
XMODIFIERS='@im=fcitx' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to the end of /etc/hosts | |
# Log out and log in for changes to take effect. | |
# To enable YouTube back, simply comment out or remove the section. | |
# Block YouTube. | |
127.0.0.1 www.youtube.com | |
127.0.0.1 m.youtube.com | |
127.0.0.1 youtube.com | |
127.0.0.1 youtu.be | |
127.0.0.1 ytimg.com |