summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-02-08 18:43:37 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-02-08 18:43:37 -0500
commit2b5df860ded1412a0c0be0d140d138616e926dfc (patch)
tree7cf2598594bfd640b61771704012c87cae154034 /.local
parenta25e8b640ac83b6eb345977e59803e999bc42202 (diff)
downloadeibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.tar.gz
eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.tar.zst
eibhear-2b5df860ded1412a0c0be0d140d138616e926dfc.zip
#!/bin/sh shebang. newline after universalized.
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/compiler2
-rwxr-xr-x.local/bin/cron/checkup3
-rwxr-xr-x.local/bin/cron/cronbat3
-rwxr-xr-x.local/bin/cron/crontog3
-rwxr-xr-x.local/bin/cron/newsup3
-rwxr-xr-x.local/bin/displayselect2
-rwxr-xr-x.local/bin/dmenuhandler3
-rwxr-xr-x.local/bin/dmenumount2
-rwxr-xr-x.local/bin/dmenupass2
-rwxr-xr-x.local/bin/dmenurecord2
-rwxr-xr-x.local/bin/dmenuumount3
-rwxr-xr-x.local/bin/dmenuunicode2
-rwxr-xr-x.local/bin/ext2
-rwxr-xr-x.local/bin/getkeys3
-rwxr-xr-x.local/bin/i3cmds/ddspawn2
-rwxr-xr-x.local/bin/i3cmds/dropdowncalc3
-rwxr-xr-x.local/bin/i3cmds/hover3
-rwxr-xr-x.local/bin/i3cmds/i3resize3
-rwxr-xr-x.local/bin/i3cmds/tmuxdd3
-rwxr-xr-x.local/bin/ifinstalled3
-rwxr-xr-x.local/bin/launch_polybar2
-rwxr-xr-x.local/bin/linkhandler2
-rwxr-xr-x.local/bin/maimpick2
-rwxr-xr-x.local/bin/mpd-module-update2
-rwxr-xr-x.local/bin/opout2
-rwxr-xr-x.local/bin/pauseallmpv2
-rwxr-xr-x.local/bin/podentr3
-rwxr-xr-x.local/bin/prompt3
-rwxr-xr-x.local/bin/qndl3
-rwxr-xr-x.local/bin/queueandnotify3
-rwxr-xr-x.local/bin/refbar2
-rwxr-xr-x.local/bin/remaps3
-rwxr-xr-x.local/bin/rotdir2
-rwxr-xr-x.local/bin/rssadd3
-rwxr-xr-x.local/bin/samedir3
-rwxr-xr-x.local/bin/setbg2
-rwxr-xr-x.local/bin/shortcuts1
-rwxr-xr-x.local/bin/showclip2
-rwxr-xr-x.local/bin/statusbar/battery2
-rwxr-xr-x.local/bin/statusbar/clock2
-rwxr-xr-x.local/bin/statusbar/cpu2
-rwxr-xr-x.local/bin/statusbar/disk2
-rwxr-xr-x.local/bin/statusbar/help3
-rwxr-xr-x.local/bin/statusbar/internet2
-rwxr-xr-x.local/bin/statusbar/iplocate2
-rwxr-xr-x.local/bin/statusbar/mailbox2
-rwxr-xr-x.local/bin/statusbar/memory2
-rwxr-xr-x.local/bin/statusbar/music2
-rwxr-xr-x.local/bin/statusbar/news2
-rwxr-xr-x.local/bin/statusbar/pacpackages2
-rwxr-xr-x.local/bin/statusbar/popupgrade2
-rwxr-xr-x.local/bin/statusbar/torrent2
-rwxr-xr-x.local/bin/statusbar/volume2
-rwxr-xr-x.local/bin/statusbar/weather3
-rwxr-xr-x.local/bin/td-toggle3
-rwxr-xr-x.local/bin/texclear2
-rwxr-xr-x.local/bin/torwrap3
-rwxr-xr-x.local/bin/transadd2
-rwxr-xr-x.local/bin/tutorialvids3
-rwxr-xr-x.local/bin/unix5
-rwxr-xr-x.local/bin/vifmimg1
-rwxr-xr-x.local/bin/vu2
62 files changed, 88 insertions, 61 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler
index a124d5f..2fefdf5 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# This script will compile or run another finishing operation on a document. I
# have this script run via vim.
diff --git a/.local/bin/cron/checkup b/.local/bin/cron/checkup
index ebcdd2a..57bb6d4 100755
--- a/.local/bin/cron/checkup
+++ b/.local/bin/cron/checkup
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# Syncs repositories and downloads updates, meant to be run as a cronjob.
ping -q -c 1 1.1.1.1 > /dev/null || exit
diff --git a/.local/bin/cron/cronbat b/.local/bin/cron/cronbat
index ee21a17..2dc0950 100755
--- a/.local/bin/cron/cronbat
+++ b/.local/bin/cron/cronbat
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# Notify me with notify-send if my battery is below 25%.
# You can set this to run via cron.
diff --git a/.local/bin/cron/crontog b/.local/bin/cron/crontog
index 237eb9c..67f620b 100755
--- a/.local/bin/cron/crontog
+++ b/.local/bin/cron/crontog
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# Toggles all cronjobs off/on.
# Stores disabled crontabs in ~/.consaved until restored.
diff --git a/.local/bin/cron/newsup b/.local/bin/cron/newsup
index 1238754..dd27092 100755
--- a/.local/bin/cron/newsup
+++ b/.local/bin/cron/newsup
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# Set as a cron job to check for new RSS entries for newsboat.
# If newsboat is open, sends it an "R" key to refresh.
diff --git a/.local/bin/displayselect b/.local/bin/displayselect
index 5700571..c0e3479 100755
--- a/.local/bin/displayselect
+++ b/.local/bin/displayselect
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# A UI for detecting and selecting all displays. Probes xrandr for connected
# displays and lets user select one to use. User may also select "manual
diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler
index c4eecc3..c7e2740 100755
--- a/.local/bin/dmenuhandler
+++ b/.local/bin/dmenuhandler
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# Feed this script a link and it will give dmenu
# some choice programs to use to open it.
diff --git a/.local/bin/dmenumount b/.local/bin/dmenumount
index e01c7eb..c192873 100755
--- a/.local/bin/dmenumount
+++ b/.local/bin/dmenumount
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Gives a dmenu prompt to mount unmounted drives and Android phones. If
# they're in /etc/fstab, they'll be mounted automatically. Otherwise, you'll
diff --git a/.local/bin/dmenupass b/.local/bin/dmenupass
index 461a551..8631a13 100755
--- a/.local/bin/dmenupass
+++ b/.local/bin/dmenupass
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# This script is the SUDO_ASKPASS variable, meaning that it will be used as a
# password prompt if needed.
diff --git a/.local/bin/dmenurecord b/.local/bin/dmenurecord
index 7e80f3c..a0339e4 100755
--- a/.local/bin/dmenurecord
+++ b/.local/bin/dmenurecord
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Usage:
# `$0`: Ask for recording type via dmenu
diff --git a/.local/bin/dmenuumount b/.local/bin/dmenuumount
index 25717a9..da0f401 100755
--- a/.local/bin/dmenuumount
+++ b/.local/bin/dmenuumount
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# A dmenu prompt to unmount drives.
# Provides you with mounted partitions, select one to unmount.
# Drives mounted at /, /boot and /home will not be options to unmount.
diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode
index bb57629..7a9fc42 100755
--- a/.local/bin/dmenuunicode
+++ b/.local/bin/dmenuunicode
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# The famous "get a menu of emojis to copy" script.
diff --git a/.local/bin/ext b/.local/bin/ext
index 6fa15ca..c2e0f5c 100755
--- a/.local/bin/ext
+++ b/.local/bin/ext
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# A general, all-purpose extraction script. Not all extraction programs here
# are installed by LARBS automatically.
diff --git a/.local/bin/getkeys b/.local/bin/getkeys
index f4c9eb5..8871d41 100755
--- a/.local/bin/getkeys
+++ b/.local/bin/getkeys
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
cat ~/.local/share/larbs/getkeys/"$1" 2>/dev/null && exit
echo "Run command with one of the following arguments for info about that program:"
ls ~/.local/share/larbs/getkeys
diff --git a/.local/bin/i3cmds/ddspawn b/.local/bin/i3cmds/ddspawn
index 1c4af36..d4a4034 100755
--- a/.local/bin/i3cmds/ddspawn
+++ b/.local/bin/i3cmds/ddspawn
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Toggle floating dropdown terminal in i3, or start if non-existing.
# $1 is the script run in the terminal.
diff --git a/.local/bin/i3cmds/dropdowncalc b/.local/bin/i3cmds/dropdowncalc
index 132d8e1..f0615fd 100755
--- a/.local/bin/i3cmds/dropdowncalc
+++ b/.local/bin/i3cmds/dropdowncalc
@@ -1,2 +1,3 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
ifinstalled bc && echo "Welcome to the Calculator." && bc -lq
diff --git a/.local/bin/i3cmds/hover b/.local/bin/i3cmds/hover
index d02bbbc..a8a3e19 100755
--- a/.local/bin/i3cmds/hover
+++ b/.local/bin/i3cmds/hover
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
[ -z "$1" ] && exit # If $1 is left, hovers in the bottom left, if right, the bottom right
current=$(xdotool getwindowfocus)
newwidth=$(($(xdotool getdisplaygeometry | awk '{print $2}') / 3))
diff --git a/.local/bin/i3cmds/i3resize b/.local/bin/i3cmds/i3resize
index f89bdb5..0bfb5ea 100755
--- a/.local/bin/i3cmds/i3resize
+++ b/.local/bin/i3cmds/i3resize
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# This script was made by `goferito` on Github.
# Some cleanup by Luke.
diff --git a/.local/bin/i3cmds/tmuxdd b/.local/bin/i3cmds/tmuxdd
index c8eccbb..3997240 100755
--- a/.local/bin/i3cmds/tmuxdd
+++ b/.local/bin/i3cmds/tmuxdd
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# This is the script that i3 runs to either start tmux in
# the dropdown terminal or log into a previous session.
tmux a || tmux
diff --git a/.local/bin/ifinstalled b/.local/bin/ifinstalled
index baa7cda..c8e1c2e 100755
--- a/.local/bin/ifinstalled
+++ b/.local/bin/ifinstalled
@@ -1,3 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# If $1 command is not available, error code and notify.
command -v "$1" >/dev/null || { notify-send "📦 $1" "must be installed for this function." && exit 1 ;}
diff --git a/.local/bin/launch_polybar b/.local/bin/launch_polybar
index 51c8e91..291d183 100755
--- a/.local/bin/launch_polybar
+++ b/.local/bin/launch_polybar
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Terminate already running bar instances
killall -q polybar
diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler
index 8a18280..2c64dcb 100755
--- a/.local/bin/linkhandler
+++ b/.local/bin/linkhandler
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Feed script a url or file location.
# If an image, it will view in sxiv,
diff --git a/.local/bin/maimpick b/.local/bin/maimpick
index 0b62107..7125e61 100755
--- a/.local/bin/maimpick
+++ b/.local/bin/maimpick
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# This is bound to Shift+PrintScreen by default, requires maim. It lets you
# choose the kind of screenshot to take, including copying the image or even
diff --git a/.local/bin/mpd-module-update b/.local/bin/mpd-module-update
index 85eb002..da8d9fc 100755
--- a/.local/bin/mpd-module-update
+++ b/.local/bin/mpd-module-update
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# This loop will update the mpd statusbar module whenever a command changes the
# music player's status. mpd must be running on X's start for this to work.
diff --git a/.local/bin/opout b/.local/bin/opout
index 258f721..f81daa2 100755
--- a/.local/bin/opout
+++ b/.local/bin/opout
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# opout: "open output": A general handler for opening a file's intended output,
# usually the pdf of a compiled document. I find this useful especially
diff --git a/.local/bin/pauseallmpv b/.local/bin/pauseallmpv
index d1d3575..85a7032 100755
--- a/.local/bin/pauseallmpv
+++ b/.local/bin/pauseallmpv
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# You might notice all mpv commands are aliased to have this input-ipc-server
# thing. That's just for this particular command, which allows us to pause
diff --git a/.local/bin/podentr b/.local/bin/podentr
index bf1eeb8..e765c58 100755
--- a/.local/bin/podentr
+++ b/.local/bin/podentr
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# entr command to run `queueandnotify` when newsboat queue is changed
[ "$(pgrep -x $(basename $0) | wc -l)" -gt 2 ] && exit
diff --git a/.local/bin/prompt b/.local/bin/prompt
index c12a47b..666434f 100755
--- a/.local/bin/prompt
+++ b/.local/bin/prompt
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# A dmenu binary prompt script.
# Gives a dmenu prompt labeled with $1 to perform command $2.
# For example:
diff --git a/.local/bin/qndl b/.local/bin/qndl
index 32ad03d..f5bd14f 100755
--- a/.local/bin/qndl
+++ b/.local/bin/qndl
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# $1 is a url; $2 is a command
[ -z "$1" ] && exit
base="$(basename "$1")"
diff --git a/.local/bin/queueandnotify b/.local/bin/queueandnotify
index 38c4a53..867b15e 100755
--- a/.local/bin/queueandnotify
+++ b/.local/bin/queueandnotify
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# Podboat sucks. This script replaces it.
# It reads the newsboat queue, queuing downloads with taskspooler.
# It also removes the junk from extentions.
diff --git a/.local/bin/refbar b/.local/bin/refbar
index b346cf0..78b5018 100755
--- a/.local/bin/refbar
+++ b/.local/bin/refbar
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Refresh the dwmbar.
# Send SIGTRAP signal to dwmbar script, which will handle it with a trap.
diff --git a/.local/bin/remaps b/.local/bin/remaps
index c358d74..ed6ae43 100755
--- a/.local/bin/remaps
+++ b/.local/bin/remaps
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# This script is called on startup to remap keys.
# Increase key speed via a rate change
xset r rate 300 50
diff --git a/.local/bin/rotdir b/.local/bin/rotdir
index 7c81b94..7313a42 100755
--- a/.local/bin/rotdir
+++ b/.local/bin/rotdir
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# When I open an image from the file manager in sxiv (the image viewer), I want
# to be able to press the next/previous keys to key through the rest of the
diff --git a/.local/bin/rssadd b/.local/bin/rssadd
index 4bf87a3..4ef31a4 100755
--- a/.local/bin/rssadd
+++ b/.local/bin/rssadd
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
! echo "$1" | grep "https*://\S\+\.[A-Za-z]\+\S*" >/dev/null &&
notify-send "That doesn't look like a full URL." && exit
RSSFILE="$HOME/.config/newsboat/urls"
diff --git a/.local/bin/samedir b/.local/bin/samedir
index f2ac87f..740dcfc 100755
--- a/.local/bin/samedir
+++ b/.local/bin/samedir
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
PID=$(xprop -id "$(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}')" | grep -m 1 PID | cut -d " " -f 3)
PID=$(echo "$(pstree -lpA "$PID" | tail -n 1)" | awk -F'---' '{print $NF}' | sed -re 's/[^0-9]//g')
cd "$(readlink /proc/"$PID"/cwd)"
diff --git a/.local/bin/setbg b/.local/bin/setbg
index 5fdf566..6125654 100755
--- a/.local/bin/setbg
+++ b/.local/bin/setbg
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# In LARBS, ~/.config/wall.png is the location of the system wallpaper. This
# script, if given an argument, moves it there. This script without an
diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts
index 5d39b47..55ce30a 100755
--- a/.local/bin/shortcuts
+++ b/.local/bin/shortcuts
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+
# Output locations. Unactivated progs should go to /dev/null.
shell_shortcuts="$HOME/.config/shortcutrc"
ranger_shortcuts="$HOME/.config/ranger/shortcuts.conf"
diff --git a/.local/bin/showclip b/.local/bin/showclip
index 5896de6..d2faff8 100755
--- a/.local/bin/showclip
+++ b/.local/bin/showclip
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Display contents of selection via dunst if running.
# Separate script for i3.
diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery
index 677ecb4..d1631db 100755
--- a/.local/bin/statusbar/battery
+++ b/.local/bin/statusbar/battery
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Give a battery name (e.g. BAT0) as an argument.
case $BLOCK_BUTTON in
diff --git a/.local/bin/statusbar/clock b/.local/bin/statusbar/clock
index 8b418eb..5d46359 100755
--- a/.local/bin/statusbar/clock
+++ b/.local/bin/statusbar/clock
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
date '+%Y %b %d (%a) %I:%M%p'
diff --git a/.local/bin/statusbar/cpu b/.local/bin/statusbar/cpu
index 08078ba..3b1394a 100755
--- a/.local/bin/statusbar/cpu
+++ b/.local/bin/statusbar/cpu
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)" ;;
diff --git a/.local/bin/statusbar/disk b/.local/bin/statusbar/disk
index d9dedf3..2ca8805 100755
--- a/.local/bin/statusbar/disk
+++ b/.local/bin/statusbar/disk
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Status bar module for disk space
# $1 should be drive mountpoint
diff --git a/.local/bin/statusbar/help b/.local/bin/statusbar/help
index 9b88e65..d7345dc 100755
--- a/.local/bin/statusbar/help
+++ b/.local/bin/statusbar/help
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
case $BLOCK_BUTTON in
1) groff -mom ~/.local/share/larbs/readme.mom -Tpdf | zathura - ;;
2) i3 restart ;;
diff --git a/.local/bin/statusbar/internet b/.local/bin/statusbar/internet
index 8674658..4935294 100755
--- a/.local/bin/statusbar/internet
+++ b/.local/bin/statusbar/internet
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) $TERMINAL -e nmtui ;;
diff --git a/.local/bin/statusbar/iplocate b/.local/bin/statusbar/iplocate
index 5362330..4ca4f10 100755
--- a/.local/bin/statusbar/iplocate
+++ b/.local/bin/statusbar/iplocate
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Gets your public ip address checks which country you are in and
# displays that information in the statusbar
diff --git a/.local/bin/statusbar/mailbox b/.local/bin/statusbar/mailbox
index f9d3bd8..21c85ab 100755
--- a/.local/bin/statusbar/mailbox
+++ b/.local/bin/statusbar/mailbox
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# i3blocks mail module.
# Displays number of unread mail and an loading icon if updating.
diff --git a/.local/bin/statusbar/memory b/.local/bin/statusbar/memory
index c128261..dfd3d7b 100755
--- a/.local/bin/statusbar/memory
+++ b/.local/bin/statusbar/memory
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) notify-send "🧠 Memory hogs" "$(ps axch -o cmd:15,%mem --sort=-%mem | head)" ;;
diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music
index 663fe0f..fadc15e 100755
--- a/.local/bin/statusbar/music
+++ b/.local/bin/statusbar/music
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
filter() {
sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g"
diff --git a/.local/bin/statusbar/news b/.local/bin/statusbar/news
index 9a0c1da..b7ca1a7 100755
--- a/.local/bin/statusbar/news
+++ b/.local/bin/statusbar/news
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# i3blocks newsboat module.
# Displays number of unread news items and an loading icon if updating.
diff --git a/.local/bin/statusbar/pacpackages b/.local/bin/statusbar/pacpackages
index e4cd479..418bc2d 100755
--- a/.local/bin/statusbar/pacpackages
+++ b/.local/bin/statusbar/pacpackages
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# i3blocks module for pacman upgrades.
# Displays number of upgradeable packages.
diff --git a/.local/bin/statusbar/popupgrade b/.local/bin/statusbar/popupgrade
index 099b259..ba6678c 100755
--- a/.local/bin/statusbar/popupgrade
+++ b/.local/bin/statusbar/popupgrade
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
printf "Beginning upgrade.\\n"
diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent
index c88e354..4b559b8 100755
--- a/.local/bin/statusbar/torrent
+++ b/.local/bin/statusbar/torrent
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
transmission-remote -l | grep % |
sed " # This first sed command is to ensure a desirable order with sort
diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume
index c3bf6d1..c16eded 100755
--- a/.local/bin/statusbar/volume
+++ b/.local/bin/statusbar/volume
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
case $BLOCK_BUTTON in
1) setsid "$TERMINAL" -e alsamixer & ;;
diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather
index 4241a51..4a11673 100755
--- a/.local/bin/statusbar/weather
+++ b/.local/bin/statusbar/weather
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;}
getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1
diff --git a/.local/bin/td-toggle b/.local/bin/td-toggle
index 4178eed..dfac906 100755
--- a/.local/bin/td-toggle
+++ b/.local/bin/td-toggle
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
# If transmission-daemon is running, will ask to kill, else will ask to start.
if pgrep -x transmission-da >/dev/null ;
then
diff --git a/.local/bin/texclear b/.local/bin/texclear
index 83fd586..f6a5062 100755
--- a/.local/bin/texclear
+++ b/.local/bin/texclear
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Clears the build files of a LaTeX/XeLaTeX build.
# I have vim run this file whenever I exit a .tex file.
diff --git a/.local/bin/torwrap b/.local/bin/torwrap
index becd217..881d8cc 100755
--- a/.local/bin/torwrap
+++ b/.local/bin/torwrap
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
ifinstalled transmission-remote-cli transmission-cli || exit
! pgrep -x transmission-da >/dev/null && transmission-daemon && notify-send "Starting torrent daemon..." && sleep 3 && pkill -RTMIN+7 "${STATUSBAR:?}"
diff --git a/.local/bin/transadd b/.local/bin/transadd
index cd9f8aa..5d8f510 100755
--- a/.local/bin/transadd
+++ b/.local/bin/transadd
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# Mimeapp script for adding torrent to transmission-daemon, but will also start the daemon first if not running.
diff --git a/.local/bin/tutorialvids b/.local/bin/tutorialvids
index 41d3c75..5ca5c50 100755
--- a/.local/bin/tutorialvids
+++ b/.local/bin/tutorialvids
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
vidlist="
status bar https://www.youtube.com/watch?v=gKumet6b-WY
sxiv (image viewer) https://www.youtube.com/watch?v=GYW9i_u5PYs
diff --git a/.local/bin/unix b/.local/bin/unix
index 74aa580..a9fb96e 100755
--- a/.local/bin/unix
+++ b/.local/bin/unix
@@ -1,4 +1,5 @@
-#!/usr/bin/env sh
+#!/bin/sh
+
#original artwork by http://www.sanderfocus.nl/#/portfolio/tech-heroes
#converted to shell by #nixers @ irc.unix.chat
@@ -22,4 +23,4 @@ cat << 'eof'
/ / %%%%%%;, \%%l%%;// _/%;, dmr
/ %%%;, <;\-=-/ /
;, l
-eof \ No newline at end of file
+eof
diff --git a/.local/bin/vifmimg b/.local/bin/vifmimg
index 1569962..8fb8eed 100755
--- a/.local/bin/vifmimg
+++ b/.local/bin/vifmimg
@@ -1,4 +1,5 @@
#!/usr/bin/env bash
+
[ -z "$FIFO_UEBERZUG" ] && exit
readonly ID_PREVIEW="preview"
diff --git a/.local/bin/vu b/.local/bin/vu
index 1e8d59e..2340cdc 100755
--- a/.local/bin/vu
+++ b/.local/bin/vu
@@ -1,4 +1,4 @@
-#!/usr/bin/env sh
+#!/bin/sh
# This is a wrapper for vifm to allow ueberzug images.