Skip to content

Instantly share code, notes, and snippets.

@elcritch
Last active March 8, 2022 02:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elcritch/462c89c345c52381a693e901ad54f6ad to your computer and use it in GitHub Desktop.
Save elcritch/462c89c345c52381a693e901ad54f6ad to your computer and use it in GitHub Desktop.
# Useful helpers for manjaro
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# https://wiki.kobol.io/helios64/software/zfs/docker-zfs/
sudo zfs create -o mountpoint=/var/lib/docker mypool/docker-root
sudo zfs create -o mountpoint=/var/lib/docker/volumes mypool/docker-volumes
sudo chmod 700 /var/lib/docker/volumes
sudo zfs set com.sun:auto-snapshot=false mypool/docker-root
sudo zfs set com.sun:auto-snapshot=true mypool/docker-volumes
cat > /etc/X11/xorg.conf.d/40-mouse.conf << EOF
Section "InputClass"
Identifier "system-mouse"
MatchIsPointer "on"
Option "ScrollMethod" "button"
Option "ScrollButton" "2"
EndSection
EOF
touch ~/.tmux.conf
cat > ~/.tmux.conf << EOF
set -g mouse on
bind-key -n C-l if-shell -F '#{alternate_on}' 'send-keys C-l' 'send-keys -R C-l; clear-history'
EOF
pamu2fcfg -o pam://`hostname` -i pam://`hostname` -n >> ~/.config/Yubico/u2f_keys
# For 2FA check with passwd backup:
echo "auth sufficient pam_u2f.so origin=pam://$(hostname) appid=pam://$(hostname)"
# For blinky check w/ passwd use:
echo "auth sufficient pam_u2f.so cue origin=pam://$(hostname) appid=pam://$(hostname)"
# For debug use:
echo "auth sufficient pam_u2f.so debug origin=pam://$(hostname) appid=pam://$(hostname)"
## Configure Auth Systems:
# One touch kde policy-kit dialogs:
sudo vim /etc/pam.d/polkit-1
# One touch sudo:
sudo vim /etc/pam.d/sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment