From f32fc8b9eb8303d1ca2e1cc17773bc44d38fff3d Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Mon, 27 May 2024 14:17:49 +0200 Subject: updated --- bin/extra/aivpn | 18 +++++------------- bin/menuscripts/mpass-otp | 2 +- config/essentials/shell/aliases.sh | 3 ++- config/essentials/shell/functions.sh | 11 ++--------- config/essentials/zsh/.zshrc | 9 +-------- config/home/.zshenv | 2 +- config/wayland/gammastep/config.ini | 2 +- 7 files changed, 13 insertions(+), 34 deletions(-) diff --git a/bin/extra/aivpn b/bin/extra/aivpn index 21436ed..841d926 100755 --- a/bin/extra/aivpn +++ b/bin/extra/aivpn @@ -16,23 +16,15 @@ done export SSH_ASKPASS="sshpass" export SSH_ASKPASS_REQUIRE="prefer" -export PASSWORD="zot/qemu" +export PASSWORD="zot/quickemu" err "I: Activating vpn" ssh vm "rasdial \"vpn.student.ehb.be\"" keyadd ehb/ai -ssh -f -N \ - -L 2222:10.2.160.41:22 \ - vm +ssh -f -N -L 2222:10.2.160.41:22 vm keyadd ehb/vm_int -ssh -f -N \ - -L 2223:10.2.160.9:22 \ - vm -ssh -f -N \ - -L 2224:10.2.160.10:22 \ - vm -ssh -f -N \ - -L 2225:10.2.160.11:22 \ - vm +ssh -f -N -L 2223:10.2.160.9:22 vm +ssh -f -N -L 2224:10.2.160.10:22 vm +ssh -f -N -L 2225:10.2.160.11:22 vm diff --git a/bin/menuscripts/mpass-otp b/bin/menuscripts/mpass-otp index 52d1341..2be6186 100755 --- a/bin/menuscripts/mpass-otp +++ b/bin/menuscripts/mpass-otp @@ -1,7 +1,7 @@ #!/bin/sh pass="$(find "$PASSWORD_STORE_DIR"/keys/otp -iname "*.gpg" | sed "/^\./d;s#^$PASSWORD_STORE_DIR/keys/otp/##;s/\.gpg$//" | - commander -c)" + dmenu -c)" [ "$pass" ] || exit 1 pass otp -c keys/otp/"$pass" notify-send -t 1000 "mpass" "copied $pass" diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index eb48416..ab17645 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -53,7 +53,8 @@ alias pf='profanity' alias f='fg' -alias gurk='pgrep gurk > /dev/null && printf "Already Running.\n" || gurk' +which gurk > /dev/null 2>&1 && + alias gurk='pgrep gurk > /dev/null && printf "Already Running.\n" || gurk' alias arduino-cli='arduino-cli --config-file $XDG_CONFIG_HOME/arduino15/arduino-cli.yaml' diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 1fd6e92..e0b148c 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -317,17 +317,10 @@ serve() { if [ "$1" ] then logn "Serving $1" - docker container run \ - --rm \ - --volume "$(readlink -f "$1")":/data \ - --publish 80:5000 sigoden/dufs /data + dufs "$1" else - logn "Receiving files.." - docker container run \ - --rm \ - --volume /tmp/data:/data \ - --publish 80:5000 sigoden/dufs /data --allow-upload + dufs /tmp/data --alow-upload fi } diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc index ab66fcb..e2704e9 100644 --- a/config/essentials/zsh/.zshrc +++ b/config/essentials/zsh/.zshrc @@ -31,7 +31,7 @@ eval "$(zoxide init zsh)" ### Plugins [ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh" -plug "MichaelAquilina/zsh-you-should-use" +# plug "MichaelAquilina/zsh-you-should-use" plug "chivalryq/git-alias" plug "kutsan/zsh-system-clipboard" # plug "marlonrichert/zsh-autocomplete" @@ -110,13 +110,6 @@ bindkey -M menuselect '^xh' accept-and-hold # Hold bindkey -M menuselect '^xn' accept-and-infer-next-history # Next bindkey -M menuselect '^xu' undo # Undo -space-expand-alias() { - zle _expand_alias - zle self-insert -} -zle -N space-expand-alias -bindkey -M main ' ' space-expand-alias - ## window title hooks add-zsh-hook -Uz preexec () { print -n "\e]0;$1\a\033[0m"; } add-zsh-hook -Uz precmd set_wt (){ print -Pn "\e]0;%n@%m on %~\a"; } diff --git a/config/home/.zshenv b/config/home/.zshenv index 65fe153..c4b1e9d 100644 --- a/config/home/.zshenv +++ b/config/home/.zshenv @@ -64,7 +64,7 @@ export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS' --color=info:#b48ead,prompt:#bf6069,pointer:#b48dac --color=marker:#a3be8b,spinner:#ebcb8b,header:#a3be8b' -export LESS="-j 4 -i -r" +export LESS="-i -r" # Colored manpages export MANPAGER="less -R --use-color -Dd+r -Du+b" diff --git a/config/wayland/gammastep/config.ini b/config/wayland/gammastep/config.ini index 3a80417..e0699ac 100644 --- a/config/wayland/gammastep/config.ini +++ b/config/wayland/gammastep/config.ini @@ -1,7 +1,7 @@ [general] fade=0 location-provider=manual -adjustment-method=wayland +# adjustment-method=wayland gamma=0.8 temp-day=5700 temp-night=3600 -- cgit v1.2.3