config: a few small adjustments

This commit is contained in:
xeruf 2022-11-18 04:20:13 +01:00
parent 9bcf6c91da
commit 2e26d955ad
6 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,8 @@
{ {
"microbreakDuration": 20000, "microbreakDuration": 30000,
"microbreakInterval": 1200000, "microbreakInterval": 1200000,
"breakDuration": 180000, "breakDuration": 180000,
"breakInterval": 3, "breakInterval": 2,
"breakNotification": true, "breakNotification": true,
"microbreakNotification": true, "microbreakNotification": true,
"breakNotificationInterval": 30000, "breakNotificationInterval": 30000,

View File

@ -44,7 +44,7 @@ yas() {
) )
if test -n "$pkg" if test -n "$pkg"
then echo "Installing $pkg..." then echo "Installing $pkg..."
cmd="yay -Sy --rebuild $pkg" cmd="yay -Sy --batchinstall --rebuild $pkg"
print -s "$cmd" print -s "$cmd"
eval "$cmd" eval "$cmd"
rehash rehash

View File

@ -36,7 +36,7 @@ cl() {
cd() { cd() {
if test -d "$DATA" && test "${1:--}" != "-" -a ! -d "$1" -a $# -eq 1 if test -d "$DATA" && test "${1:--}" != "-" -a ! -d "$1" -a $# -eq 1
then 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" test -n "$dir" && cd "$dir"
else else
builtin cd "$@" && builtin cd "$@" &&

View File

@ -18,6 +18,7 @@ case $1 in
(socha) user=software-challenge; host=git@github.com;; (socha) user=software-challenge; host=git@github.com;;
(hub) host=git@github.com;; (hub) host=git@github.com;;
(lab) host=git@gitlab.com;; (lab) host=git@gitlab.com;;
(ftt) host=git@code.ftt.gmbh; user=janek;;
(*) host=${1:-gitea@git.jfischer.org};; (*) host=${1:-gitea@git.jfischer.org};;
esac esac
user=${3:-${user:-$(git config user.name)}} user=${3:-${user:-$(git config user.name)}}

View File

@ -22,7 +22,7 @@ esac
# FSTAB: BY LABEL # FSTAB: BY LABEL
if grep --word-regexp "LABEL=$arg" /etc/fstab if grep --word-regexp "LABEL=$arg" /etc/fstab
then # have to mount twice as the first one might be creating the directory 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 $? exit $?
fi fi
# FSTAB: BY MOUNTPOINT/NAME # FSTAB: BY MOUNTPOINT/NAME

View File

@ -4,7 +4,6 @@ export_existing() {
do test -d "$2" && export $var="$2" && break do test -d "$2" && export $var="$2" && break
shift shift
done done
echo
} }
export_existing DATA $HOME/daten $HOME/data export_existing DATA $HOME/daten $HOME/data
export MUSIC="$DATA/4-media/music" 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 {}), #alt-r:preview(bat {}),
export FZF_HISTDIR="$XDG_STATE_HOME/fzf" export FZF_HISTDIR="$XDG_STATE_HOME/fzf"
mkdir -p "$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' --tiebreak=$($_fzf_latest && echo "chunk,")end,length --history=$FZF_HISTDIR/history --bind='$FZF_BINDINGS'
$($_fzf_latest && echo '--preview-window=60%,border-left --marker=o')" $($_fzf_latest && echo '--preview-window=60%,border-left --marker=o')"
FD_BASE="fd --hidden --color=always --no-ignore-vcs" FD_BASE="fd --hidden --color=always --no-ignore-vcs"