diff --git a/check-battery.sh b/check-battery.sh index 76806f6..666b726 100755 --- a/check-battery.sh +++ b/check-battery.sh @@ -18,7 +18,7 @@ if [ $PERCENT -le "23" ]; then notify-send --urgency=critical "Low battery $PERCENT%" fi -if [ $PERCENT -le "7" ]; then +if [ $PERCENT -le "3" ]; then echo "powering down..." systemctl suspend fi diff --git a/pdfshrink b/pdfshrink index ed69c8f..4cba1a5 100755 --- a/pdfshrink +++ b/pdfshrink @@ -1,16 +1,14 @@ #!/bin/bash if [ "$1" == "-h" ] ; then echo " - shrinkpdf - resize pdf to smaller size. Warning: if no second file name is provided, the default behavior is to overwrite the original pdf - usage: - shrinkpdf.sh large.pdf - shrinkpdf.sh large.pdf small.pdf - dependencies: - ps2pdf from Ghostscript - mktemp from GNU Coreutils - - Usage: shrinkpdf.sh infile.pdf - shrinkpdf.sh infile outfile.pdf + pdfshrink - resize pdf to smaller size. Warning: if no second file name is provided, the default behavior is to overwrite the original pdf + + Usage: pdfshrink infile.pdf + pdfshrink infile outfile.pdf + + Dependencies: + ps2pdf from Ghostscript + mktemp from GNU Coreutils " exit 0 fi diff --git a/pdfsplit b/pdfsplit index ec5461f..6f7f41e 100755 --- a/pdfsplit +++ b/pdfsplit @@ -16,8 +16,6 @@ if [ "$1" == "-h" ] ; then fi # the following is from a stackoverflow answer -# function pdfsplit() -# { # this function uses 3 arguments: # $1 is the first page of the range to extract # $2 is the last page of the range to extract @@ -27,5 +25,4 @@ fi -dLastPage=${2} \ -sOutputFile=${3%.pdf}_p${1}-p${2}.pdf \ ${3} -# } diff --git a/wm_spawn b/wm_spawn index 3fbedd9..15606d0 100755 --- a/wm_spawn +++ b/wm_spawn @@ -5,5 +5,5 @@ if [ -n "$TMUX" ] ; then tmux split-window -h $EDITOR $1 else # alacritty -e "nvim \"$*\"" - alacritty -e bash -ic "$EDITOR $1" & + (alacritty -e bash -ic "$EDITOR $1") & fi