diff --git a/dotfiles/lib/shellrc/aliases.sh b/dotfiles/lib/shellrc/aliases.sh index c241e90e..4a5ddff9 100644 --- a/dotfiles/lib/shellrc/aliases.sh +++ b/dotfiles/lib/shellrc/aliases.sh @@ -45,4 +45,4 @@ done alias stfu="osascript -e 'set volume output muted true'" alias pumpitup="osascript -e 'set volume 7'" -alias pip-upgrap="pip freeze --local | get_cols -F "=" 1 | xargs -n1 sudo pip install -U" +alias pip-upgrade="pip freeze --local | get_cols -F "=" 1 | xargs -n1 sudo pip install -U" diff --git a/dotfiles/lib/shellrc/functions.sh b/dotfiles/lib/shellrc/functions.sh index 6214fe94..5d704be9 100644 --- a/dotfiles/lib/shellrc/functions.sh +++ b/dotfiles/lib/shellrc/functions.sh @@ -227,5 +227,11 @@ function get_keyboard_vendor_id_product_id_pairs() { } function startss() { - open -a /System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app + #reattach-to-user-namespace "/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine" & + #reattach-to-user-namespace "zsh" -c "source ~/.zshrc && ssosa" + reattach-to-user-namespace "open" "/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app" +} + +function ssosa() { + osascript -e "tell application \"/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Resources/ScreenSaverEngine.app\" to activate" }