From 2e26d955ad251a6005ac77ac64e42d2d057153ec Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Fri, 18 Nov 2022 04:20:13 +0100 Subject: [PATCH] config: a few small adjustments --- .config/Stretchly/config.json | 6 +++--- .config/shell/arch | 2 +- .config/shell/browse | 2 +- .local/bin/scripts/git-repo | 1 + .local/bin/scripts/moul | 2 +- .zshenv | 3 +-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/Stretchly/config.json b/.config/Stretchly/config.json index fecfd6e..b22cc32 100644 --- a/.config/Stretchly/config.json +++ b/.config/Stretchly/config.json @@ -1,8 +1,8 @@ { - "microbreakDuration": 20000, + "microbreakDuration": 30000, "microbreakInterval": 1200000, "breakDuration": 180000, - "breakInterval": 3, + "breakInterval": 2, "breakNotification": true, "microbreakNotification": true, "breakNotificationInterval": 30000, @@ -454,4 +454,4 @@ "screen": "primary", "timeToBreakInTray": false, "currentTimeInBreaks": false -} +} \ No newline at end of file diff --git a/.config/shell/arch b/.config/shell/arch index 0f8fc70..0e36648 100644 --- a/.config/shell/arch +++ b/.config/shell/arch @@ -44,7 +44,7 @@ yas() { ) if test -n "$pkg" then echo "Installing $pkg..." - cmd="yay -Sy --rebuild $pkg" + cmd="yay -Sy --batchinstall --rebuild $pkg" print -s "$cmd" eval "$cmd" rehash diff --git a/.config/shell/browse b/.config/shell/browse index 5c58e8c..c6c0f55 100644 --- a/.config/shell/browse +++ b/.config/shell/browse @@ -36,7 +36,7 @@ cl() { cd() { if test -d "$DATA" && test "${1:--}" != "-" -a ! -d "$1" -a $# -eq 1 then - dir=$(fd --no-ignore --glob "$1*" "$DATA" --maxdepth 2 --type d --max-results 1 2>/dev/null) + dir=$(fd --no-ignore --glob "$1*" "$DATA" $MNT --maxdepth 2 --type d --max-results 1 2>/dev/null) test -n "$dir" && cd "$dir" else builtin cd "$@" && diff --git a/.local/bin/scripts/git-repo b/.local/bin/scripts/git-repo index 0d6657a..c9dfc8f 100755 --- a/.local/bin/scripts/git-repo +++ b/.local/bin/scripts/git-repo @@ -18,6 +18,7 @@ case $1 in (socha) user=software-challenge; host=git@github.com;; (hub) host=git@github.com;; (lab) host=git@gitlab.com;; + (ftt) host=git@code.ftt.gmbh; user=janek;; (*) host=${1:-gitea@git.jfischer.org};; esac user=${3:-${user:-$(git config user.name)}} diff --git a/.local/bin/scripts/moul b/.local/bin/scripts/moul index c570600..b539e76 100755 --- a/.local/bin/scripts/moul +++ b/.local/bin/scripts/moul @@ -22,7 +22,7 @@ esac # FSTAB: BY LABEL if grep --word-regexp "LABEL=$arg" /etc/fstab then # have to mount twice as the first one might be creating the directory - mount -L "$arg" "$@" 2>/dev/null || mount -L "$arg" "$@" + mount -L "$@" 2>/dev/null || mount -L "$@" exit $? fi # FSTAB: BY MOUNTPOINT/NAME diff --git a/.zshenv b/.zshenv index 0aa7dcc..864aec2 100644 --- a/.zshenv +++ b/.zshenv @@ -4,7 +4,6 @@ export_existing() { do test -d "$2" && export $var="$2" && break shift done - echo } export_existing DATA $HOME/daten $HOME/data export MUSIC="$DATA/4-media/music" @@ -137,7 +136,7 @@ alt-shift-down:preview-down,alt-shift-up:preview-up,esc:close") #alt-r:preview(bat {}), export FZF_HISTDIR="$XDG_STATE_HOME/fzf" mkdir -p "$XDG_STATE_HOME/fzf" -export FZF_DEFAULT_OPTS="--select-1 --exit-0 --ansi +export FZF_DEFAULT_OPTS="--exit-0 --ansi --tiebreak=$($_fzf_latest && echo "chunk,")end,length --history=$FZF_HISTDIR/history --bind='$FZF_BINDINGS' $($_fzf_latest && echo '--preview-window=60%,border-left --marker=o')" FD_BASE="fd --hidden --color=always --no-ignore-vcs"