feat: initial infra repo
- docker-services: 14 generic compose templates (portainer, npm, vaultwarden, gitea, jotty, nextcloud-aio, rustdesk, audiobookshelf, calibre-web, plex, erugo, jswiki, speedtest, watchtower) - install-scripts: bash scripts for Ubuntu server bootstrap, docker, portainer, npm, backup, restore - ansible: 4 playbooks (bootstrap, deploy-services, update-services, security-hardening) + roles skeleton - hermes-install: Hermes CLI setup on macOS - macos-setup: Brewfile + osx-defaults + fish-config - home-nas-tools: metadata index for NAS projects (no binaries) - docs: architecture, security, contributing - README, LICENSE (MIT), .gitignore
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# macOS výchozí nastavení (defaults write)
|
||||
# Spustit JEDNOU po čisté instalaci macOS
|
||||
#
|
||||
# Vyžaduje: macOS (testováno na 13+)
|
||||
#
|
||||
set -euo pipefail
|
||||
|
||||
if [[ "$(uname)" != "Darwin" ]]; then
|
||||
echo "Tento skript je pouze pro macOS" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "▶ Nastavuji macOS defaults..."
|
||||
|
||||
# ──── Finder ────
|
||||
# Zobrazit skryté soubory
|
||||
defaults write com.apple.finder AppleShowAllFiles -bool true
|
||||
# Zobrazit všechny přípony
|
||||
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
||||
# Zobrazit cestovní panel
|
||||
defaults write com.apple.finder ShowPathbar -bool true
|
||||
# Zobrazit stavový řádek
|
||||
defaults write com.apple.finder ShowStatusBar -bool true
|
||||
# Výchozí pohled: seznam
|
||||
defaults write com.apple.finder FXPreferredViewStyle -string "Nlsv"
|
||||
# Vyhledávání v aktuálním adresáři (default od Mojave)
|
||||
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
||||
# Rozšíření "Uložit dialog" o textové lišty
|
||||
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
||||
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
|
||||
# Default nový Finder okno: domovský adresář
|
||||
defaults write com.apple.finder NewWindowTarget -string "PfHm"
|
||||
|
||||
# ──── Dock ────
|
||||
# Auto-hide
|
||||
defaults write com.apple.dock autohide -bool true
|
||||
# Rychlejší animace
|
||||
defaults write com.apple.dock autohide-time-modifier -float 0.3
|
||||
defaults write com.apple.dock expose-animation-duration -float 0.2
|
||||
# Zobrazit indikátory otevřených aplikací
|
||||
defaults write com.apple.dock show-process-indicators -bool true
|
||||
# Velikost ikon
|
||||
defaults write com.apple.dock tilesize -int 48
|
||||
# Skrýt nedávné aplikace
|
||||
defaults write com.apple.dock show-recents -bool false
|
||||
|
||||
# ──── Klávesnice ────
|
||||
# Rychlejší opakování kláves
|
||||
defaults write NSGlobalDomain KeyRepeat -int 2
|
||||
defaults write NSGlobalDomain InitialKeyRepeat -int 15
|
||||
# Plná klávesnice pro přístup
|
||||
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
|
||||
# Funkční klávesy jako F1-F12
|
||||
defaults write NSGlobalDomain "com.apple.keyboard.fnState" -bool true
|
||||
|
||||
# ──── Trackpad ────
|
||||
# Tap-to-click
|
||||
defaults write com.apple.AppleMultitouchTrackpad Clicking -bool true
|
||||
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad Clicking -bool true
|
||||
# Rychlejší tracking
|
||||
defaults write NSGlobalDomain com.apple.trackpad.scaling -float 1.5
|
||||
|
||||
# ──── Safari ────
|
||||
# Zobrazit vývojářské nástroje
|
||||
defaults write com.apple.Safari IncludeDevelopMenu -bool true
|
||||
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
|
||||
# Privacy: omezit cross-site tracking
|
||||
defaults write com.apple.Safari WebKitStorageBlockingPolicy -int 1
|
||||
|
||||
# ──── TextEdit ────
|
||||
# Plain text mode
|
||||
defaults write com.apple.TextEdit RichText -int 0
|
||||
|
||||
# ──── Terminal ────
|
||||
# UTF-8
|
||||
defaults write com.apple.terminal StringEncodings -array 4
|
||||
|
||||
echo "✓ macOS defaults nastaveny"
|
||||
echo
|
||||
echo "Pro aplikaci změn: odhlas se a prihlas se, nebo restartuj Finder/Dock:"
|
||||
echo " killall Finder Dock"
|
||||
Reference in New Issue
Block a user