diff --git a/configs/launchpad-scripts/lps_0_0.sh b/configs/launchpad-scripts/lps_0_0.sh index 7e5890e..56ed866 100755 --- a/configs/launchpad-scripts/lps_0_0.sh +++ b/configs/launchpad-scripts/lps_0_0.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e notify-send "Current Track" "$(spotify-now-playing)" \ No newline at end of file diff --git a/configs/launchpad-scripts/lps_0_6.sh b/configs/launchpad-scripts/lps_0_6.sh index 264c808..f6c32f4 100755 --- a/configs/launchpad-scripts/lps_0_6.sh +++ b/configs/launchpad-scripts/lps_0_6.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e gnome-terminal -- tinker \ No newline at end of file diff --git a/configs/launchpad-scripts/lps_0_7.sh b/configs/launchpad-scripts/lps_0_7.sh index e4cea50..00fe78e 100755 --- a/configs/launchpad-scripts/lps_0_7.sh +++ b/configs/launchpad-scripts/lps_0_7.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e cd ~ && gnome-terminal \ No newline at end of file diff --git a/configs/launchpad-scripts/lps_7_7.sh b/configs/launchpad-scripts/lps_7_7.sh index 9a1c307..11ec8dc 100755 --- a/configs/launchpad-scripts/lps_7_7.sh +++ b/configs/launchpad-scripts/lps_7_7.sh @@ -1,3 +1,3 @@ -#! /bin/bash +#! /usr/bin/env bash sleep 1 exit 1 \ No newline at end of file diff --git a/configs/nautilus/scripts/Copy to web b/configs/nautilus/scripts/Copy to web index 9207a42..1cc656f 100755 --- a/configs/nautilus/scripts/Copy to web +++ b/configs/nautilus/scripts/Copy to web @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e WEBSERVER_PATH=$HOME/www diff --git a/configs/nautilus/scripts/Open in Video Trimmer b/configs/nautilus/scripts/Open in Video Trimmer index 937a2f9..201f663 100755 --- a/configs/nautilus/scripts/Open in Video Trimmer +++ b/configs/nautilus/scripts/Open in Video Trimmer @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e python3 ~/.config/ewconfig/scripts/video_trimmer \ No newline at end of file diff --git a/scripts/aspath b/scripts/aspath index 54d2803..85a5495 100755 --- a/scripts/aspath +++ b/scripts/aspath @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Ensure we were passed a host argument diff --git a/scripts/caddy-se-allow b/scripts/caddy-se-allow index 95027eb..dd2670e 100755 --- a/scripts/caddy-se-allow +++ b/scripts/caddy-se-allow @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -ex sudo chcon -t httpd_sys_content_t $1 -R diff --git a/scripts/configure-gnome-remote-desktop b/scripts/configure-gnome-remote-desktop index cd39885..ff47856 100755 --- a/scripts/configure-gnome-remote-desktop +++ b/scripts/configure-gnome-remote-desktop @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # This script will do the work needed to configure Gnome Remote Desktop headlessly. # Useful if you need RDP access to a remote machine and forgot to configure it before-hand set -e diff --git a/scripts/dig-authoritative b/scripts/dig-authoritative index 373eda9..d211134 100755 --- a/scripts/dig-authoritative +++ b/scripts/dig-authoritative @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Expect either a domain, or a domain and a record type diff --git a/scripts/ewconfig-pull b/scripts/ewconfig-pull index 288e1db..2bd47ca 100755 --- a/scripts/ewconfig-pull +++ b/scripts/ewconfig-pull @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e ewconfig-run git pull \ No newline at end of file diff --git a/scripts/ewconfig-reinstall b/scripts/ewconfig-reinstall index 040f295..a42bbce 100755 --- a/scripts/ewconfig-reinstall +++ b/scripts/ewconfig-reinstall @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Require an argument (linux, windows) diff --git a/scripts/ewconfig-run b/scripts/ewconfig-run index 6e9a1b9..65bc9dc 100755 --- a/scripts/ewconfig-run +++ b/scripts/ewconfig-run @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # If $EWCONFIG_ROOT is not set, error diff --git a/scripts/ewp-best-terminal b/scripts/ewp-best-terminal index 1604886..c484b55 100755 --- a/scripts/ewp-best-terminal +++ b/scripts/ewp-best-terminal @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Check for terminals in order of preference diff --git a/scripts/ezlink3 b/scripts/ezlink3 index 627dea3..c21e6a8 100755 --- a/scripts/ezlink3 +++ b/scripts/ezlink3 @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e python3 $(which ezlink) $@ \ No newline at end of file diff --git a/scripts/fetch-steamdeck-screenshots b/scripts/fetch-steamdeck-screenshots index 2e758e7..a576ee0 100755 --- a/scripts/fetch-steamdeck-screenshots +++ b/scripts/fetch-steamdeck-screenshots @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # If no arguments are given, print usage and exit diff --git a/scripts/genpass b/scripts/genpass index 989c74c..389e832 100755 --- a/scripts/genpass +++ b/scripts/genpass @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Check args diff --git a/scripts/git-authors-recursive b/scripts/git-authors-recursive index 71494c8..9662ec8 100755 --- a/scripts/git-authors-recursive +++ b/scripts/git-authors-recursive @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash git submodule foreach git authors | grep -v "^Entering" | python3 -c ' diff --git a/scripts/git-detect-fake-authors b/scripts/git-detect-fake-authors index 5db63e8..abf21fd 100755 --- a/scripts/git-detect-fake-authors +++ b/scripts/git-detect-fake-authors @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # This script finds every time someone makes a commit under someone else's name # NOTE: This includes co-authoring set -e diff --git a/scripts/gitweb-fix-modification-date b/scripts/gitweb-fix-modification-date index 5924675..bfe18d0 100755 --- a/scripts/gitweb-fix-modification-date +++ b/scripts/gitweb-fix-modification-date @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e LAST_MODIFIED_FILE="$(git rev-parse --git-dir)"/info/web/last-modified diff --git a/scripts/hython-latest b/scripts/hython-latest index fff4985..c728af5 100755 --- a/scripts/hython-latest +++ b/scripts/hython-latest @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Execute hython, passing through all arguments diff --git a/scripts/kxcq b/scripts/kxcq index 837599c..fe0cbfc 100755 --- a/scripts/kxcq +++ b/scripts/kxcq @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -ex kxsend "CQ CQ CQ DE VA3ZZA VA3ZZA CQ CQ K" -v diff --git a/scripts/kxqrl b/scripts/kxqrl index 1a068f6..245afd8 100755 --- a/scripts/kxqrl +++ b/scripts/kxqrl @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -ex kxsend "QRL?" -v diff --git a/scripts/legacy-ssh b/scripts/legacy-ssh index 7020b91..2a7aac3 100755 --- a/scripts/legacy-ssh +++ b/scripts/legacy-ssh @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e docker run -v ~/.ssh:/root/.ssh:ro --rm -it $(docker build --load -q - < ~/.config/ewconfig/containers/legacy-ssh.dockerfile ) ssh $@ \ No newline at end of file diff --git a/scripts/lnav-journal b/scripts/lnav-journal index cd3fa37..d33cff6 100755 --- a/scripts/lnav-journal +++ b/scripts/lnav-journal @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e lnav <(journalctl --merge --priority 0..7 --since $(date "+%Y-%m-%d") -o json -f --no-tail) diff --git a/scripts/run-logid b/scripts/run-logid index 9c2720b..b43501a 100755 --- a/scripts/run-logid +++ b/scripts/run-logid @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -ex logid -v -c ~/.config/logid/logid.cfg diff --git a/scripts/show-path b/scripts/show-path index 4bc3887..d569f08 100755 --- a/scripts/show-path +++ b/scripts/show-path @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Print each entry in $PATH on its own line diff --git a/scripts/ssh-sign b/scripts/ssh-sign index 44907db..e28f35d 100755 --- a/scripts/ssh-sign +++ b/scripts/ssh-sign @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Check args diff --git a/scripts/ssh-verify b/scripts/ssh-verify index a2ae458..6c53aac 100755 --- a/scripts/ssh-verify +++ b/scripts/ssh-verify @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Verify a file, using the ~/.ssh/allowed_signers file set -e diff --git a/scripts/tinker b/scripts/tinker index 2cca4a0..b6ba89c 100755 --- a/scripts/tinker +++ b/scripts/tinker @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # NOTE: This is a script so that we can launch it from a gnome keybind set -e diff --git a/scripts/todays-errors b/scripts/todays-errors index d1f7754..5b650cb 100755 --- a/scripts/todays-errors +++ b/scripts/todays-errors @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e lnav <(journalctl --merge --priority 0..3 --since $(date "+%Y-%m-%d") -o json -f --no-tail | grep --line-buffered -iv "iwlwifi ") diff --git a/scripts/wg-cat b/scripts/wg-cat index d853dc7..2284bdb 100755 --- a/scripts/wg-cat +++ b/scripts/wg-cat @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Check args diff --git a/scripts/wg-edit b/scripts/wg-edit index 9e9e89f..c1c6ad8 100755 --- a/scripts/wg-edit +++ b/scripts/wg-edit @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Check args diff --git a/scripts/wg-get-client-ip b/scripts/wg-get-client-ip index c2f1450..b3b2347 100755 --- a/scripts/wg-get-client-ip +++ b/scripts/wg-get-client-ip @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # We need 1 argument diff --git a/scripts/wg-list-interfaces b/scripts/wg-list-interfaces index d4aa6e4..822458f 100755 --- a/scripts/wg-list-interfaces +++ b/scripts/wg-list-interfaces @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Check if we have permission to run `wg` diff --git a/scripts/wg-reload b/scripts/wg-reload index 6cf26b5..3747b2f 100755 --- a/scripts/wg-reload +++ b/scripts/wg-reload @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e if [ $# != 1 ]; then diff --git a/scripts/wg-restart b/scripts/wg-restart index f125bea..aa9c564 100755 --- a/scripts/wg-restart +++ b/scripts/wg-restart @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash # Fully restarts a wireguard link set -e diff --git a/scripts/whois-util b/scripts/whois-util index 57b85c5..933f807 100755 --- a/scripts/whois-util +++ b/scripts/whois-util @@ -1,4 +1,4 @@ -#! /bin/bash +#! /usr/bin/env bash set -e # Require at least 2 arguments