diff options
| -rwxr-xr-x | bin/extra/zbar_wpa | 13 | ||||
| -rw-r--r-- | config/essentials/zsh/.zshrc | 3 |
2 files changed, 15 insertions, 1 deletions
diff --git a/bin/extra/zbar_wpa b/bin/extra/zbar_wpa new file mode 100755 index 0000000..9aab318 --- /dev/null +++ b/bin/extra/zbar_wpa @@ -0,0 +1,13 @@ +#!/bin/sh + +QR="$(zbarcam -q -1)" +Wifi="${QR#*:*:*:}" +AP="${Wifi%%;*}" +Passphrase="${Wifi##*;P:}" +Passphrase="${Passphrase%%;*}" + +wpa_passphrase "$AP" "$Passphrase" +>&2 printf 'Continue ?' +head -n 1 + +wpa_passphrase "$AP" "$Passphrase" >> /etc/wpa_supplicant/wpa_supplicant.conf diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index 925f30d..c958427 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -4,12 +4,13 @@ export PATH="$PATH:$HOME/proj/metac/build" export PATH="$PATH:$HOME/proj/metac/misc" export PATH="$PATH:$HOME/proj/hmlinux/build" +export PATH="$PATH:/usr/local/musl/bin" if { [ "$TTY" = "/dev/tty1" ] || [ "$TTY" = "/dev/tty8" ]; } && [ "$(id -u)" -ne 0 ]; then eval "$(keychain --dir "$XDG_CONFIG_HOME/keychain" --eval --quiet --agents ssh,gpg)" if [ "$(hostname)" = "spring" ] then - keychain --dir "$XDG_CONFIG_HOME/keychain" --quiet --agents gpg 3A626DD20A32EB2E5DD9CE71CFD9ABC97158CD5D + keychain --dir "$XDG_CONFIG_HOME/keychain" --quiet 3A626DD20A32EB2E5DD9CE71CFD9ABC97158CD5D fi exec startx > /dev/null 2>&1 exit |
