mirror of
https://github.com/webgefrickel/dotfiles
synced 2024-11-13 01:10:27 +00:00
Watson and switchaudio
This commit is contained in:
parent
17844e932f
commit
ab18632f82
@ -18,9 +18,11 @@ brew install speedread
|
||||
brew install spotify-tui
|
||||
brew install spotifyd
|
||||
brew install starship
|
||||
brew install switchaudio-osx
|
||||
brew install topgrade
|
||||
brew install tree
|
||||
brew install viu
|
||||
brew install watson
|
||||
|
||||
# nnn plugins
|
||||
curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh
|
||||
|
@ -50,5 +50,6 @@ set -g @plugin 'schasse/tmux-jump'
|
||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
@ -53,6 +53,19 @@ wttr () {
|
||||
fi
|
||||
}
|
||||
|
||||
out () {
|
||||
# requires switchaudio-osx to be installed
|
||||
IFS=$'\n' # split on newline
|
||||
set -o noglob
|
||||
sources=($(SwitchAudioSource -t output -a))
|
||||
|
||||
select option in $sources; do
|
||||
SwitchAudioSource -s "$option"
|
||||
brew services restart spotifyd
|
||||
exit
|
||||
done
|
||||
}
|
||||
|
||||
webvideo () {
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "No arguments supplied, example usage: webvideo FILENAME --resize 1920 --mute"
|
||||
|
Loading…
Reference in New Issue
Block a user