aboutsummaryrefslogtreecommitdiff
path: root/home/dot_local
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2026-08-22 21:36:56 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2026-08-22 21:36:56 +0200
commit57281d4490e257c1f6ed89940c751fd90d39cfd2 (patch)
treef8af01ff60e04b78ca3f22a5edb1b2f631c9674b /home/dot_local
parent21f32ce419993818444736f9e6780278acee375e (diff)
the great shebang rectification
Diffstat (limited to 'home/dot_local')
-rw-r--r--home/dot_local/share/Anki2/addons21/mode/__init__.py2
-rw-r--r--home/dot_local/share/bin/executable_162
-rw-r--r--home/dot_local/share/bin/executable_=2
-rw-r--r--home/dot_local/share/bin/executable_addtoqueue2
-rw-r--r--home/dot_local/share/bin/executable_addtorrent2
-rw-r--r--home/dot_local/share/bin/executable_androidwifistore2pass2
-rw-r--r--home/dot_local/share/bin/executable_ansi2polybar2
-rw-r--r--home/dot_local/share/bin/executable_bgcol2
-rw-r--r--home/dot_local/share/bin/executable_bootloader2
-rw-r--r--home/dot_local/share/bin/executable_brightness2
-rw-r--r--home/dot_local/share/bin/executable_caffeine2
-rw-r--r--home/dot_local/share/bin/executable_cc1080p302
-rw-r--r--home/dot_local/share/bin/executable_cc720p602
-rw-r--r--home/dot_local/share/bin/executable_ccpreview2
-rw-r--r--home/dot_local/share/bin/executable_clean2
-rw-r--r--home/dot_local/share/bin/executable_darkroom2
-rw-r--r--home/dot_local/share/bin/executable_dbg2
-rw-r--r--home/dot_local/share/bin/executable_dbg_xprop2
-rw-r--r--home/dot_local/share/bin/executable_decsync2plain2
-rw-r--r--home/dot_local/share/bin/executable_delta2
-rw-r--r--home/dot_local/share/bin/executable_discord2
-rw-r--r--home/dot_local/share/bin/executable_dox-open2
-rw-r--r--home/dot_local/share/bin/executable_editor2
-rw-r--r--home/dot_local/share/bin/executable_extmon2
-rw-r--r--home/dot_local/share/bin/executable_fcitx5-temp-off2
-rw-r--r--home/dot_local/share/bin/executable_fcitx5-temp-restore2
-rw-r--r--home/dot_local/share/bin/executable_ffmpeg-resize2
-rw-r--r--home/dot_local/share/bin/executable_folder2cd2
-rw-r--r--home/dot_local/share/bin/executable_fontfix2
-rw-r--r--home/dot_local/share/bin/executable_fork2
-rw-r--r--home/dot_local/share/bin/executable_fv2
-rw-r--r--home/dot_local/share/bin/executable_gpg-git.tmpl2
-rw-r--r--home/dot_local/share/bin/executable_helium-browser2
-rw-r--r--home/dot_local/share/bin/executable_hide2
-rw-r--r--home/dot_local/share/bin/executable_icalcat2
-rw-r--r--home/dot_local/share/bin/executable_installbd2
-rw-r--r--home/dot_local/share/bin/executable_java2
-rw-r--r--home/dot_local/share/bin/executable_kbindicator2
-rw-r--r--home/dot_local/share/bin/executable_khal2
-rw-r--r--home/dot_local/share/bin/executable_khard2
-rw-r--r--home/dot_local/share/bin/executable_labels2lrc2
-rw-r--r--home/dot_local/share/bin/executable_latex-doc2
-rw-r--r--home/dot_local/share/bin/executable_lf2
-rw-r--r--home/dot_local/share/bin/executable_lights2
-rw-r--r--home/dot_local/share/bin/executable_lock2
-rw-r--r--home/dot_local/share/bin/executable_lorem2
-rw-r--r--home/dot_local/share/bin/executable_lrc2labels2
-rw-r--r--home/dot_local/share/bin/executable_mbsync2
-rw-r--r--home/dot_local/share/bin/executable_mk2
-rw-r--r--home/dot_local/share/bin/executable_mktags2
-rw-r--r--home/dot_local/share/bin/executable_mozc-config-filter2
-rw-r--r--home/dot_local/share/bin/executable_nginx-dev2
-rw-r--r--home/dot_local/share/bin/executable_open2
-rw-r--r--home/dot_local/share/bin/executable_panic2
-rw-r--r--home/dot_local/share/bin/executable_pause2
-rw-r--r--home/dot_local/share/bin/executable_pdfsize2
-rw-r--r--home/dot_local/share/bin/executable_pew2
-rw-r--r--home/dot_local/share/bin/executable_podcast2m3u2
-rw-r--r--home/dot_local/share/bin/executable_preview2
-rw-r--r--home/dot_local/share/bin/executable_prompt2
-rw-r--r--home/dot_local/share/bin/executable_qrclip2
-rw-r--r--home/dot_local/share/bin/executable_reload2
-rw-r--r--home/dot_local/share/bin/executable_rofi2
-rw-r--r--home/dot_local/share/bin/executable_scene2
-rw-r--r--home/dot_local/share/bin/executable_screenrecord2
-rw-r--r--home/dot_local/share/bin/executable_screenwatch2
-rw-r--r--home/dot_local/share/bin/executable_sdk10_compiledb2
-rw-r--r--home/dot_local/share/bin/executable_set-default2
-rw-r--r--home/dot_local/share/bin/executable_setwacom2
-rw-r--r--home/dot_local/share/bin/executable_single2folder2
-rw-r--r--home/dot_local/share/bin/executable_spec2
-rw-r--r--home/dot_local/share/bin/executable_subrename2
-rw-r--r--home/dot_local/share/bin/executable_time2tsv2
-rw-r--r--home/dot_local/share/bin/executable_timefmt2
-rw-r--r--home/dot_local/share/bin/executable_timerep2
-rw-r--r--home/dot_local/share/bin/executable_timesum2
-rw-r--r--home/dot_local/share/bin/executable_toetsrooster2ical2
-rw-r--r--home/dot_local/share/bin/executable_vdirsyncer2
-rw-r--r--home/dot_local/share/bin/executable_venvgen2
-rw-r--r--home/dot_local/share/bin/executable_vodchat2
-rw-r--r--home/dot_local/share/bin/executable_wacommode2
-rw-r--r--home/dot_local/share/bin/executable_wacomshortcuts2
-rw-r--r--home/dot_local/share/bin/executable_wacomtouch2
-rw-r--r--home/dot_local/share/bin/executable_xbindkeys2
-rw-r--r--home/dot_local/share/bin/executable_yt-vod2
-rw-r--r--home/dot_local/share/mode/plug.d/10_lib2
-rw-r--r--home/dot_local/share/mode/plug.d/20_export_colors2
-rw-r--r--home/dot_local/share/mode/plug.d/20_export_mode2
-rw-r--r--home/dot_local/share/mode/plug.d/20_export_vim_theme2
-rw-r--r--home/dot_local/share/mode/plug.d/50_accent2
-rw-r--r--home/dot_local/share/mode/reload.d/brave2
-rw-r--r--home/dot_local/share/mode/reload.d/executable_dunst2
-rw-r--r--home/dot_local/share/mode/reload.d/executable_fcitx52
-rw-r--r--home/dot_local/share/mode/reload.d/executable_i32
-rw-r--r--home/dot_local/share/mode/reload.d/executable_nvim2
-rw-r--r--home/dot_local/share/mode/reload.d/executable_polybar2
-rw-r--r--home/dot_local/share/mode/reload.d/executable_term2
-rw-r--r--home/dot_local/share/mode/reload.d/gtk2
-rw-r--r--home/dot_local/share/mode/run_once_bootstrap.sh.tmpl2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_anki2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_chromium2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_discord2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_dunst2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_fcitx52
-rw-r--r--home/dot_local/share/mode/switch.d/executable_gtk2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_i32
-rw-r--r--home/dot_local/share/mode/switch.d/executable_kitty2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_mode2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_polybar2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_vim2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_wall2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_xrdb2
-rw-r--r--home/dot_local/share/mode/switch.d/executable_zathura2
-rw-r--r--home/dot_local/share/mode/themes/github-black2
-rw-r--r--home/dot_local/share/mode/themes/github-dark2
-rw-r--r--home/dot_local/share/mode/themes/github-light2
-rw-r--r--home/dot_local/share/mode/themes/rose-pine-dawn2
-rw-r--r--home/dot_local/share/mode/themes/xcode-dark2
-rw-r--r--home/dot_local/share/pass-extensions/executable_directory.bash2
-rw-r--r--home/dot_local/share/pass-extensions/executable_duplicates.bash2
-rw-r--r--home/dot_local/share/pass-extensions/executable_exit.bash2
-rw-r--r--home/dot_local/share/pass-extensions/executable_g.bash2
-rw-r--r--home/dot_local/share/pass-extensions/executable_names.bash2
-rw-r--r--home/dot_local/share/pass-extensions/executable_treasure.bash2
124 files changed, 124 insertions, 124 deletions
diff --git a/home/dot_local/share/Anki2/addons21/mode/__init__.py b/home/dot_local/share/Anki2/addons21/mode/__init__.py
index 78d0d58..071eb03 100644
--- a/home/dot_local/share/Anki2/addons21/mode/__init__.py
+++ b/home/dot_local/share/Anki2/addons21/mode/__init__.py
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
from aqt import mw
from aqt.utils import tr
from aqt.theme import Theme
diff --git a/home/dot_local/share/bin/executable_16 b/home/dot_local/share/bin/executable_16
index f8cc49f..5c632d5 100644
--- a/home/dot_local/share/bin/executable_16
+++ b/home/dot_local/share/bin/executable_16
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
python3 -c 'import sys ; print(f"{int(sys.stdin.read().strip()):x}")'
diff --git a/home/dot_local/share/bin/executable_= b/home/dot_local/share/bin/executable_=
index 5e69f91..2c4ccf4 100644
--- a/home/dot_local/share/bin/executable_=
+++ b/home/dot_local/share/bin/executable_=
@@ -1,4 +1,4 @@
-#!/bin/python3 --
+#!/usr/bin/env python3 --
from sys import argv as _argv
from os import environ as _environ, path as _path
from math import *
diff --git a/home/dot_local/share/bin/executable_addtoqueue b/home/dot_local/share/bin/executable_addtoqueue
index 535e250..92ed8e7 100644
--- a/home/dot_local/share/bin/executable_addtoqueue
+++ b/home/dot_local/share/bin/executable_addtoqueue
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
exec st -T "[floating]" -g 120x20 -e fzmp
diff --git a/home/dot_local/share/bin/executable_addtorrent b/home/dot_local/share/bin/executable_addtorrent
index bf238d6..35da3d7 100644
--- a/home/dot_local/share/bin/executable_addtorrent
+++ b/home/dot_local/share/bin/executable_addtorrent
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
progname="$(basename "$0")"
title="Torrent"
diff --git a/home/dot_local/share/bin/executable_androidwifistore2pass b/home/dot_local/share/bin/executable_androidwifistore2pass
index b03eb9d..0265fc6 100644
--- a/home/dot_local/share/bin/executable_androidwifistore2pass
+++ b/home/dot_local/share/bin/executable_androidwifistore2pass
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# Use xmlstarlet and ADB to pull WifiConfigStore.xml from a (rooted) Android
# phone and import wifi network passwords into pass. Tested with a rooted pixel
# 4a (sunfish) running LineageOS 21 (Android 14)
diff --git a/home/dot_local/share/bin/executable_ansi2polybar b/home/dot_local/share/bin/executable_ansi2polybar
index e543ce5..d37bc19 100644
--- a/home/dot_local/share/bin/executable_ansi2polybar
+++ b/home/dot_local/share/bin/executable_ansi2polybar
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# convert ansi escape codes into polybar/lemonbar color tags. this script makes
# some very dumb assumptions about which escape codes will be in the input
# stream, and is by no means complete, just good enough
diff --git a/home/dot_local/share/bin/executable_bgcol b/home/dot_local/share/bin/executable_bgcol
index 276e479..92eed09 100644
--- a/home/dot_local/share/bin/executable_bgcol
+++ b/home/dot_local/share/bin/executable_bgcol
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
COLOR="$1"
if [ -z "$COLOR" ] ; then
. "$XDG_CACHE_HOME/mode/state/theme"
diff --git a/home/dot_local/share/bin/executable_bootloader b/home/dot_local/share/bin/executable_bootloader
index c310d4f..73063cf 100644
--- a/home/dot_local/share/bin/executable_bootloader
+++ b/home/dot_local/share/bin/executable_bootloader
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
bye () {
echo "run me as root!"
diff --git a/home/dot_local/share/bin/executable_brightness b/home/dot_local/share/bin/executable_brightness
index c1c6139..9c96529 100644
--- a/home/dot_local/share/bin/executable_brightness
+++ b/home/dot_local/share/bin/executable_brightness
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
case "$*" in
+*) action="+" ;;
-*) action="-" ;;
diff --git a/home/dot_local/share/bin/executable_caffeine b/home/dot_local/share/bin/executable_caffeine
index 9901426..9b58a59 100644
--- a/home/dot_local/share/bin/executable_caffeine
+++ b/home/dot_local/share/bin/executable_caffeine
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
xset s off -dpms
reset() {
trap - EXIT
diff --git a/home/dot_local/share/bin/executable_cc1080p30 b/home/dot_local/share/bin/executable_cc1080p30
index 6619a17..173b51c 100644
--- a/home/dot_local/share/bin/executable_cc1080p30
+++ b/home/dot_local/share/bin/executable_cc1080p30
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
ccpreview 1920 1080 30
diff --git a/home/dot_local/share/bin/executable_cc720p60 b/home/dot_local/share/bin/executable_cc720p60
index c78fe6d..9f811ba 100644
--- a/home/dot_local/share/bin/executable_cc720p60
+++ b/home/dot_local/share/bin/executable_cc720p60
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
ccpreview 1280 720 60
diff --git a/home/dot_local/share/bin/executable_ccpreview b/home/dot_local/share/bin/executable_ccpreview
index 9f13acc..b06c45f 100644
--- a/home/dot_local/share/bin/executable_ccpreview
+++ b/home/dot_local/share/bin/executable_ccpreview
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# capture card sysfs device path
SYSFS_PATH="/devices/pci0000:00/0000:00:14.0/usb1/1-12"
diff --git a/home/dot_local/share/bin/executable_clean b/home/dot_local/share/bin/executable_clean
index 8c824f1..da7fab7 100644
--- a/home/dot_local/share/bin/executable_clean
+++ b/home/dot_local/share/bin/executable_clean
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ -n "$UB_SOCKET" ] && ueberzugpp cmd --socket "$UB_SOCKET" --action remove --identifier PREVIEW
diff --git a/home/dot_local/share/bin/executable_darkroom b/home/dot_local/share/bin/executable_darkroom
index 28e2589..dd69711 100644
--- a/home/dot_local/share/bin/executable_darkroom
+++ b/home/dot_local/share/bin/executable_darkroom
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
SCREENS="`xrandr | grep ' connected ' | cut -f1 -d' '`"
diff --git a/home/dot_local/share/bin/executable_dbg b/home/dot_local/share/bin/executable_dbg
index d042ba5..7976162 100644
--- a/home/dot_local/share/bin/executable_dbg
+++ b/home/dot_local/share/bin/executable_dbg
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
GDB="arm-none-eabi-gdb"
found_executable=false
diff --git a/home/dot_local/share/bin/executable_dbg_xprop b/home/dot_local/share/bin/executable_dbg_xprop
index 1aa0b0c..962fdc1 100644
--- a/home/dot_local/share/bin/executable_dbg_xprop
+++ b/home/dot_local/share/bin/executable_dbg_xprop
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# debug xprop
#
# runs xprop for all newly created windows (when mouse capture is not
diff --git a/home/dot_local/share/bin/executable_decsync2plain b/home/dot_local/share/bin/executable_decsync2plain
index 745a1c2..ace2e54 100644
--- a/home/dot_local/share/bin/executable_decsync2plain
+++ b/home/dot_local/share/bin/executable_decsync2plain
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
EXEC_NAME="$(basename "$0")"
EXTENSION="$1"
diff --git a/home/dot_local/share/bin/executable_delta b/home/dot_local/share/bin/executable_delta
index 83fb629..ba38faa 100644
--- a/home/dot_local/share/bin/executable_delta
+++ b/home/dot_local/share/bin/executable_delta
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ -e "$XDG_CACHE_HOME/mode/state/vars" ] && . "$XDG_CACHE_HOME/mode/state/vars"
[ "$mode" = "light" ] && theme="--light" || theme="--dark"
exec /bin/delta "$theme" "$@"
diff --git a/home/dot_local/share/bin/executable_discord b/home/dot_local/share/bin/executable_discord
index d2f894b..c72c375 100644
--- a/home/dot_local/share/bin/executable_discord
+++ b/home/dot_local/share/bin/executable_discord
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
installbd
exec /usr/bin/discord "$@"
diff --git a/home/dot_local/share/bin/executable_dox-open b/home/dot_local/share/bin/executable_dox-open
index 493c435..b259c27 100644
--- a/home/dot_local/share/bin/executable_dox-open
+++ b/home/dot_local/share/bin/executable_dox-open
@@ -1,4 +1,4 @@
-#!/bin/node
+#!/usr/bin/env node
import { glob, readFile } from 'node:fs/promises';
import { spawn } from 'node:child_process';
diff --git a/home/dot_local/share/bin/executable_editor b/home/dot_local/share/bin/executable_editor
index d4bf664..277fbec 100644
--- a/home/dot_local/share/bin/executable_editor
+++ b/home/dot_local/share/bin/executable_editor
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
exec nvim -p "$@"
diff --git a/home/dot_local/share/bin/executable_extmon b/home/dot_local/share/bin/executable_extmon
index dcaa0b3..92d6cb7 100644
--- a/home/dot_local/share/bin/executable_extmon
+++ b/home/dot_local/share/bin/executable_extmon
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
out_int="eDP1"
out_ext="HDMI1"
res_int="1366x768"
diff --git a/home/dot_local/share/bin/executable_fcitx5-temp-off b/home/dot_local/share/bin/executable_fcitx5-temp-off
index b2f8ea9..e95e69f 100644
--- a/home/dot_local/share/bin/executable_fcitx5-temp-off
+++ b/home/dot_local/share/bin/executable_fcitx5-temp-off
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mkdir -p "$XDG_DATA_HOME/fcitx5"
fcitx5-remote > "$XDG_DATA_HOME/fcitx5/state"
fcitx5-remote -n > "$XDG_DATA_HOME/fcitx5/ime_name"
diff --git a/home/dot_local/share/bin/executable_fcitx5-temp-restore b/home/dot_local/share/bin/executable_fcitx5-temp-restore
index d00b11c..4cc77ad 100644
--- a/home/dot_local/share/bin/executable_fcitx5-temp-restore
+++ b/home/dot_local/share/bin/executable_fcitx5-temp-restore
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ ! -e "$XDG_DATA_HOME/fcitx5/state" ] && exit
[ ! -e "$XDG_DATA_HOME/fcitx5/ime_name" ] && exit
diff --git a/home/dot_local/share/bin/executable_ffmpeg-resize b/home/dot_local/share/bin/executable_ffmpeg-resize
index 4270278..4a1210b 100644
--- a/home/dot_local/share/bin/executable_ffmpeg-resize
+++ b/home/dot_local/share/bin/executable_ffmpeg-resize
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
#
# Re-encode a video to a target size in MB.
# Example:
diff --git a/home/dot_local/share/bin/executable_folder2cd b/home/dot_local/share/bin/executable_folder2cd
index 558c6ab..0dd629d 100644
--- a/home/dot_local/share/bin/executable_folder2cd
+++ b/home/dot_local/share/bin/executable_folder2cd
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
FILEEXT="flac"
set -e
diff --git a/home/dot_local/share/bin/executable_fontfix b/home/dot_local/share/bin/executable_fontfix
index 1c9beaf..66cc869 100644
--- a/home/dot_local/share/bin/executable_fontfix
+++ b/home/dot_local/share/bin/executable_fontfix
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
import os
import sys
diff --git a/home/dot_local/share/bin/executable_fork b/home/dot_local/share/bin/executable_fork
index 63e7541..1b1d56d 100644
--- a/home/dot_local/share/bin/executable_fork
+++ b/home/dot_local/share/bin/executable_fork
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
(setsid "$@" > /dev/null 2> /dev/null &)
diff --git a/home/dot_local/share/bin/executable_fv b/home/dot_local/share/bin/executable_fv
index 5ce4f2e..d0d7b51 100644
--- a/home/dot_local/share/bin/executable_fv
+++ b/home/dot_local/share/bin/executable_fv
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
fzf --multi --print0 | exec xargs -r0 $EDITOR
diff --git a/home/dot_local/share/bin/executable_gpg-git.tmpl b/home/dot_local/share/bin/executable_gpg-git.tmpl
index 8d9e600..d78200e 100644
--- a/home/dot_local/share/bin/executable_gpg-git.tmpl
+++ b/home/dot_local/share/bin/executable_gpg-git.tmpl
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
{{- with ( dig "git" "gpg_id" nil . ) }}
GPG_KEY_ID="{{ . }}"
GPG_KEY_PASSPHRASE="$(pass "gpg/$GPG_KEY_ID.asc" | head -n1)"
diff --git a/home/dot_local/share/bin/executable_helium-browser b/home/dot_local/share/bin/executable_helium-browser
index 96e1864..66429c8 100644
--- a/home/dot_local/share/bin/executable_helium-browser
+++ b/home/dot_local/share/bin/executable_helium-browser
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
/usr/bin/helium-browser \
--load-extension="$XDG_CACHE_HOME/mode/chromium" \
--password-store=basic \
diff --git a/home/dot_local/share/bin/executable_hide b/home/dot_local/share/bin/executable_hide
index cb49be0..027eba3 100644
--- a/home/dot_local/share/bin/executable_hide
+++ b/home/dot_local/share/bin/executable_hide
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
for file in "$@" ; do
mv "$file" ".$file"
done
diff --git a/home/dot_local/share/bin/executable_icalcat b/home/dot_local/share/bin/executable_icalcat
index 2e89afd..b3768a7 100644
--- a/home/dot_local/share/bin/executable_icalcat
+++ b/home/dot_local/share/bin/executable_icalcat
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
cat << "EOF"
BEGIN:VCALENDAR
VERSION:2.0
diff --git a/home/dot_local/share/bin/executable_installbd b/home/dot_local/share/bin/executable_installbd
index ae17002..70483de 100644
--- a/home/dot_local/share/bin/executable_installbd
+++ b/home/dot_local/share/bin/executable_installbd
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
discord_path="$(dirname "$(find "$XDG_CONFIG_HOME/discord" -name core.asar)")"
discord_version="$(echo "$discord_path" | tr '/' '\n' | tac | sed -n '/^[0-9.]\+$/p' | head -n1)"
betterdiscord_path="$XDG_CONFIG_HOME/BetterDiscord/data/betterdiscord.asar"
diff --git a/home/dot_local/share/bin/executable_java b/home/dot_local/share/bin/executable_java
index 06fdb61..671f429 100644
--- a/home/dot_local/share/bin/executable_java
+++ b/home/dot_local/share/bin/executable_java
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
export _JAVA_AWT_WM_NONREPARENTING=1
exec /usr/bin/java \
-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java" \
diff --git a/home/dot_local/share/bin/executable_kbindicator b/home/dot_local/share/bin/executable_kbindicator
index 6ffcd53..0ea338e 100644
--- a/home/dot_local/share/bin/executable_kbindicator
+++ b/home/dot_local/share/bin/executable_kbindicator
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
query_kb_layout() {
CONTROLLER="$(qdbus 'org.fcitx.Fcitx5' '/controller' 'org.fcitx.Fcitx.Controller1.CurrentInputMethod')"
case $CONTROLLER in
diff --git a/home/dot_local/share/bin/executable_khal b/home/dot_local/share/bin/executable_khal
index 71e5392..761e293 100644
--- a/home/dot_local/share/bin/executable_khal
+++ b/home/dot_local/share/bin/executable_khal
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CFG="$XDG_CONFIG_HOME/khal/config"
if [ "$CFG" -ot "$XDG_CONFIG_HOME/khal/config.sh" ] ; then
cat - "$XDG_CONFIG_HOME/khal/base" << "EOF" > "$CFG"
diff --git a/home/dot_local/share/bin/executable_khard b/home/dot_local/share/bin/executable_khard
index cb02889..b8c08e7 100644
--- a/home/dot_local/share/bin/executable_khard
+++ b/home/dot_local/share/bin/executable_khard
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CFG="$XDG_CONFIG_HOME/khard/khard.conf"
if [ "$CFG" -ot "$XDG_CONFIG_HOME/khard/config.sh" ] ; then
cat - "$XDG_CONFIG_HOME/khard/base" << "EOF" > "$CFG"
diff --git a/home/dot_local/share/bin/executable_labels2lrc b/home/dot_local/share/bin/executable_labels2lrc
index c8abc1c..9379417 100644
--- a/home/dot_local/share/bin/executable_labels2lrc
+++ b/home/dot_local/share/bin/executable_labels2lrc
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
import re
import sys
diff --git a/home/dot_local/share/bin/executable_latex-doc b/home/dot_local/share/bin/executable_latex-doc
index 6d785f1..f63239f 100644
--- a/home/dot_local/share/bin/executable_latex-doc
+++ b/home/dot_local/share/bin/executable_latex-doc
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
set -e
cd /usr/share/doc/texlive/latex
fork xdg-open "$(find . -name '*.pdf' | fzf)"
diff --git a/home/dot_local/share/bin/executable_lf b/home/dot_local/share/bin/executable_lf
index 430ae0b..a7ac57f 100644
--- a/home/dot_local/share/bin/executable_lf
+++ b/home/dot_local/share/bin/executable_lf
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
lf=/usr/bin/lf
UB_PID=0
diff --git a/home/dot_local/share/bin/executable_lights b/home/dot_local/share/bin/executable_lights
index 69ea06c..490d227 100644
--- a/home/dot_local/share/bin/executable_lights
+++ b/home/dot_local/share/bin/executable_lights
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
cmd="$1"
[ -z "$cmd" ] && cmd="toggle"
curl -X POST "$HASS_SERVER/api/webhook/$cmd"
diff --git a/home/dot_local/share/bin/executable_lock b/home/dot_local/share/bin/executable_lock
index 988c0ec..b49f040 100644
--- a/home/dot_local/share/bin/executable_lock
+++ b/home/dot_local/share/bin/executable_lock
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
xset s 15 15
slock
xset s default
diff --git a/home/dot_local/share/bin/executable_lorem b/home/dot_local/share/bin/executable_lorem
index 5ef3171..8b1541f 100644
--- a/home/dot_local/share/bin/executable_lorem
+++ b/home/dot_local/share/bin/executable_lorem
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
lorem_text="$(cat << EOF
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Gravida dictum fusce ut placerat orci nulla pellentesque. Laoreet id donec ultrices tincidunt arcu. Tortor aliquam nulla facilisi cras fermentum odio eu feugiat. A scelerisque purus semper eget duis at tellus. A iaculis at erat pellentesque adipiscing commodo elit at imperdiet. Arcu bibendum at varius vel pharetra vel turpis nunc eget. Euismod in pellentesque massa placerat duis. Lorem ipsum dolor sit amet consectetur adipiscing elit. Ultrices in iaculis nunc sed augue lacus. Vestibulum mattis ullamcorper velit sed. Adipiscing diam donec adipiscing tristique risus nec feugiat in fermentum. Elit pellentesque habitant morbi tristique senectus et. Ullamcorper sit amet risus nullam eget felis eget nunc lobortis. Vestibulum sed arcu non odio. Vestibulum sed arcu non odio euismod lacinia. Maecenas pharetra convallis posuere morbi leo urna molestie at. Sit amet consectetur adipiscing elit duis tristique sollicitudin. Curabitur gravida arcu ac tortor dignissim convallis aenean et. Nunc sed blandit libero volutpat sed cras ornare arcu. Eu nisl nunc mi ipsum faucibus vitae aliquet nec. Vehicula ipsum a arcu cursus. Arcu felis bibendum ut tristique et. Lobortis scelerisque fermentum dui faucibus in ornare. In arcu cursus euismod quis viverra nibh cras pulvinar. Integer malesuada nunc vel risus. Elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus. Viverra nam libero justo laoreet. Felis bibendum ut tristique et. Neque volutpat ac tincidunt vitae semper quis. Semper feugiat nibh sed pulvinar proin gravida hendrerit. Arcu bibendum at varius vel pharetra vel turpis. Tincidunt arcu non sodales neque. Id aliquet risus feugiat in ante metus. Eget magna fermentum iaculis eu non diam. Tempor id eu nisl nunc mi ipsum. Bibendum enim facilisis gravida neque convallis a cras semper. Parturient montes nascetur ridiculus mus. Tortor pretium viverra suspendisse potenti nullam ac. Mauris vitae ultricies leo integer malesuada nunc. Integer eget aliquet nibh praesent. Lorem ipsum dolor sit amet consectetur. Sit amet consectetur adipiscing elit pellentesque habitant. Habitant morbi tristique senectus et netus et malesuada. Cursus metus aliquam eleifend mi in nulla posuere sollicitudin. Tincidunt dui ut ornare lectus sit amet est. Elementum curabitur vitae nunc sed velit dignissim sodales. Senectus et netus et malesuada fames ac turpis egestas sed. Scelerisque viverra mauris in aliquam sem fringilla ut. Nunc eget lorem dolor sed viverra ipsum nunc aliquet. Egestas egestas fringilla phasellus faucibus scelerisque eleifend donec. Id neque aliquam vestibulum morbi blandit cursus. Enim tortor at auctor urna nunc id cursus metus. Dignissim convallis aenean et tortor at risus viverra. Et malesuada fames ac turpis egestas. Id cursus metus aliquam eleifend mi in nulla posuere. Egestas dui id ornare arcu odio. At elementum eu facilisis sed odio. Ultrices vitae auctor eu augue ut lectus arcu bibendum at. Amet volutpat consequat mauris nunc congue nisi vitae. Enim lobortis scelerisque fermentum dui faucibus in ornare quam. Libero id faucibus nisl tincidunt eget. Amet risus nullam eget felis eget. Ultricies mi eget mauris pharetra. Magnis dis parturient montes nascetur ridiculus mus mauris vitae. Lectus magna fringilla urna porttitor rhoncus dolor purus. Elementum eu facilisis sed odio morbi quis commodo odio. Tincidunt vitae semper quis lectus. Sollicitudin ac orci phasellus egestas tellus rutrum tellus pellentesque eu. Pretium viverra suspendisse potenti nullam ac. Sed egestas egestas fringilla phasellus faucibus scelerisque eleifend donec. Tortor consequat id porta nibh venenatis. Elit at imperdiet dui accumsan sit amet nulla. Sem viverra aliquet eget sit. At in tellus integer feugiat scelerisque varius morbi enim. Dictum fusce ut placerat orci nulla pellentesque. Sed risus pretium quam vulputate dignissim. Tincidunt dui ut ornare lectus sit amet est placerat in. Urna nec tincidunt praesent semper feugiat.
diff --git a/home/dot_local/share/bin/executable_lrc2labels b/home/dot_local/share/bin/executable_lrc2labels
index a23b299..e1af473 100644
--- a/home/dot_local/share/bin/executable_lrc2labels
+++ b/home/dot_local/share/bin/executable_lrc2labels
@@ -1,4 +1,4 @@
-#!/bin/gawk -f
+#!/usr/bin/env gawk -f
match($0, /^\[([0-9]{2}):([0-9]{2}\.[0-9]{2})\](.*)/, group) {
time = group[1] * 60 + group[2]
lyric = group[3]
diff --git a/home/dot_local/share/bin/executable_mbsync b/home/dot_local/share/bin/executable_mbsync
index 3f6aa09..c33e83e 100644
--- a/home/dot_local/share/bin/executable_mbsync
+++ b/home/dot_local/share/bin/executable_mbsync
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
/usr/bin/mbsync --config "$XDG_CONFIG_HOME/mbsyncrc" "$@"
diff --git a/home/dot_local/share/bin/executable_mk b/home/dot_local/share/bin/executable_mk
index 051235a..e2c3ab6 100644
--- a/home/dot_local/share/bin/executable_mk
+++ b/home/dot_local/share/bin/executable_mk
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
progname="$(basename "$0")"
showmode() {
! [ -n "$FROM_PROMPT" ] && return
diff --git a/home/dot_local/share/bin/executable_mktags b/home/dot_local/share/bin/executable_mktags
index 2daf25c..c90348d 100644
--- a/home/dot_local/share/bin/executable_mktags
+++ b/home/dot_local/share/bin/executable_mktags
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
from subprocess import run, DEVNULL
from pathlib import Path
diff --git a/home/dot_local/share/bin/executable_mozc-config-filter b/home/dot_local/share/bin/executable_mozc-config-filter
index 522275a..6e25492 100644
--- a/home/dot_local/share/bin/executable_mozc-config-filter
+++ b/home/dot_local/share/bin/executable_mozc-config-filter
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
yay_dir="$(yay -Pg | jq --raw-output .buildDir)"
config_proto="$(mktemp)"
git --git-dir="$yay_dir/mozc-ut/mozc" show HEAD:src/protocol/config.proto > "$config_proto"
diff --git a/home/dot_local/share/bin/executable_nginx-dev b/home/dot_local/share/bin/executable_nginx-dev
index 40e73ad..223737c 100644
--- a/home/dot_local/share/bin/executable_nginx-dev
+++ b/home/dot_local/share/bin/executable_nginx-dev
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
folder="$PWD"
port=8080
try_files='/$uri /$uri.html /$uri/index.html =404'
diff --git a/home/dot_local/share/bin/executable_open b/home/dot_local/share/bin/executable_open
index 7856488..d207dd1 100644
--- a/home/dot_local/share/bin/executable_open
+++ b/home/dot_local/share/bin/executable_open
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
case "$(file --mime-type -Lb "$1")" in
text/*)
exec $EDITOR -- "$@"
diff --git a/home/dot_local/share/bin/executable_panic b/home/dot_local/share/bin/executable_panic
index 7455786..c7c64b8 100644
--- a/home/dot_local/share/bin/executable_panic
+++ b/home/dot_local/share/bin/executable_panic
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
silent() {
"$@" 1>/dev/null 2> /dev/null &
}
diff --git a/home/dot_local/share/bin/executable_pause b/home/dot_local/share/bin/executable_pause
index 8eedbfb..e89c61f 100644
--- a/home/dot_local/share/bin/executable_pause
+++ b/home/dot_local/share/bin/executable_pause
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
ec=0
if [ $# -ge 1 ] ; then
"$@"
diff --git a/home/dot_local/share/bin/executable_pdfsize b/home/dot_local/share/bin/executable_pdfsize
index 14f940d..87d61ac 100644
--- a/home/dot_local/share/bin/executable_pdfsize
+++ b/home/dot_local/share/bin/executable_pdfsize
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
pdfinfo -box "$1" | awk '/^Page size:/ { print $3 * 2.54 / 72.0 * 10 "mm" " x " $5 * 2.54 / 72.0 * 10 "mm" }'
diff --git a/home/dot_local/share/bin/executable_pew b/home/dot_local/share/bin/executable_pew
index 70a9673..94043bf 100644
--- a/home/dot_local/share/bin/executable_pew
+++ b/home/dot_local/share/bin/executable_pew
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
kill -9 $(xprop | grep "_NET_WM_PID(CARDINAL)" | cut -d' ' -f3)
diff --git a/home/dot_local/share/bin/executable_podcast2m3u b/home/dot_local/share/bin/executable_podcast2m3u
index c3b692e..09d6803 100644
--- a/home/dot_local/share/bin/executable_podcast2m3u
+++ b/home/dot_local/share/bin/executable_podcast2m3u
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
URL="$1"
TAB="$(printf '\t')"
curl -sLo- "$URL" |\
diff --git a/home/dot_local/share/bin/executable_preview b/home/dot_local/share/bin/executable_preview
index 819938b..9cf2d2f 100644
--- a/home/dot_local/share/bin/executable_preview
+++ b/home/dot_local/share/bin/executable_preview
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ -n "$1" ] && FILE="$1" || {
echo "error: no input file"
exit 1
diff --git a/home/dot_local/share/bin/executable_prompt b/home/dot_local/share/bin/executable_prompt
index 7dde932..53d1b6b 100644
--- a/home/dot_local/share/bin/executable_prompt
+++ b/home/dot_local/share/bin/executable_prompt
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
fmt_esc() {
printf "%s$1%s" "$eo" "$ec"
}
diff --git a/home/dot_local/share/bin/executable_qrclip b/home/dot_local/share/bin/executable_qrclip
index 41bdab7..f4f5d36 100644
--- a/home/dot_local/share/bin/executable_qrclip
+++ b/home/dot_local/share/bin/executable_qrclip
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
maim -usb 4 -c 0,0,0 | zbarimg --raw --quiet -
diff --git a/home/dot_local/share/bin/executable_reload b/home/dot_local/share/bin/executable_reload
index 4b87658..e7197fa 100644
--- a/home/dot_local/share/bin/executable_reload
+++ b/home/dot_local/share/bin/executable_reload
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
i3-msg exit
diff --git a/home/dot_local/share/bin/executable_rofi b/home/dot_local/share/bin/executable_rofi
index d573764..98e0b61 100644
--- a/home/dot_local/share/bin/executable_rofi
+++ b/home/dot_local/share/bin/executable_rofi
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ -e "$XDG_CONFIG_HOME/gtk-4.0/env" ] && . "$XDG_CONFIG_HOME/gtk-4.0/env"
. "$XDG_CACHE_HOME/mode/state/vars"
exec /bin/rofi -no-default-config "$@"
diff --git a/home/dot_local/share/bin/executable_scene b/home/dot_local/share/bin/executable_scene
index c7faff6..cb84d5f 100644
--- a/home/dot_local/share/bin/executable_scene
+++ b/home/dot_local/share/bin/executable_scene
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CACHE_FILE="$XDG_CACHE_HOME/hass-scenes"
TAB="$(printf '\t')"
diff --git a/home/dot_local/share/bin/executable_screenrecord b/home/dot_local/share/bin/executable_screenrecord
index 1045a6e..eb99b86 100644
--- a/home/dot_local/share/bin/executable_screenrecord
+++ b/home/dot_local/share/bin/executable_screenrecord
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
exec giph "$@" \
--framerate 60 \
--select \
diff --git a/home/dot_local/share/bin/executable_screenwatch b/home/dot_local/share/bin/executable_screenwatch
index d556fac..8e44f39 100644
--- a/home/dot_local/share/bin/executable_screenwatch
+++ b/home/dot_local/share/bin/executable_screenwatch
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# repeatedly open terminal at $dev, even when $dev temporarily dissapears
dev="$1"
while inotifywait -qq -e create --include "$dev" "$(dirname "$dev")"; do
diff --git a/home/dot_local/share/bin/executable_sdk10_compiledb b/home/dot_local/share/bin/executable_sdk10_compiledb
index 6e62d47..a2f0d8c 100644
--- a/home/dot_local/share/bin/executable_sdk10_compiledb
+++ b/home/dot_local/share/bin/executable_sdk10_compiledb
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
from shlex import split, join
from sys import argv
diff --git a/home/dot_local/share/bin/executable_set-default b/home/dot_local/share/bin/executable_set-default
index d93f65c..bec105f 100644
--- a/home/dot_local/share/bin/executable_set-default
+++ b/home/dot_local/share/bin/executable_set-default
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
SCRIPT_NAME="$(basename "$0")"
usage() {
diff --git a/home/dot_local/share/bin/executable_setwacom b/home/dot_local/share/bin/executable_setwacom
index d7427a6..ae2f2ea 100644
--- a/home/dot_local/share/bin/executable_setwacom
+++ b/home/dot_local/share/bin/executable_setwacom
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
xsetwacom set "Wacom Intuos PT S 2 Pen stylus" $@
diff --git a/home/dot_local/share/bin/executable_single2folder b/home/dot_local/share/bin/executable_single2folder
index b3b2d30..747be28 100644
--- a/home/dot_local/share/bin/executable_single2folder
+++ b/home/dot_local/share/bin/executable_single2folder
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
file=$1
foldername=$(basename "$file" .flac)
diff --git a/home/dot_local/share/bin/executable_spec b/home/dot_local/share/bin/executable_spec
index 7d500dc..1651c0f 100644
--- a/home/dot_local/share/bin/executable_spec
+++ b/home/dot_local/share/bin/executable_spec
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
sox "$1" -n spectrogram -o - | feh --class floating -
diff --git a/home/dot_local/share/bin/executable_subrename b/home/dot_local/share/bin/executable_subrename
index ea6e446..071b2e7 100644
--- a/home/dot_local/share/bin/executable_subrename
+++ b/home/dot_local/share/bin/executable_subrename
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
file_extension=".srt"
season=1
episode=1
diff --git a/home/dot_local/share/bin/executable_time2tsv b/home/dot_local/share/bin/executable_time2tsv
index 4cc369d..8fe5ac4 100644
--- a/home/dot_local/share/bin/executable_time2tsv
+++ b/home/dot_local/share/bin/executable_time2tsv
@@ -1,4 +1,4 @@
-#!/bin/awk -f
+#!/usr/bin/env awk -f
# ignore empty or comment lines
/^\s*#/ { next }
diff --git a/home/dot_local/share/bin/executable_timefmt b/home/dot_local/share/bin/executable_timefmt
index c78fb95..ca0b36f 100644
--- a/home/dot_local/share/bin/executable_timefmt
+++ b/home/dot_local/share/bin/executable_timefmt
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $# -eq 0 ] && sum="$(cat)" || sum="$1"
sum="$(echo "$sum" | tr -dc '[:digit:]')"
if [ -z "$sum" ] ; then
diff --git a/home/dot_local/share/bin/executable_timerep b/home/dot_local/share/bin/executable_timerep
index e09d6c1..be7d965 100644
--- a/home/dot_local/share/bin/executable_timerep
+++ b/home/dot_local/share/bin/executable_timerep
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
TAB="$(printf '\t')"
time2tsv "$@" | sort -t"$TAB" -k4 | awk -F"$TAB" '
{
diff --git a/home/dot_local/share/bin/executable_timesum b/home/dot_local/share/bin/executable_timesum
index 6284ca4..8379376 100644
--- a/home/dot_local/share/bin/executable_timesum
+++ b/home/dot_local/share/bin/executable_timesum
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
TAB="$(printf '\t')"
time2tsv "$@" | cut -d"$TAB" -f3 | paste -sd+ - | bc | timefmt
diff --git a/home/dot_local/share/bin/executable_toetsrooster2ical b/home/dot_local/share/bin/executable_toetsrooster2ical
index 5de58cb..0f13ea2 100644
--- a/home/dot_local/share/bin/executable_toetsrooster2ical
+++ b/home/dot_local/share/bin/executable_toetsrooster2ical
@@ -1,4 +1,4 @@
-#!/bin/python3
+#!/usr/bin/env python3
import sys
import xlrd
diff --git a/home/dot_local/share/bin/executable_vdirsyncer b/home/dot_local/share/bin/executable_vdirsyncer
index 7869f19..6112823 100644
--- a/home/dot_local/share/bin/executable_vdirsyncer
+++ b/home/dot_local/share/bin/executable_vdirsyncer
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
CFG_TMP="$XDG_CONFIG_HOME/vdirsyncer/config"
mkfifo --mode 700 "$CFG_TMP"
"$XDG_CONFIG_HOME/vdirsyncer/config_gen" > "$CFG_TMP" &
diff --git a/home/dot_local/share/bin/executable_venvgen b/home/dot_local/share/bin/executable_venvgen
index 25f2c78..f9cabac 100644
--- a/home/dot_local/share/bin/executable_venvgen
+++ b/home/dot_local/share/bin/executable_venvgen
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# check if the input is valid
for arg in "$@" ; do
diff --git a/home/dot_local/share/bin/executable_vodchat b/home/dot_local/share/bin/executable_vodchat
index f233348..b5bdbf8 100644
--- a/home/dot_local/share/bin/executable_vodchat
+++ b/home/dot_local/share/bin/executable_vodchat
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
input_file="$1"
jq --raw-output '.replayChatItemAction.actions[].addChatItemAction.item.liveChatTextMessageRenderer | "[" + (.timestampUsec | tonumber / 1e6 | todateiso8601) + "] " + .authorName.simpleText + ": " + .message.runs[].text' "$input_file" 2>/dev/null
diff --git a/home/dot_local/share/bin/executable_wacommode b/home/dot_local/share/bin/executable_wacommode
index 2563895..85baeb8 100644
--- a/home/dot_local/share/bin/executable_wacommode
+++ b/home/dot_local/share/bin/executable_wacommode
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
defaults () {
# smoothing
diff --git a/home/dot_local/share/bin/executable_wacomshortcuts b/home/dot_local/share/bin/executable_wacomshortcuts
index 911e7ff..237c860 100644
--- a/home/dot_local/share/bin/executable_wacomshortcuts
+++ b/home/dot_local/share/bin/executable_wacomshortcuts
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# tablet buttons
xsetwacom set "Wacom Intuos PT S 2 Pad pad" Button 3 "key +super +alt +ctrl 1 -super -alt -ctrl"
diff --git a/home/dot_local/share/bin/executable_wacomtouch b/home/dot_local/share/bin/executable_wacomtouch
index 6c1e51a..5ba91f6 100644
--- a/home/dot_local/share/bin/executable_wacomtouch
+++ b/home/dot_local/share/bin/executable_wacomtouch
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# print if wacom tablet has touch on or off
bye() {
echo $1
diff --git a/home/dot_local/share/bin/executable_xbindkeys b/home/dot_local/share/bin/executable_xbindkeys
index 03a2c37..072b76f 100644
--- a/home/dot_local/share/bin/executable_xbindkeys
+++ b/home/dot_local/share/bin/executable_xbindkeys
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
exec /usr/bin/xbindkeys --file "$XDG_CONFIG_HOME/xbindkeys/main" "$@"
diff --git a/home/dot_local/share/bin/executable_yt-vod b/home/dot_local/share/bin/executable_yt-vod
index 0eb424d..af05441 100644
--- a/home/dot_local/share/bin/executable_yt-vod
+++ b/home/dot_local/share/bin/executable_yt-vod
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
vid="$1"
if [ -z "$vid" ] ; then
echo "usage: $0 <stream ID>"
diff --git a/home/dot_local/share/mode/plug.d/10_lib b/home/dot_local/share/mode/plug.d/10_lib
index b3a0276..4685d33 100644
--- a/home/dot_local/share/mode/plug.d/10_lib
+++ b/home/dot_local/share/mode/plug.d/10_lib
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# utility library functions
hex_to_rgb_array() { pastel format rgb "$1" | cut -c4- | tr '()' '[]' ; }
diff --git a/home/dot_local/share/mode/plug.d/20_export_colors b/home/dot_local/share/mode/plug.d/20_export_colors
index 0f53d1f..2560aca 100644
--- a/home/dot_local/share/mode/plug.d/20_export_colors
+++ b/home/dot_local/share/mode/plug.d/20_export_colors
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# colors must be #RRGGBB
check_color() {
(
diff --git a/home/dot_local/share/mode/plug.d/20_export_mode b/home/dot_local/share/mode/plug.d/20_export_mode
index c82c4e1..45d404d 100644
--- a/home/dot_local/share/mode/plug.d/20_export_mode
+++ b/home/dot_local/share/mode/plug.d/20_export_mode
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# $mode = "light" | "dark"
if [ "$mode" != 'dark' ] && [ "$mode" != 'light' ] ; then
pastel format hsl-lightness "$bg" | awk '{ exit($1 > 0.5) }'
diff --git a/home/dot_local/share/mode/plug.d/20_export_vim_theme b/home/dot_local/share/mode/plug.d/20_export_vim_theme
index 12304f3..55cf660 100644
--- a/home/dot_local/share/mode/plug.d/20_export_vim_theme
+++ b/home/dot_local/share/mode/plug.d/20_export_vim_theme
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# warn if the vim theme is not installed
if [ "$(find "$XDG_CONFIG_HOME/nvim" -name "$vim_theme_name.vim" | wc -l)" -eq 0 ] ; then
echo "warn: vim theme $vim_theme_name does not appear to be installed" >&2
diff --git a/home/dot_local/share/mode/plug.d/50_accent b/home/dot_local/share/mode/plug.d/50_accent
index ceb3209..9a32ddb 100644
--- a/home/dot_local/share/mode/plug.d/50_accent
+++ b/home/dot_local/share/mode/plug.d/50_accent
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# create accent color differently for dark/light mode
# do not generate accent color if already explicitly defined by theme
diff --git a/home/dot_local/share/mode/reload.d/brave b/home/dot_local/share/mode/reload.d/brave
index 6f6caeb..4f0f8d7 100644
--- a/home/dot_local/share/mode/reload.d/brave
+++ b/home/dot_local/share/mode/reload.d/brave
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# WIP
browser='brave'
driver='chromedriver'
diff --git a/home/dot_local/share/mode/reload.d/executable_dunst b/home/dot_local/share/mode/reload.d/executable_dunst
index 430320c..54e7058 100644
--- a/home/dot_local/share/mode/reload.d/executable_dunst
+++ b/home/dot_local/share/mode/reload.d/executable_dunst
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
respawn_daemon dunst
diff --git a/home/dot_local/share/mode/reload.d/executable_fcitx5 b/home/dot_local/share/mode/reload.d/executable_fcitx5
index cd27698..c8ef1db 100644
--- a/home/dot_local/share/mode/reload.d/executable_fcitx5
+++ b/home/dot_local/share/mode/reload.d/executable_fcitx5
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
fork fcitx5 -rd
diff --git a/home/dot_local/share/mode/reload.d/executable_i3 b/home/dot_local/share/mode/reload.d/executable_i3
index 96212cf..a97b392 100644
--- a/home/dot_local/share/mode/reload.d/executable_i3
+++ b/home/dot_local/share/mode/reload.d/executable_i3
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
fork i3-msg reload
diff --git a/home/dot_local/share/mode/reload.d/executable_nvim b/home/dot_local/share/mode/reload.d/executable_nvim
index cfabcc7..392fbb1 100644
--- a/home/dot_local/share/mode/reload.d/executable_nvim
+++ b/home/dot_local/share/mode/reload.d/executable_nvim
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
silent_fail_if_no_commmand nvr
nvr --serverlist | while read -r nvim_socket ; do
fork nvr --nostart --servername "$nvim_socket" -c 'source $XDG_CONFIG_HOME/nvim/mode.vim'
diff --git a/home/dot_local/share/mode/reload.d/executable_polybar b/home/dot_local/share/mode/reload.d/executable_polybar
index 1976811..c44c5d8 100644
--- a/home/dot_local/share/mode/reload.d/executable_polybar
+++ b/home/dot_local/share/mode/reload.d/executable_polybar
@@ -1,3 +1,3 @@
-#!/bin/sh
+#!/usr/bin/env sh
fork polybar-msg cmd restart
diff --git a/home/dot_local/share/mode/reload.d/executable_term b/home/dot_local/share/mode/reload.d/executable_term
index b711d56..43d88e5 100644
--- a/home/dot_local/share/mode/reload.d/executable_term
+++ b/home/dot_local/share/mode/reload.d/executable_term
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
escape_msgs="$(cat << EOF | tr -d '\n'
\033]11;$bg\007
\033]10;$fg\007
diff --git a/home/dot_local/share/mode/reload.d/gtk b/home/dot_local/share/mode/reload.d/gtk
index 767969d..2578348 100644
--- a/home/dot_local/share/mode/reload.d/gtk
+++ b/home/dot_local/share/mode/reload.d/gtk
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# this is max jank but xfsettingsd does other things besides live gtk theme
# reloading, and i don't like having it running constantly because it fucks
# up fcitx5 and xbindkeys
diff --git a/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl
index 6b5f54d..fed983a 100644
--- a/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl
+++ b/home/dot_local/share/mode/run_once_bootstrap.sh.tmpl
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
# vim:ft=sh
# save hash of this directory so this script is run if the files are modified
diff --git a/home/dot_local/share/mode/switch.d/executable_anki b/home/dot_local/share/mode/switch.d/executable_anki
index 7572b00..7544673 100644
--- a/home/dot_local/share/mode/switch.d/executable_anki
+++ b/home/dot_local/share/mode/switch.d/executable_anki
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
# this generates theme files compatible with Anki-redesign:
diff --git a/home/dot_local/share/mode/switch.d/executable_chromium b/home/dot_local/share/mode/switch.d/executable_chromium
index 0ea2caa..5a6fdfc 100644
--- a/home/dot_local/share/mode/switch.d/executable_chromium
+++ b/home/dot_local/share/mode/switch.d/executable_chromium
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CACHE_HOME/mode/chromium"
diff --git a/home/dot_local/share/mode/switch.d/executable_discord b/home/dot_local/share/mode/switch.d/executable_discord
index dd7e5e3..018a869 100644
--- a/home/dot_local/share/mode/switch.d/executable_discord
+++ b/home/dot_local/share/mode/switch.d/executable_discord
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CONFIG_HOME/BetterDiscord/themes"
diff --git a/home/dot_local/share/mode/switch.d/executable_dunst b/home/dot_local/share/mode/switch.d/executable_dunst
index d7d9a2b..dfd87fb 100644
--- a/home/dot_local/share/mode/switch.d/executable_dunst
+++ b/home/dot_local/share/mode/switch.d/executable_dunst
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CONFIG_HOME/dunst"
diff --git a/home/dot_local/share/mode/switch.d/executable_fcitx5 b/home/dot_local/share/mode/switch.d/executable_fcitx5
index 2cc6ccb..c046737 100644
--- a/home/dot_local/share/mode/switch.d/executable_fcitx5
+++ b/home/dot_local/share/mode/switch.d/executable_fcitx5
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_DATA_HOME/fcitx5/themes/mode"
diff --git a/home/dot_local/share/mode/switch.d/executable_gtk b/home/dot_local/share/mode/switch.d/executable_gtk
index 95d3e53..13a2d9e 100644
--- a/home/dot_local/share/mode/switch.d/executable_gtk
+++ b/home/dot_local/share/mode/switch.d/executable_gtk
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
GTK_3_SETTINGS_INI="$XDG_CONFIG_HOME/gtk-3.0/settings.ini"
if [ "$mode" = "light" ]; then
sed -e 's/-Dark/-Light/' -e 's/-dark/-light/' -i "$GTK_3_SETTINGS_INI"
diff --git a/home/dot_local/share/mode/switch.d/executable_i3 b/home/dot_local/share/mode/switch.d/executable_i3
index 713869e..09d6c7e 100644
--- a/home/dot_local/share/mode/switch.d/executable_i3
+++ b/home/dot_local/share/mode/switch.d/executable_i3
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
indicator="$color0"
diff --git a/home/dot_local/share/mode/switch.d/executable_kitty b/home/dot_local/share/mode/switch.d/executable_kitty
index eeb81d0..2d7b115 100644
--- a/home/dot_local/share/mode/switch.d/executable_kitty
+++ b/home/dot_local/share/mode/switch.d/executable_kitty
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CONFIG_HOME/kitty"
diff --git a/home/dot_local/share/mode/switch.d/executable_mode b/home/dot_local/share/mode/switch.d/executable_mode
index 8866486..46f7052 100644
--- a/home/dot_local/share/mode/switch.d/executable_mode
+++ b/home/dot_local/share/mode/switch.d/executable_mode
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CACHE_HOME/mode/state"
diff --git a/home/dot_local/share/mode/switch.d/executable_polybar b/home/dot_local/share/mode/switch.d/executable_polybar
index 7087735..48e2dac 100644
--- a/home/dot_local/share/mode/switch.d/executable_polybar
+++ b/home/dot_local/share/mode/switch.d/executable_polybar
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CONFIG_HOME/polybar"
diff --git a/home/dot_local/share/mode/switch.d/executable_vim b/home/dot_local/share/mode/switch.d/executable_vim
index 2220b1a..18841b9 100644
--- a/home/dot_local/share/mode/switch.d/executable_vim
+++ b/home/dot_local/share/mode/switch.d/executable_vim
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CONFIG_HOME/nvim/mode"
diff --git a/home/dot_local/share/mode/switch.d/executable_wall b/home/dot_local/share/mode/switch.d/executable_wall
index c5ced92..4d0037f 100644
--- a/home/dot_local/share/mode/switch.d/executable_wall
+++ b/home/dot_local/share/mode/switch.d/executable_wall
@@ -1,2 +1,2 @@
-#!/bin/sh
+#!/usr/bin/env sh
bgcol "$bg"
diff --git a/home/dot_local/share/mode/switch.d/executable_xrdb b/home/dot_local/share/mode/switch.d/executable_xrdb
index 591a530..e1c439b 100644
--- a/home/dot_local/share/mode/switch.d/executable_xrdb
+++ b/home/dot_local/share/mode/switch.d/executable_xrdb
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
cat << EOF | xrdb -override
*.color0: $color0
*.color1: $color1
diff --git a/home/dot_local/share/mode/switch.d/executable_zathura b/home/dot_local/share/mode/switch.d/executable_zathura
index 8d7e311..ed7ae32 100644
--- a/home/dot_local/share/mode/switch.d/executable_zathura
+++ b/home/dot_local/share/mode/switch.d/executable_zathura
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
[ $no_cfg -eq 1 ] && return
mkcd "$XDG_CONFIG_HOME/zathura"
diff --git a/home/dot_local/share/mode/themes/github-black b/home/dot_local/share/mode/themes/github-black
index 34b507c..e1d0d58 100644
--- a/home/dot_local/share/mode/themes/github-black
+++ b/home/dot_local/share/mode/themes/github-black
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=dark
color0='#484f58'
diff --git a/home/dot_local/share/mode/themes/github-dark b/home/dot_local/share/mode/themes/github-dark
index 577106c..27a39b7 100644
--- a/home/dot_local/share/mode/themes/github-dark
+++ b/home/dot_local/share/mode/themes/github-dark
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=dark
color0='#484f58'
diff --git a/home/dot_local/share/mode/themes/github-light b/home/dot_local/share/mode/themes/github-light
index d0162f8..c243558 100644
--- a/home/dot_local/share/mode/themes/github-light
+++ b/home/dot_local/share/mode/themes/github-light
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=light
color0='#d1d5da'
diff --git a/home/dot_local/share/mode/themes/rose-pine-dawn b/home/dot_local/share/mode/themes/rose-pine-dawn
index dfed420..47cfb5e 100644
--- a/home/dot_local/share/mode/themes/rose-pine-dawn
+++ b/home/dot_local/share/mode/themes/rose-pine-dawn
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=light
color0='#c4bdc3'
diff --git a/home/dot_local/share/mode/themes/xcode-dark b/home/dot_local/share/mode/themes/xcode-dark
index eb75b80..eb945cf 100644
--- a/home/dot_local/share/mode/themes/xcode-dark
+++ b/home/dot_local/share/mode/themes/xcode-dark
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/usr/bin/env sh
mode=dark
color0='#43454b'
diff --git a/home/dot_local/share/pass-extensions/executable_directory.bash b/home/dot_local/share/pass-extensions/executable_directory.bash
index 84db500..90952db 100644
--- a/home/dot_local/share/pass-extensions/executable_directory.bash
+++ b/home/dot_local/share/pass-extensions/executable_directory.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# print the initialized password store directory as a fully qualified path.
# exits with code 1 if the password store is not initialized.
dir="${PASSWORD_STORE_DIR-$HOME/.password-store}"
diff --git a/home/dot_local/share/pass-extensions/executable_duplicates.bash b/home/dot_local/share/pass-extensions/executable_duplicates.bash
index 3ba47aa..e3f9e9f 100644
--- a/home/dot_local/share/pass-extensions/executable_duplicates.bash
+++ b/home/dot_local/share/pass-extensions/executable_duplicates.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
declare -A dupe_tally dupe_map
pass_names="$(pass names -l)"
diff --git a/home/dot_local/share/pass-extensions/executable_exit.bash b/home/dot_local/share/pass-extensions/executable_exit.bash
index 06bd986..742e13d 100644
--- a/home/dot_local/share/pass-extensions/executable_exit.bash
+++ b/home/dot_local/share/pass-extensions/executable_exit.bash
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/usr/bin/env bash
exit 0
diff --git a/home/dot_local/share/pass-extensions/executable_g.bash b/home/dot_local/share/pass-extensions/executable_g.bash
index 4ab3ace..42df9ef 100644
--- a/home/dot_local/share/pass-extensions/executable_g.bash
+++ b/home/dot_local/share/pass-extensions/executable_g.bash
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/usr/bin/env bash
exec pass git "$@"
diff --git a/home/dot_local/share/pass-extensions/executable_names.bash b/home/dot_local/share/pass-extensions/executable_names.bash
index aa42ebf..10f6613 100644
--- a/home/dot_local/share/pass-extensions/executable_names.bash
+++ b/home/dot_local/share/pass-extensions/executable_names.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# list all passwords in store
pass_dir="$(pass directory)"
diff --git a/home/dot_local/share/pass-extensions/executable_treasure.bash b/home/dot_local/share/pass-extensions/executable_treasure.bash
index e79ec24..9cef7f2 100644
--- a/home/dot_local/share/pass-extensions/executable_treasure.bash
+++ b/home/dot_local/share/pass-extensions/executable_treasure.bash
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
TAB="$(printf '\t')"
# TODO: add options: