diff options
author | ene <ene@sils.li> | 2023-02-25 08:10:59 +0100 |
---|---|---|
committer | ene <ene@sils.li> | 2023-02-25 08:10:59 +0100 |
commit | 05e674a5d1a965040a6e030c617840c9d567f173 (patch) | |
tree | 113eb004a222be4f9f29f4df04582a19ffdc4052 /home-manager/packages | |
parent | Feat(packages): Add my scripts (diff) | |
download | nixos-config-05e674a5d1a965040a6e030c617840c9d567f173.tar.gz nixos-config-05e674a5d1a965040a6e030c617840c9d567f173.zip |
Fix(packages): Don't use hardcoded library paths
Diffstat (limited to '')
32 files changed, 53 insertions, 53 deletions
diff --git a/home-manager/packages/scripts/apps/aumo b/home-manager/packages/scripts/apps/aumo index 863dcf32..df12c111 100755 --- a/home-manager/packages/scripts/apps/aumo +++ b/home-manager/packages/scripts/apps/aumo @@ -1,8 +1,8 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2046,2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH if [ "$1" = "-u" ];then udisksctl unmount -b $(cat $HOME/.cache/aumo/mnt_disk); exit 0; fi all_available_disks=$(mktemp) diff --git a/home-manager/packages/scripts/apps/con2pdf b/home-manager/packages/scripts/apps/con2pdf index 7d23fe82..30800043 100755 --- a/home-manager/packages/scripts/apps/con2pdf +++ b/home-manager/packages/scripts/apps/con2pdf @@ -1,7 +1,7 @@ -#! /bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH # Vars diff --git a/home-manager/packages/scripts/apps/deprecated/riR/config b/home-manager/packages/scripts/apps/deprecated/riR/config index b5607a16..fd6cbc89 100755 --- a/home-manager/packages/scripts/apps/deprecated/riR/config +++ b/home-manager/packages/scripts/apps/deprecated/riR/config @@ -1,6 +1,6 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH git_repo_home="$XDG_CONFIG_HOME"/git_repo [ -d "$git_repo_home" ] || mkdir "$git_repo_home" diff --git a/home-manager/packages/scripts/apps/deprecated/riR/lf-move-fill(has_been_riR) b/home-manager/packages/scripts/apps/deprecated/riR/lf-move-fill(has_been_riR) index 8a216b6b..8071dfa7 100755 --- a/home-manager/packages/scripts/apps/deprecated/riR/lf-move-fill(has_been_riR) +++ b/home-manager/packages/scripts/apps/deprecated/riR/lf-move-fill(has_been_riR) @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH tmp=$(mktemp); out=$(mktemp); diff --git a/home-manager/packages/scripts/deprecated/comp b/home-manager/packages/scripts/deprecated/comp index e29cae5c..15b005c8 100755 --- a/home-manager/packages/scripts/deprecated/comp +++ b/home-manager/packages/scripts/deprecated/comp @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH file=$HOME/hi tmp=$(mktemp) diff --git a/home-manager/packages/scripts/deprecated/git-init b/home-manager/packages/scripts/deprecated/git-init index fd1f5399..1d007b6f 100755 --- a/home-manager/packages/scripts/deprecated/git-init +++ b/home-manager/packages/scripts/deprecated/git-init @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH cp -R $HOME/.local/share/git-template/* "$(pwd)" [ -d ./.git ] || git init diff --git a/home-manager/packages/scripts/deprecated/java_compiler/clpa b/home-manager/packages/scripts/deprecated/java_compiler/clpa index c33ed025..0c8ba47a 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/clpa +++ b/home-manager/packages/scripts/deprecated/java_compiler/clpa @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null pw=$(pwd) diff --git a/home-manager/packages/scripts/deprecated/java_compiler/fmt b/home-manager/packages/scripts/deprecated/java_compiler/fmt index 4dce0c02..7bfe920b 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/fmt +++ b/home-manager/packages/scripts/deprecated/java_compiler/fmt @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH cd ..; pw=$(pwd); diff --git a/home-manager/packages/scripts/deprecated/java_compiler/jc b/home-manager/packages/scripts/deprecated/java_compiler/jc index 8f95108c..d1c867d4 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/jc +++ b/home-manager/packages/scripts/deprecated/java_compiler/jc @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 cd .. diff --git a/home-manager/packages/scripts/deprecated/java_compiler/jj b/home-manager/packages/scripts/deprecated/java_compiler/jj index 6d6a5aed..3f3254ba 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/jj +++ b/home-manager/packages/scripts/deprecated/java_compiler/jj @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 noColor=yes . ./lib diff --git a/home-manager/packages/scripts/deprecated/java_compiler/lib b/home-manager/packages/scripts/deprecated/java_compiler/lib index 8446d1ce..cf3e0203 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/lib +++ b/home-manager/packages/scripts/deprecated/java_compiler/lib @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2059,SC2066 diff --git a/home-manager/packages/scripts/deprecated/java_compiler/new b/home-manager/packages/scripts/deprecated/java_compiler/new index 577558b0..22f871f5 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/new +++ b/home-manager/packages/scripts/deprecated/java_compiler/new @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null . ./lib diff --git a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack index bc9db9de..0cd9864e 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack +++ b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jc-no-pack @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 . ./lib diff --git a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack index 90a9e74e..d476ce52 100755 --- a/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack +++ b/home-manager/packages/scripts/deprecated/java_compiler/no-pack/jj-no-pack @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 . ./lib diff --git a/home-manager/packages/scripts/deprecated/remove_start b/home-manager/packages/scripts/deprecated/remove_start index b745a4d1..1b4c4e6e 100755 --- a/home-manager/packages/scripts/deprecated/remove_start +++ b/home-manager/packages/scripts/deprecated/remove_start @@ -3,7 +3,7 @@ cd "$i" || exit 1 rm -r /tmp/scr mkdir /tmp/scr/ -star='#!/bin/sh\n\n# shellcheck source=/dev/null\n. /root/.local/lib/shell/lib' +star='#! /usr/bin/env dash\n\n# shellcheck source=/dev/null\n. /root/.local/lib/shell/lib' for i in "$1"/*;do awk ' diff --git a/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo b/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo index eb204b94..f61e297d 100755 --- a/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo +++ b/home-manager/packages/scripts/deprecated/shell_script_os_setup/lo @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH stty -ctlecho diff --git a/home-manager/packages/scripts/small_functions/deprecated/order b/home-manager/packages/scripts/small_functions/deprecated/order index 1471fcbd..e87d409d 100755 --- a/home-manager/packages/scripts/small_functions/deprecated/order +++ b/home-manager/packages/scripts/small_functions/deprecated/order @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH file=$HOME/hi3 cat $file | clean | awk '{ diff --git a/home-manager/packages/scripts/small_functions/deprecated/ply-pre b/home-manager/packages/scripts/small_functions/deprecated/ply-pre index 8e40486c..7053ac62 100755 --- a/home-manager/packages/scripts/small_functions/deprecated/ply-pre +++ b/home-manager/packages/scripts/small_functions/deprecated/ply-pre @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH ## Preview Plymouth Splash ## diff --git a/home-manager/packages/scripts/small_functions/dldragon b/home-manager/packages/scripts/small_functions/dldragon index b15390b8..ea75c362 100755 --- a/home-manager/packages/scripts/small_functions/dldragon +++ b/home-manager/packages/scripts/small_functions/dldragon @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # Provides the ability to download a file by dropping it into a window url=$(dragon -t -x) diff --git a/home-manager/packages/scripts/small_functions/gtk-themes b/home-manager/packages/scripts/small_functions/gtk-themes index 27303c27..5c1049ed 100755 --- a/home-manager/packages/scripts/small_functions/gtk-themes +++ b/home-manager/packages/scripts/small_functions/gtk-themes @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH diff --git a/home-manager/packages/scripts/small_functions/screen_shot b/home-manager/packages/scripts/small_functions/screen_shot index 152feb36..732f3e76 100755 --- a/home-manager/packages/scripts/small_functions/screen_shot +++ b/home-manager/packages/scripts/small_functions/screen_shot @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH grim -g "$(slurp)" ~/media/pictures/screenshots/"$(date +%s)".png && alacritty -e llp -command ":{{ set sortby atime; set reverse!; }}" ~/media/pictures/screenshots diff --git a/home-manager/packages/scripts/wrappers/backsnap b/home-manager/packages/scripts/wrappers/backsnap index 3487ba57..cd08045d 100755 --- a/home-manager/packages/scripts/wrappers/backsnap +++ b/home-manager/packages/scripts/wrappers/backsnap @@ -1,3 +1,3 @@ -#! /bin/sh +#! /usr/bin/env dash snap-sync --noconfirm -u d1c6e0f6-1837-40fd-bb29-251d5ea0ddb0 umount /run/dt/d1c6e0f6-1837-40fd-bb29-251d5ea0ddb0 diff --git a/home-manager/packages/scripts/wrappers/deprecated/clippy b/home-manager/packages/scripts/wrappers/deprecated/clippy index 89f8554a..ec21ba07 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/clippy +++ b/home-manager/packages/scripts/wrappers/deprecated/clippy @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH tmp=$(mktemp); cat << EOF > $tmp; diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp index 9fdfd8e7..5c451ad8 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp +++ b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacComp @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF index 09d0329c..09ea8ae5 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF +++ b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacF @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH while true diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS index 20947864..99b0e9a5 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS +++ b/home-manager/packages/scripts/wrappers/deprecated/pacman/pacS @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH while true do diff --git a/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan b/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan index 2229ef23..8beef249 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan +++ b/home-manager/packages/scripts/wrappers/deprecated/pacman/packages_scan @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH tmp=$(tmp 'pacman -Qq'); output=$(mktmp); diff --git a/home-manager/packages/scripts/wrappers/deprecated/xi b/home-manager/packages/scripts/wrappers/deprecated/xi index c2f58528..7d8e2639 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/xi +++ b/home-manager/packages/scripts/wrappers/deprecated/xi @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH export XKB_DEFAULT_LAYOUT="mykeys" exec river diff --git a/home-manager/packages/scripts/wrappers/deprecated/xs b/home-manager/packages/scripts/wrappers/deprecated/xs index 50908071..954cbca9 100755 --- a/home-manager/packages/scripts/wrappers/deprecated/xs +++ b/home-manager/packages/scripts/wrappers/deprecated/xs @@ -1,4 +1,4 @@ -#!/bin/sh +#! /usr/bin/env dash # # This is just a sample implementation of a slightly less primitive diff --git a/home-manager/packages/scripts/wrappers/spodi b/home-manager/packages/scripts/wrappers/spodi index 9c440340..b3cf9013 100755 --- a/home-manager/packages/scripts/wrappers/spodi +++ b/home-manager/packages/scripts/wrappers/spodi @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH DOWN_DIR=/home/dt/media/playlist/down/ diff --git a/home-manager/packages/scripts/wrappers/virsh-del b/home-manager/packages/scripts/wrappers/virsh-del index f2bd8e3d..1ec930bf 100755 --- a/home-manager/packages/scripts/wrappers/virsh-del +++ b/home-manager/packages/scripts/wrappers/virsh-del @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH LIB_TEMP_DIR_FOR_SCRIPT=$(mktemp -d); diff --git a/home-manager/packages/scripts/wrappers/yti b/home-manager/packages/scripts/wrappers/yti index 97350b37..47e8cf3a 100755 --- a/home-manager/packages/scripts/wrappers/yti +++ b/home-manager/packages/scripts/wrappers/yti @@ -1,7 +1,7 @@ -#!/bin/sh +#! /usr/bin/env dash # shellcheck disable=SC2086 # shellcheck source=/dev/null -. ~/.local/lib/shell/lib +. %SHELL_LIBRARY_PATH DOWN_DIR=/home/dt/media/playlist/down/ |