diff options
Diffstat (limited to '.local/bin/wrappers')
36 files changed, 144 insertions, 0 deletions
diff --git a/.local/bin/wrappers/adb b/.local/bin/wrappers/adb new file mode 100755 index 0000000..cfe91cf --- /dev/null +++ b/.local/bin/wrappers/adb @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which adb --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/aegisub b/.local/bin/wrappers/aegisub new file mode 100755 index 0000000..9ade37a --- /dev/null +++ b/.local/bin/wrappers/aegisub @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which aegisub --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/aspell b/.local/bin/wrappers/aspell new file mode 100755 index 0000000..78fddd0 --- /dev/null +++ b/.local/bin/wrappers/aspell @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which aspell --all | grep --invert-match "local/bin" | head -n 1) --conf "$HOME/.config/aspell/aspell.conf" "$@"; diff --git a/.local/bin/wrappers/audacity b/.local/bin/wrappers/audacity new file mode 100755 index 0000000..fead7fd --- /dev/null +++ b/.local/bin/wrappers/audacity @@ -0,0 +1,2 @@ +#!/bin/sh -eu +tenacity "$@" diff --git a/.local/bin/wrappers/chromium b/.local/bin/wrappers/chromium new file mode 100755 index 0000000..d0e9a9f --- /dev/null +++ b/.local/bin/wrappers/chromium @@ -0,0 +1,13 @@ +#!/bin/sh -eu + +$(which chromium --all | grep --invert-match "local/bin" | head -n 1) \ + --disable-smooth-scrolling \ + --disable-sync-preferences \ + --process-per-site \ + "$@"; + +# --incognito +# --disable-gpu-compositing +# --disk-cache-dir=/dev/null +# --enable-native-gpu-memory-buffers +# --proxy-server="socks5://localhost:2871" diff --git a/.local/bin/wrappers/claws-mail b/.local/bin/wrappers/claws-mail new file mode 100755 index 0000000..b19aa55 --- /dev/null +++ b/.local/bin/wrappers/claws-mail @@ -0,0 +1,3 @@ +#!/bin/sh -eu +$(which claws-mail --all | grep --invert-match "local/bin" | head -n 1) \ + --alternate-config-dir "${XDG_CONFIG_HOME:-~/.config}"/claws-mail "$@"; diff --git a/.local/bin/wrappers/codium b/.local/bin/wrappers/codium new file mode 100755 index 0000000..87e93e5 --- /dev/null +++ b/.local/bin/wrappers/codium @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which codium --all | grep --invert-match "local/bin" | head -n 1) --extensions-dir "$XDG_DATA_HOME/codium" "$@" diff --git a/.local/bin/wrappers/eslint b/.local/bin/wrappers/eslint new file mode 100755 index 0000000..a122f62 --- /dev/null +++ b/.local/bin/wrappers/eslint @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which eslint --all | grep --invert-match "local/bin" | head -n 1) --no-ignore --config "$HOME/.config/eslint/config.yaml" "$@"; diff --git a/.local/bin/wrappers/firefox b/.local/bin/wrappers/firefox new file mode 100755 index 0000000..ab8c72e --- /dev/null +++ b/.local/bin/wrappers/firefox @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which firefox --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/ghci b/.local/bin/wrappers/ghci new file mode 100755 index 0000000..75f3577 --- /dev/null +++ b/.local/bin/wrappers/ghci @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which ghci --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/git b/.local/bin/wrappers/git new file mode 100755 index 0000000..d321469 --- /dev/null +++ b/.local/bin/wrappers/git @@ -0,0 +1,12 @@ +#!/bin/sh -eu + +GIT=$(which git --all | grep --invert-match "local/bin" | head --lines 1) +GIT_COMMITTER_DATE="$(date --utc --date '0' '+%a %b %d %H:%M:%S %Y %z')" + +export GIT_COMMITTER_DATE + +[ "${1:-}" = "commit" ] && export DATE=1 && $GIT "$@" --date="$GIT_COMMITTER_DATE" + +[ "${DATE:-}" = 1 ] && exit + +$GIT "$@" diff --git a/.local/bin/wrappers/gnaural b/.local/bin/wrappers/gnaural new file mode 100755 index 0000000..cb63d08 --- /dev/null +++ b/.local/bin/wrappers/gnaural @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which gnaural --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/google-chrome b/.local/bin/wrappers/google-chrome new file mode 100755 index 0000000..b9c406f --- /dev/null +++ b/.local/bin/wrappers/google-chrome @@ -0,0 +1,13 @@ +#!/bin/sh -eu + +$(which google-chrome-stable --all | grep --invert-match "local/bin" | head -n 1) \ + --disable-smooth-scrolling \ + --disable-sync-preferences \ + --process-per-site \ + "$@"; + +# --incognito +# --disable-gpu-compositing +# --disk-cache-dir=/dev/null +# --enable-native-gpu-memory-buffers +# --proxy-server="socks5://localhost:2871" diff --git a/.local/bin/wrappers/gore b/.local/bin/wrappers/gore new file mode 100755 index 0000000..af19cab --- /dev/null +++ b/.local/bin/wrappers/gore @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which gore --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/guile b/.local/bin/wrappers/guile new file mode 100755 index 0000000..1a5b4d8 --- /dev/null +++ b/.local/bin/wrappers/guile @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which guile --all | grep --invert-match "local/bin" | head --lines 1) "$@"; diff --git a/.local/bin/wrappers/latexindent b/.local/bin/wrappers/latexindent new file mode 100755 index 0000000..44e7459 --- /dev/null +++ b/.local/bin/wrappers/latexindent @@ -0,0 +1,8 @@ +#!/bin/sh -eu +$(which latexindent --all | grep --invert-match "local/bin" | head -n 1) \ + --modifylinebreaks \ + --overwrite \ + --silent \ + --cruft=/tmp \ + --local="$HOME/.config/latexindent/settings.yaml" \ + "$@"; diff --git a/.local/bin/wrappers/mix b/.local/bin/wrappers/mix new file mode 100755 index 0000000..c687a2d --- /dev/null +++ b/.local/bin/wrappers/mix @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which mix --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/mocp b/.local/bin/wrappers/mocp new file mode 100755 index 0000000..8828b25 --- /dev/null +++ b/.local/bin/wrappers/mocp @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which mocp --all | grep --invert-match "local/bin" | head --lines 1) -M "$HOME/.config/moc" "$@" diff --git a/.local/bin/wrappers/mplayer b/.local/bin/wrappers/mplayer new file mode 100755 index 0000000..8554a81 --- /dev/null +++ b/.local/bin/wrappers/mplayer @@ -0,0 +1,3 @@ +#!/bin/sh -eu +export MPLAYER_HOME="$XDG_CONFIG_HOME/mplayer" +$(which mplayer --all | grep --invert-match "local/bin" | head -n 1) "$@" diff --git a/.local/bin/wrappers/nix-index b/.local/bin/wrappers/nix-index new file mode 100755 index 0000000..96c3990 --- /dev/null +++ b/.local/bin/wrappers/nix-index @@ -0,0 +1,16 @@ +#!/bin/sh -eu + +# https://github.com/nix-community/nix-index-database?tab=readme-ov-file#ad-hoc-download + +Update() { + directory=~/.local/share/nix-index + file="index-$(uname -m | sed 's/^arm64$/aarch64/')-$(uname | tr '[:lower:]' '[:upper:]')" + mkdir --parents $directory && cd $directory + wget --quiet --timestamping "https://github.com/Mic92/nix-index-database/releases/latest/download/$file" + printf "\nUpdating database %s\n\n" "$file" + ln --symbolic --force "$file" files +} + +Update + +$(which nix-index --all | grep --invert-match "local/bin" | head --lines 1) "$@" diff --git a/.local/bin/wrappers/palemoon b/.local/bin/wrappers/palemoon new file mode 100755 index 0000000..caef463 --- /dev/null +++ b/.local/bin/wrappers/palemoon @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which palemoon --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/prettier b/.local/bin/wrappers/prettier new file mode 100755 index 0000000..94fd412 --- /dev/null +++ b/.local/bin/wrappers/prettier @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which prettier --all | grep --invert-match "local/bin" | head -n 1) --config "$HOME/.config/prettier/config.yaml" "$@"; diff --git a/.local/bin/wrappers/sbcl b/.local/bin/wrappers/sbcl new file mode 100755 index 0000000..b5ba6ea --- /dev/null +++ b/.local/bin/wrappers/sbcl @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which sbcl --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/scribus b/.local/bin/wrappers/scribus new file mode 100755 index 0000000..c77ac6b --- /dev/null +++ b/.local/bin/wrappers/scribus @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which scribus --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/stalonetray b/.local/bin/wrappers/stalonetray new file mode 100755 index 0000000..bcdf87c --- /dev/null +++ b/.local/bin/wrappers/stalonetray @@ -0,0 +1,6 @@ +#!/bin/sh -eu +$(which stalonetray --all | grep --invert-match "local/bin" | head -n 1) \ + --background '#000000' \ + --window-type normal \ + --window-strut none \ + "$@"; diff --git a/.local/bin/wrappers/stylelint b/.local/bin/wrappers/stylelint new file mode 100755 index 0000000..d0efb27 --- /dev/null +++ b/.local/bin/wrappers/stylelint @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which stylelint --all | grep --invert-match "local/bin" | head -n 1) --config "$HOME/.config/stylelint/config.js" "$@"; diff --git a/.local/bin/wrappers/svn b/.local/bin/wrappers/svn new file mode 100755 index 0000000..77fdbdb --- /dev/null +++ b/.local/bin/wrappers/svn @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which svn --all | grep --invert-match "local/bin" | head -n 1) --config-dir "$XDG_CONFIG_HOME"/subversion "$@"; diff --git a/.local/bin/wrappers/swc b/.local/bin/wrappers/swc new file mode 100755 index 0000000..c352781 --- /dev/null +++ b/.local/bin/wrappers/swc @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which swc --all | grep --invert-match "local/bin" | head --lines 1) "$@" --config-file "$HOME/.config/swc/swc.json" diff --git a/.local/bin/wrappers/tiemu b/.local/bin/wrappers/tiemu new file mode 100755 index 0000000..310f7dc --- /dev/null +++ b/.local/bin/wrappers/tiemu @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which tiemu --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/tilp b/.local/bin/wrappers/tilp new file mode 100755 index 0000000..4f07917 --- /dev/null +++ b/.local/bin/wrappers/tilp @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which tilp --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/treesheets b/.local/bin/wrappers/treesheets new file mode 100755 index 0000000..956277b --- /dev/null +++ b/.local/bin/wrappers/treesheets @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which treesheets --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/vale b/.local/bin/wrappers/vale new file mode 100755 index 0000000..f5863f2 --- /dev/null +++ b/.local/bin/wrappers/vale @@ -0,0 +1,16 @@ +#!/bin/sh -eu + +directory="$XDG_CONFIG_HOME/vale" +styles="$directory/styles" +mkdir -p "$directory" "$styles"; + +if [ "${1:-}" = "--update" ]; then + svn export --force https://github.com/errata-ai/Google/trunk/Google "$styles/google"; + svn export --force https://github.com/errata-ai/joblint/trunk/Joblint "$styles/joblint"; + svn export --force https://github.com/errata-ai/Microsoft/trunk/Microsoft "$styles/microsoft"; + svn export --force https://github.com/errata-ai/proselint/trunk/proselint "$styles/proselint"; + svn export --force https://github.com/errata-ai/write-good/trunk/write-good "$styles/write-good"; + exit; +fi + +$(which vale --all | grep --invert-match "local/bin" | head -n 1) --config "$directory/vale.ini" "$@"; diff --git a/.local/bin/wrappers/w3m b/.local/bin/wrappers/w3m new file mode 100755 index 0000000..f2c62b4 --- /dev/null +++ b/.local/bin/wrappers/w3m @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which w3m --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/wget b/.local/bin/wrappers/wget new file mode 100755 index 0000000..9f06fce --- /dev/null +++ b/.local/bin/wrappers/wget @@ -0,0 +1,2 @@ +#!/bin/sh -eu +$(which wget --all | grep --invert-match "local/bin" | head -n 1) --hsts-file "$HOME/.cache/wget.history" "$@"; diff --git a/.local/bin/wrappers/xournalpp b/.local/bin/wrappers/xournalpp new file mode 100755 index 0000000..3601bbf --- /dev/null +++ b/.local/bin/wrappers/xournalpp @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which xournalpp --all | grep --invert-match "local/bin" | head -n 1) "$@"; diff --git a/.local/bin/wrappers/xsane b/.local/bin/wrappers/xsane new file mode 100755 index 0000000..2edfe09 --- /dev/null +++ b/.local/bin/wrappers/xsane @@ -0,0 +1,2 @@ +#!/bin/sh -eu +HOME=$HOME/.config && $(which xsane --all | grep --invert-match "local/bin" | head -n 1) "$@"; |