aisamu
mic = hs.audiodevice.findInputByName("MacBook Pro Microphone")
function handle_deselected(_, type)
if (type == "gone") then
if not mic:inUse() then
mic:setDefaultInputDevice()
end
end
end
mic:watcherCallback(handle_deselected)
mic:watcherStart()Personal Data Preservation, Inspired by Ancient Writing https://ericnormand.me/clojuresync/will-byrd
One thing that helped me tremendously migrating the configuration bits was to leave "scratchpads" that I could tweak quickly without a full rebuild cycle:
programs.kitty.extraConfig = ''
include ${config.xdg.configHome}/kitty/temporary.conf
'';
Then my ~/.config/kitty looks like this: ~/.config/kitty $> ls
87 Dec 13 11:39 kitty.conf -> /nix/store/....-home-manager-files/.config/kitty/kitty.conf
381 Dec 13 11:42 temporary.confThe docs[2] are very helpful!
[1]: https://github.com/Homebrew/homebrew-bundle
[2]: https://daiderd.com/nix-darwin/manual/index.html#opt-homebre...
Details here: https://www.reddit.com/r/emacs/comments/11cezoq/magit_mainta...
Direct donation link: https://magit.vc/donate/
tree: aliased to echo '2\n3\n4\n5' | fzf --preview='exa -l -T -L {} --git-ignore' --reverse --preview-window down:99% --bind 'j:down,k:up,q:cancel,enter:cancel'This is the main operating principle of http://www.structuredprocrastination.com
Then it's easy to adjust the screen's brightness/turn on lights until the screen is not overexposed/the environment is not underexposed.
[1] - tested on Safari, but still...
https://blog.twitter.com/official/en_us/topics/product/2017/...
It's surprisingly boring (in the good sense).