Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into acourtneybrown/blueto…
Browse files Browse the repository at this point in the history
…oth-in-menubar

* origin/main:
  Incorporate change to use `sudo_local` (#178)
  Install Xcode via `brew mas` (#179)
  Install logitech-harmony-desktop via Homebrew cask (#176)
  Install myharmony via choco (#177)
  • Loading branch information
acourtneybrown committed Oct 3, 2023
2 parents 1df859e + 7b8d930 commit 1bc3753
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions dotfiles/finicky.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function remove1pId(urlString) {

const noContainerHosts = new Set(['duckduckgo.com', 'www.google.com', 'www.amazon.com', 'wikipedia.org'])
const bundleIdsFor1p = new Set(["com.agilebits.onepassword7", "com.1password.1password"])
const bundleIdsForHarmony = new Set(["com.logitech.myharmony"])
const bundleIdsForAlfred = new Set(["com.runningwithcrayons.Alfred"])
const meContainerIds = [
{%@@ for id in firefox_me_ids.split() @@%}
Expand Down Expand Up @@ -128,6 +129,9 @@ module.exports = {
if (bundleIdsFor1p.has(opener.bundleId)) {
return true
}
if (bundleIdsForHarmony.has(opener.bundleId)) {
return true
}

if (bundleIdsForAlfred.has(opener.bundleId)) {
return !noContainerHosts.has(url.host) || contains1pId(url.search)
Expand Down
13 changes: 11 additions & 2 deletions script/lib/macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,17 @@ function macos::setup_security() {
# shellcheck disable=SC2010
if ls /usr/lib/pam | grep -q "pam_tid.so"; then
echo "Configuring sudo authentication using TouchID:"
PAM_FILE="/etc/pam.d/sudo"
FIRST_LINE="# sudo: auth account password session"
if [[ -f /etc/pam.d/sudo_local || -f /etc/pam.d/sudo_local.template ]]; then
# New in macOS Sonoma, survives updates.
PAM_FILE="/etc/pam.d/sudo_local"
FIRST_LINE="# sudo_local: local config file which survives system update and is included for sudo"
if [[ ! -f "/etc/pam.d/sudo_local" ]]; then
echo "$FIRST_LINE" | sudo tee "$PAM_FILE" >/dev/null
fi
else
PAM_FILE="/etc/pam.d/sudo"
FIRST_LINE="# sudo: auth account password session"
fi
if grep -q pam_tid.so "${PAM_FILE}"; then
echo "ok"
elif ! head -n1 "${PAM_FILE}" | grep -q "${FIRST_LINE}"; then
Expand Down
1 change: 1 addition & 0 deletions script/lib/resources/Brewfile.mac
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,4 @@ mas "Keynote", id: 409183694
mas "Magnet", id: 441258766
mas "Numbers", id: 409203825
mas "Pages", id: 409201541
mas "Xcode", id: 497799835
3 changes: 2 additions & 1 deletion script/lib/resources/Brewfile.personal
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ brew "twilio"

cask "avidemux"
cask "epic-games"
cask "gnucash"
cask "gog-galaxy"
cask "google-chrome"
cask "gnucash"
cask "handbrake"
cask "kid3"
cask "kindle"
cask "logitech-harmony-desktop"
cask "netdownloadhelpercoapp"
cask "raspberry-pi-imager"
cask "sonos"
Expand Down
1 change: 1 addition & 0 deletions script/win-admin-setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ choco install -y epicgameslauncher
choco install -y firefox
choco install -y geforce-experience
choco install -y goggalaxy
choco install -y myharmony
choco install -y retroarch
choco install -y slack
choco install -y steam

0 comments on commit 1bc3753

Please sign in to comment.