Skip to content

Commit b64b82e

Browse files
committed
updated mac.sh
1 parent 346a23e commit b64b82e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.bash.d/mac.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ if ! type tac &>/dev/null; then
5757
}
5858
fi
5959

60+
# used for Shazaming while on headphones - see:
61+
#
62+
# https://github.com/HariSekhon/Knowledge-Base/blob/master/audio.md#shazam-songs-while-using-headphones-on-mac
63+
#
64+
# Switches to Multi-Output Device which should already be configured as above and contain your headphones and BlackHole 2ch
65+
#
66+
alias mshazam='SwitchAudioSource -s "Multi-Output Device"; open -a Shazam'
67+
68+
vol(){
69+
osascript -e "set volume output volume $1"
70+
}
71+
6072
# put in inputrc for readline
6173
#set completion-ignore-case on
6274

0 commit comments

Comments
 (0)