From a2a2943a1daa50708b9f58c742801edd53bcaa66 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sat, 12 Aug 2023 00:57:40 +0200 Subject: [PATCH] config: stretchly and killm tweaks --- .config/Stretchly/config.json | 10 +++++----- .config/ideavim/ideavimrc | 2 +- .config/shell/functions | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.config/Stretchly/config.json b/.config/Stretchly/config.json index 433656c..7842b86 100644 --- a/.config/Stretchly/config.json +++ b/.config/Stretchly/config.json @@ -10,15 +10,15 @@ "microbreak": true, "break": true, "microbreakStrictMode": true, - "breakStrictMode": false, + "breakStrictMode": true, "morningHour": 6, - "microbreakPostpone": false, + "microbreakPostpone": true, "breakPostpone": true, "microbreakPostponeTime": 120000, "breakPostponeTime": 300000, "microbreakPostponesLimit": 1, - "microbreakPostponableDurationPercent": 20, - "breakPostponesLimit": 3, + "microbreakPostponableDurationPercent": 10, + "breakPostponesLimit": 10, "breakPostponableDurationPercent": 20, "mainColor": "#633738", "miniBreakColor": "#478484", @@ -471,4 +471,4 @@ "version": "1.14.1" } } -} \ No newline at end of file +} diff --git a/.config/ideavim/ideavimrc b/.config/ideavim/ideavimrc index 971df90..28cf09c 100644 --- a/.config/ideavim/ideavimrc +++ b/.config/ideavim/ideavimrc @@ -13,4 +13,4 @@ set multiple-cursors set ideajoin " use IDEA jump history https://youtrack.jetbrains.com/issue/VIM-44 -nnoremap :action Back +" nnoremap :action Back diff --git a/.config/shell/functions b/.config/shell/functions index 4cab6c4..04e8c4e 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -483,9 +483,9 @@ updateKarma() { rpl "karma-runner.github.io/[^/]\+/" "karma-runner.github.io/$1/ # Kill all shell background processes alias killbg='kill -9 ${${(v)jobstates##*:*:}%=*}' -# Kill all processes that match +# Kill all processes that match given term killm() { - ps ax | grep "$1" | grep -v grep | sed 's/\([^ ]\) .*/\1/' | + ps ax | grep "\b$1 " | grep '?' | grep -v grep | sed 's/\([^ ]\) .*/\1/' | xargs --no-run-if-empty kill --verbose "${@:2}" }