diff --git a/.config/hypr/scripts/logout.sh b/.config/hypr/scripts/logout.sh index 66b76bc..30c2a54 100755 --- a/.config/hypr/scripts/logout.sh +++ b/.config/hypr/scripts/logout.sh @@ -12,9 +12,9 @@ choice=$(echo -e "suspend\nshutdown\npoweroff\nreboot\nlock" | wofi -d --prompt if test "$choice" = lock ; then - # sleep less when power on + # don't sleep when power on if acpi -a | grep -q on; then - sleep_time=3600 + sleep_time=86400 else sleep_time=10 fi diff --git a/.zshrc b/.zshrc index 8f0f6fa..358fcdf 100644 --- a/.zshrc +++ b/.zshrc @@ -91,10 +91,14 @@ zstyle ':prompt:pure:git:stash' show yes zstyle ':prompt:pure:prompt:success' color default #edit in vim -autoload edit-command-line +autoload -Uz edit-command-line zle -N edit-command-line bindkey '' edit-command-line +# better CTRL-w +autoload -Uz select-word-style +select-word-style bash + zmodload zsh/complist bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history @@ -125,7 +129,7 @@ export MANROFFOPT="-c" export BAT_THEME="ansi" #local path -export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin" +export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin}" export MANPATH="${MANPATH}:${HOME}/.local/share/man" #ccache support