<commit_before>#!/bin/bash
# This script sets a lot of `defaults`. It
# - deactivates all sorts of animations
# - shows hidden files
# - optimizes the Finder
# - improves on the Dock



printf "Some customizations require root priveledges. Please enter your password.\n"
sudo -v
printf "Thanks.\n\n"



if ask 'Disable startup sound?'; then
	sudo nvram SystemAudioVolume=%80
fi

if ask 'Increase window resize speed for Cocoa applications?'; then
	defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
fi

if ask 'Do not restore windows after ⌘ + Q?'; then
	defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
fi

if ask 'Disable menu bar transparency?'; then
	defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
fi

if ask 'Top right screen corner → Activate screen saver?'; then
	defaults write com.apple.dock wvous-tr-corner -int 5
	defaults write com.apple.dock wvous-tr-modifier -int 0
fi

if ask 'Expand save panel by default?'; then
	defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
fi

if ask 'Expand print panel by default?'; then
	defaults write NSGlobalDomain NSNavPanelExpandedStateForPrint -bool true<commit_msg>disable startup sound, again :grin:<commit_after>#!/bin/bash
# This script sets a lot of `defaults`. It
# - deactivates all sorts of animations
# - shows hidden files
# - optimizes the Finder
# - improves on the Dock



printf "Some customizations require root priveledges. Please enter your password.\n"
sudo -v
printf "Thanks.\n\n"



if ask 'Disable startup sound?'; then
	sudo nvram SystemAudioVolume=" "
fi

if ask 'Increase window resize speed for Cocoa applications?'; then
	defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
fi

if ask 'Do not restore windows after ⌘ + Q?'; then
	defaults write com.apple.systempreferences NSQuitAlwaysKeepsWindows -bool false
fi

if ask 'Disable menu bar transparency?'; then
	defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false
fi

if ask 'Top right screen corner → Activate screen saver?'; then
	defaults write com.apple.dock wvous-tr-corner -int 5
	defaults write com.apple.dock wvous-tr-modifier -int 0
fi

if ask 'Expand save panel by default?'; then
	defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
fi

if ask 'Expand print panel by default?'; then
	defaults write NSGlobalDomain NSNavPanelExpandedStateForPrint -bool true
{'fraction_non_alphanumeric': 0.0680327868852459, 'fraction_numerical': 0.005737704918032787, 'mean_word_length': 4.730046948356808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7008815', 'n_tokens_mistral': 748, 'n_tokens_neox': 690, 'n_words': 301}