Append .sh to custom bin scripts
This commit is contained in:
parent
c748738bc2
commit
57bdcb58dd
|
@ -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
|
1
bin/til.sh
Symbolic link
1
bin/til.sh
Symbolic link
|
@ -0,0 +1 @@
|
|||
since.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 ;;
|
2
os/arch/automount/install
Normal file → Executable file
2
os/arch/automount/install
Normal file → Executable file
|
@ -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
|
||||
|
|
|
@ -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"
|
|
@ -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
|
Loading…
Reference in a new issue