try to replace which with command -v where possible
fix issue where rotate calls .fehbg, use bin/wall instead
#!/bin/sh
function check-busybox() {
- which $1 >/dev/null 2>&1 && [ "$(basename "$(readlink -f "$(which "$1" | head -1)")")" = "busybox" ]
+ command -v "$1" >/dev/null 2>&1 && [ "busybox" = "$(basename "$(readlink -f "$(command -v "$1")")")" ]
}
esac
for x in $list; do
- p=`which "pinentry-$x"` 2>/dev/null
+ p=$(command -v "pinentry-$x") 2>/dev/null
if [ $? = 0 ]; then
exec "$p" "$@"
fi
xrandr --output $output --rotation $rot1
# x220t
-if which xsetwacom >/dev/null 2>&1; then
+if command -v xsetwacom >/dev/null 2>&1; then
xsetwacom --set stylus Rotate $rot2
xsetwacom --set eraser Rotate $rot2
xsetwacom --set touch Rotate $rot2
fi
# reload bg
-~/.fehbg
+~/bin/wall