Skip to content

Instantly share code, notes, and snippets.

@sydragos
sydragos / MacOSDisableAudioInput.md
Created May 11, 2023 17:48
How to keep disabling Pixel Buds Pro input device on MacOS Ventura

Why:

  • having the input device "Pixel Buds Pro" lowers the audio quality significantly
  • MacOS constantly selects it instead of builtin microphone every time it connects
  • there seems to be a LOT of conflicting info on the interwebz on how to do it

Prerequisites: homebrew installed, including brew install SwitchAudioSource

Need 2 files, first create an AppleScript DisableAudioInput.scpt in your /Users// folder using Utilities\Script Editor.

-- Get the current audio input device
@sydragos
sydragos / bt_moode.sh
Last active March 16, 2024 04:42
Adding Additional Bluetooth Codec Support to Moode
#!/usr/bin/env bash
# Inspired by https://steveblock.com/moode-bluetooth-codecs/
# and his post at https://moodeaudio.org/forum/showthread.php?tid=3683
# with an extra sprinkle of https://github.com/anonymix007/libldacdec
# and built with latest dependencies on moOde 8.3.2 on rpi zero W
#
# Currently having issues with LDAC itself
LDAC_INCLUDE_DIR=/usr/include/ldac
@sydragos
sydragos / wake-up-light-alarm-with-sunrise-effect.yaml
Created September 24, 2022 04:10 — forked from sbyx/wake-up-light-alarm-with-sunrise-effect.yaml
Home Assistant Blueprint: Wake-up light alarm with sunrise effect
blueprint:
name: Wake-up light alarm with sunrise effect
description: 'A wake-up light alarm with a brightness and color temperature sunrise
effect. Note: Requires date_time_iso sensor in configuration, not manually executable!'
domain: automation
input:
light_entity:
name: Wake-up light entity
description: The light to control. Turning it off during the sunrise will keep
it off. Color temperature range is auto-detected.