Skip to content

Instantly share code, notes, and snippets.

View umkl's full-sized avatar

Mike umkl

  • Pernerstorf
  • 13:43 (UTC +02:00)
View GitHub Profile
@umkl
umkl / show-hide-macos-desktop-icons.zshrc
Last active April 9, 2024 14:35
easily hide and show desktop icons on macos
alias hide-desktop="defaults write com.apple.finder CreateDesktop false; killall Finder"
alias show-desktop="defaults write com.apple.finder CreateDesktop true; killall Finder"
@umkl
umkl / config.fish
Created January 10, 2025 11:43
My current fish config
# Only execute commands in interactive sessions
if status is-interactive
# Ensure Homebrew is in the PATH for everything installed via Homebrew
if type brew &>/dev/null
set -gx PATH $PATH (brew --prefix)/bin
set -gx PATH $PATH (brew --prefix)/sbin
end
end
@umkl
umkl / script.bash
Created October 6, 2025 09:55
toggle bg sounds macos
#!/bin/bash
# Check if background sounds is enabled
enabled=$(defaults read com.apple.ComfortSounds comfortSoundsEnabled 2>/dev/null)
if [[ "$enabled" == "1" ]]; then
# Disable background sounds
defaults write com.apple.ComfortSounds comfortSoundsEnabled -bool NO
launchctl kill SIGHUP gui/$(id -u)/com.apple.accessibility.heard
else