-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds various macOS settings & Gaming App «Heroic»
macOS settings: Apple Messages & Music apps, fn-Key functionality, draggable windows, Trash bin auto-cleanup, Mouse acceleration.
- Loading branch information
1 parent
2759a68
commit 5702cfa
Showing
10 changed files
with
194 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# Transmission.app | ||
function installAppHeroicGamesLauncher(){ | ||
# --> App version to use | ||
local version="2.14.1" | ||
local platform="-arm64" | ||
# --> Set Download URL | ||
if checkIfAppleSilicion; then | ||
# ...for ARM-based Apple Silicon Macs | ||
local downloadUrl="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v$version/Heroic-$version-macOS-arm64.dmg" | ||
else | ||
# ...for Intel-based Macs | ||
platform="" | ||
local downloadUrl="https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v$version/Heroic-$version-macOS-x64.dmg" | ||
fi | ||
# --> Download | ||
downloadFromUrl "downloadUrl" "Heroic.dmg" | ||
# --> Mount & copy | ||
# (Cannot use unmountFile() function due to Volume having a different name than the App) | ||
hdiutil attach "$downloadFolder/Heroic.dmg" -quiet | ||
cp -r "/Volumes/Heroic $version$platform/Heroic.app" "$downloadFolder" | ||
# --> Unmount & move | ||
hdiutil unmount "/Volumes/Heroic $version-$platform" -force -quiet | ||
moveApplication "Heroic.app" | ||
} | ||
export -f installAppHeroicGamesLauncher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# Keyboard fn 🌐 key shows Emoji & Symbols popup. Supported values: | ||
# --> 0 = No function / do nothing (default) | ||
# --> 1 = Change keyboard input source | ||
# --> 2 = Show "Emoji & Symbols" | ||
# --> 3 = Start Dictation (press 2x) | ||
function useFnKeyFor(){ | ||
local changeMode=false | ||
local configFnKeyFunctionanlity=$1 | ||
case "$configFnKeyFunctionanlity" in | ||
off) changeMode=0;; | ||
language) changeMode=1;; | ||
emoji) changeMode=2;; | ||
dictation) changeMode=3;; | ||
*) changeMode=false;; | ||
esac | ||
|
||
if [ "$changeMode" != false ]; then | ||
defaults write com.apple.HIToolbox "AppleFnUsageType" -int $changeMode | ||
fi | ||
} | ||
export -f useFnKeyFor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# Show the subject field in Messages (subjects are sent in bold format) | ||
# Source: https://gist.github.com/getaaron/a9dc64b6ea2fa8299af6b7077f4386ae | ||
function enableMessagesSubjectField(){ | ||
defaults write com.apple.MobileSMS "MMSShowSubject" -bool TRUE | ||
} | ||
export -f enableMessagesSubjectField |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env zsh | ||
|
||
# Display «Playing next» Notification | ||
function showNextSongNotification(){ | ||
defaults write com.apple.Music "userWantsPlaybackNotifications" -bool TRUE | ||
} | ||
export -f showNextSongNotification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.