diff --git a/bin/bin b/bin/bin.sh similarity index 100% rename from bin/bin rename to bin/bin.sh diff --git a/bin/calc b/bin/calc.sh similarity index 100% rename from bin/calc rename to bin/calc.sh diff --git a/bin/clump b/bin/clump.sh similarity index 100% rename from bin/clump rename to bin/clump.sh diff --git a/bin/dict b/bin/dict.sh similarity index 100% rename from bin/dict rename to bin/dict.sh diff --git a/bin/lesspipe b/bin/lesspipe.sh similarity index 100% rename from bin/lesspipe rename to bin/lesspipe.sh diff --git a/bin/lsarchive b/bin/lsarchive.sh similarity index 100% rename from bin/lsarchive rename to bin/lsarchive.sh diff --git a/bin/mov2gif b/bin/mov2gif.sh similarity index 100% rename from bin/mov2gif rename to bin/mov2gif.sh diff --git a/bin/pb b/bin/pb.sh similarity index 100% rename from bin/pb rename to bin/pb.sh diff --git a/bin/pushover b/bin/pushover.sh similarity index 100% rename from bin/pushover rename to bin/pushover.sh diff --git a/bin/rclip b/bin/rclip.sh similarity index 88% rename from bin/rclip rename to bin/rclip.sh index 15918e7e..8b7dcc60 100755 --- a/bin/rclip +++ b/bin/rclip.sh @@ -11,12 +11,12 @@ # If the destination (or host) is a mac, use pbcopy and pbpaste instead. # # Workflow: -# host $ echo "Hello world!" | rclip guest -# guest $ rclip +# host $ echo "Hello world!" | rclip.sh guest +# guest $ rclip.sh # Hello world! # OR -# host $ echo "Hello world!" | gpg -e | rclip guest -# guest $ rclip | gpg -d +# host $ echo "Hello world!" | gpg -e | rclip.sh guest +# guest $ rclip.sh | gpg -d # Hello world! pb=/tmp/rcopy-pb diff --git a/bin/replace b/bin/replace.sh similarity index 100% rename from bin/replace rename to bin/replace.sh diff --git a/bin/since b/bin/since.sh similarity index 100% rename from bin/since rename to bin/since.sh diff --git a/bin/til b/bin/til deleted file mode 120000 index 8fa4be82..00000000 --- a/bin/til +++ /dev/null @@ -1 +0,0 @@ -since \ No newline at end of file diff --git a/bin/til.sh b/bin/til.sh new file mode 120000 index 00000000..4c591372 --- /dev/null +++ b/bin/til.sh @@ -0,0 +1 @@ +since.sh \ No newline at end of file diff --git a/bin/transfer b/bin/transfer.sh similarity index 100% rename from bin/transfer rename to bin/transfer.sh diff --git a/bin/urlencode b/bin/urlencode.sh similarity index 100% rename from bin/urlencode rename to bin/urlencode.sh diff --git a/bin/wttr b/bin/wttr.sh similarity index 100% rename from bin/wttr rename to bin/wttr.sh diff --git a/bin/zzz b/bin/zzz.sh similarity index 73% rename from bin/zzz rename to bin/zzz.sh index a7ca4a7d..24eb4a2d 100755 --- a/bin/zzz +++ b/bin/zzz.sh @@ -3,7 +3,13 @@ # If -f, then put computer to sleep. # Otherwise, lock screen and turn off monitor. -if [[ $1 = -f ]]; then +if [[ $1 = -h ]]; then + bin=${0##*/} + echo "Usage: $bin [-f]" + echo + echo " $bin # put display to sleep" + echo " $bin -f # put computer to sleep" +elif [[ $1 = -f ]]; then echo "Going to sleep..." case $OSTYPE in darwin*) pmset sleepnow ;; diff --git a/os/arch/automount/bin/notify-mount b/os/arch/automount/bin/notify-mount.sh similarity index 100% rename from os/arch/automount/bin/notify-mount rename to os/arch/automount/bin/notify-mount.sh diff --git a/os/arch/automount/install b/os/arch/automount/install old mode 100644 new mode 100755 index b9b2d50e..c7aad2df --- a/os/arch/automount/install +++ b/os/arch/automount/install @@ -6,4 +6,4 @@ sudo pacman -Ss udevil sudo systemctl enable devmon@$(whoami) sudo systemctl start devmon@$(whoami) -sudo sed -i 's@^# \(success_exec =\)@\1 /home/hlissner/.dotfiles/os/arch/udevil/bin/notify-mount@' udevil.conf +sudo sed -i 's@^# \(success_exec =\)@\1 /home/hlissner/.dotfiles/os/arch/automount/bin/notify-mount.sh@' udevil.conf diff --git a/os/arch/bin/bspc-win b/os/arch/bin/bspc.sh similarity index 100% rename from os/arch/bin/bspc-win rename to os/arch/bin/bspc.sh diff --git a/os/arch/bin/dpass b/os/arch/bin/dpass.sh similarity index 100% rename from os/arch/bin/dpass rename to os/arch/bin/dpass.sh diff --git a/os/arch/bin/rec b/os/arch/bin/rec.sh similarity index 100% rename from os/arch/bin/rec rename to os/arch/bin/rec.sh diff --git a/os/arch/bin/rsl b/os/arch/bin/rsl.sh similarity index 100% rename from os/arch/bin/rsl rename to os/arch/bin/rsl.sh diff --git a/os/arch/bin/vol b/os/arch/bin/vol.sh similarity index 94% rename from os/arch/bin/vol rename to os/arch/bin/vol.sh index 9adaf930..a75ecf67 100755 --- a/os/arch/bin/vol +++ b/os/arch/bin/vol.sh @@ -10,7 +10,7 @@ fi case $1 in [0-9]*) amixer set Master $1 ;; - [+-]) amixer set Master 10%$1 ;; + [+-]) amixer set Master 5%$1 ;; *mute) amixer set Master $1 ;; toggle) amixer set Master toggle ;; *) >&2 echo "Invalid command" diff --git a/os/macos/bin/html2pdf b/os/macos/bin/html2pdf.sh similarity index 100% rename from os/macos/bin/html2pdf rename to os/macos/bin/html2pdf.sh diff --git a/os/macos/bin/run-boris b/os/macos/bin/run-boris.sh similarity index 100% rename from os/macos/bin/run-boris rename to os/macos/bin/run-boris.sh diff --git a/os/macos/bin/timelapse b/os/macos/bin/timelapse.sh similarity index 100% rename from os/macos/bin/timelapse rename to os/macos/bin/timelapse.sh diff --git a/os/macos/bin/timelapse2mov b/os/macos/bin/timelapse2mov.sh similarity index 100% rename from os/macos/bin/timelapse2mov rename to os/macos/bin/timelapse2mov.sh diff --git a/shell/mpd/bin/cleanup-music b/shell/mpd/bin/cleanup-music.sh similarity index 100% rename from shell/mpd/bin/cleanup-music rename to shell/mpd/bin/cleanup-music.sh diff --git a/shell/mpd/bin/notify-song b/shell/mpd/bin/notify-song.sh similarity index 89% rename from shell/mpd/bin/notify-song rename to shell/mpd/bin/notify-song.sh index 457dbfee..2d28f485 100755 --- a/shell/mpd/bin/notify-song +++ b/shell/mpd/bin/notify-song.sh @@ -5,7 +5,7 @@ if ! pgrep mpd >/dev/null; then exit 1 fi -info=$(mpc -h "$HOME/.config/mpd/mpd.sock" current) +info=$(mpc current) if [[ -z $info ]]; then >&2 echo "nothing is playing." exit diff --git a/weechat/bin/wee b/weechat/bin/wee.sh similarity index 100% rename from weechat/bin/wee rename to weechat/bin/wee.sh