From 2ad80a9c67f5c51967888cb0e47db9e890c053e7 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 6 Jun 2025 13:01:39 +0200 Subject: [PATCH] Added some more Mac-specific apps / installs Signed-off-by: Marcus Noble --- install.sh | 22 ++++++++++-- .../darwin/home/RaycastScripts/brand.sh | 12 +++++++ .../home/RaycastScripts/litra-glow-off.sh | 16 +++++++++ .../home/RaycastScripts/litra-glow-on.sh | 15 ++++++++ .../darwin/home/RaycastScripts/nextcloud.sh | 12 +++++++ .../home/RaycastScripts/reaction-gifs.sh | 11 ++++++ .../home/RaycastScripts/restart-busycal.sh | 15 ++++++++ .../RaycastScripts/restart-logi-daemon.sh | 14 ++++++++ .../darwin/home/RaycastScripts/things.sh | 12 +++++++ .../RaycastScripts/toggle-mic.applescript | 34 +++++++++++++++++++ 10 files changed, 161 insertions(+), 2 deletions(-) create mode 100755 os-specific/darwin/home/RaycastScripts/brand.sh create mode 100755 os-specific/darwin/home/RaycastScripts/litra-glow-off.sh create mode 100755 os-specific/darwin/home/RaycastScripts/litra-glow-on.sh create mode 100755 os-specific/darwin/home/RaycastScripts/nextcloud.sh create mode 100755 os-specific/darwin/home/RaycastScripts/reaction-gifs.sh create mode 100755 os-specific/darwin/home/RaycastScripts/restart-busycal.sh create mode 100755 os-specific/darwin/home/RaycastScripts/restart-logi-daemon.sh create mode 100755 os-specific/darwin/home/RaycastScripts/things.sh create mode 100755 os-specific/darwin/home/RaycastScripts/toggle-mic.applescript diff --git a/install.sh b/install.sh index 244d5f2..dbe7762 100644 --- a/install.sh +++ b/install.sh @@ -36,17 +36,24 @@ BREW_TOOLS=( pulumi/tap/pulumi kubeseal podman podman-desktop fluxcd/tap/flux ical-buddy watch crane openssh siderolabs/talos/talosctl civo/tools/civo raspberry-pi-imager gron ssup2/tap/kpexec opentofu visual-studio-code 1password-cli scw smartmontools - firefox signal slack ffmpeg openscad tsh colima docker docker-buildx + firefox signal slack ffmpeg openscad tsh colima docker docker-buildx nordvpn ) # Brew tools only available / needed on Mac MAC_BREW_TOOLS=( pinentry-mac gpg gawk coreutils wget stats homebrew/cask-fonts/font-open-dyslexic-nerd-font - hiddenbar dimentium/autoraise/autoraiseapp appcleaner the-unarchiver finicky rar + hiddenbar dimentium/autoraise/autoraiseapp appcleaner the-unarchiver finicky rar mas capcut + mqtt-explorer raycast bettertouchtool calibre karabiner-elements kdenlive royal-tsx tableplus + homebrew/cask/todoist ultimaker-cura webtorrent ) CARGO_TOOLS=( bottom ) NODE_TOOLS=( git-split-diffs ) KREW_TOOLS=( gs outdated tree stern explore blame access-matrix cert-manager rbac-tool resource-capacity view-secret ) APT_TOOLS=( zsh gcc ) +MAS_TOOLS=( + 1263070803 # Lungo + 1470584107 # Dato + 1545870783 # System Color Picker +) echo "🔵 Installing / updating tools" @@ -123,6 +130,17 @@ case "${OSTYPE}" in fi done + # Mac App Store + for tool in "${MAS_TOOLS[@]}" + do + printf "MAS ID: ${tool}..." + mas install ${tool} &>/dev/null + if [ $? -eq 0 ]; then + printf " ✅\n" + else + printf " ❌\n" + fi + done FILES=$(/usr/bin/find ./os-specific/darwin/home -maxdepth 1 -mindepth 1 | tr '\n' ' ') for file in $FILES diff --git a/os-specific/darwin/home/RaycastScripts/brand.sh b/os-specific/darwin/home/RaycastScripts/brand.sh new file mode 100755 index 0000000..b2d421e --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/brand.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Brand +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +open 'smb://nas._smb._tcp.local/Nextcloud/Pictures/Brand' + diff --git a/os-specific/darwin/home/RaycastScripts/litra-glow-off.sh b/os-specific/darwin/home/RaycastScripts/litra-glow-off.sh new file mode 100755 index 0000000..6f60713 --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/litra-glow-off.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Litra Glow Off +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon ⚫️ + +# Documentation: +# @raycast.description Turn off Litra Glow light + +cd ~/.bin/ +./litractl off + diff --git a/os-specific/darwin/home/RaycastScripts/litra-glow-on.sh b/os-specific/darwin/home/RaycastScripts/litra-glow-on.sh new file mode 100755 index 0000000..bde937a --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/litra-glow-on.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Litra Glow On +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 💡 + +# Documentation: +# @raycast.description Turn on Litra Glow light + +cd ~/.bin/ +./litractl on diff --git a/os-specific/darwin/home/RaycastScripts/nextcloud.sh b/os-specific/darwin/home/RaycastScripts/nextcloud.sh new file mode 100755 index 0000000..3af17e7 --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/nextcloud.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Nextcloud +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +open 'smb://nas._smb._tcp.local/Nextcloud' + diff --git a/os-specific/darwin/home/RaycastScripts/reaction-gifs.sh b/os-specific/darwin/home/RaycastScripts/reaction-gifs.sh new file mode 100755 index 0000000..35d80bf --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/reaction-gifs.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Reaction Gifs +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +open 'smb://nas._smb._tcp.local/Nextcloud/Pictures/ReactionGifs' diff --git a/os-specific/darwin/home/RaycastScripts/restart-busycal.sh b/os-specific/darwin/home/RaycastScripts/restart-busycal.sh new file mode 100755 index 0000000..fe38d08 --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/restart-busycal.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Restart BusyCal Menu +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +# Documentation: +# @raycast.description Kills the BusyCal process + +pkill busycal-setapp.alarm +open /Applications/Setapp/BusyCal.app diff --git a/os-specific/darwin/home/RaycastScripts/restart-logi-daemon.sh b/os-specific/darwin/home/RaycastScripts/restart-logi-daemon.sh new file mode 100755 index 0000000..e20d863 --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/restart-logi-daemon.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Restart Logi daemon +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +# Documentation: +# @raycast.description Kills the LogiMgr process to allow a new one to spawn + +pkill LogiMgr diff --git a/os-specific/darwin/home/RaycastScripts/things.sh b/os-specific/darwin/home/RaycastScripts/things.sh new file mode 100755 index 0000000..b0460f8 --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/things.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Things +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon 🤖 + +open 'smb://nas._smb._tcp.local/Things' + diff --git a/os-specific/darwin/home/RaycastScripts/toggle-mic.applescript b/os-specific/darwin/home/RaycastScripts/toggle-mic.applescript new file mode 100755 index 0000000..266297c --- /dev/null +++ b/os-specific/darwin/home/RaycastScripts/toggle-mic.applescript @@ -0,0 +1,34 @@ +#!/usr/bin/osascript + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Toggle Microphone +# @raycast.mode silent +# @raycast.packageName System + +# Optional parameters: +# @raycast.icon 🎙 + +# Documentation: +# @raycast.author Matthew Morek +# @raycast.authorURL https://github.com/matthewmorek +# @raycast.description Toggles microphone. + + +on getMicrophoneVolume() + input volume of (get volume settings) +end getMicrophoneVolume +on disableMicrophone() + set volume input volume 0 + log "Microphone turned off 🔴" +end disableMicrophone +on enableMicrophone() + set volume input volume 100 + log "Microphone turned on 🟢" +end enableMicrophone + +if getMicrophoneVolume() is greater than 0 then + disableMicrophone() +else + enableMicrophone() +end if