2
0
mirror of https://github.com/webgefrickel/dotfiles synced 2024-11-13 01:10:27 +00:00

Watson and switchaudio

This commit is contained in:
Steffen Rademacker 2022-02-28 11:53:02 +01:00
parent 17844e932f
commit ab18632f82
3 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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'

View File

@ -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"