View profile
This file contains 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/profile | |
# Set our umask | |
umask 022 | |
# Append "$1" to $PATH when not already in. | |
# This function API is accessible to scripts in /etc/profile.d | |
append_path () { | |
case ":$PATH:" in | |
*:"$1":*) |
View fstab
This file contains 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. |
View export-key-pair.sh
This file contains 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 |
View fonts.conf
This file contains 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> |
View 30-touchpad.conf
This file contains 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 |
View environment
This file contains 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' |
View hosts
This file contains 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 |