Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature/xdg #32

Closed
wants to merge 128 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
3a65dcb
removes stats and updates comments
edheltzel Jan 29, 2024
d7f1961
Add zsh configuration files for stow
edheltzel Jan 29, 2024
9158b19
setting fish for stow
edheltzel Jan 29, 2024
2e0cd36
setting up fish for stow
edheltzel Jan 29, 2024
8025212
Remove deprecated nvim setup script
edheltzel Jan 29, 2024
9a16832
adds nvim stow package and copies lazyvim to nvim dir
edheltzel Jan 29, 2024
2cba758
stow controls `dots/dot-*` now
edheltzel Jan 29, 2024
b0ab872
todos for next steps
edheltzel Jan 30, 2024
f739ffb
adds warp to dotfiles
edheltzel Jan 30, 2024
93fbe7c
Update font settings in .gitconfig
edheltzel Jan 30, 2024
2ffaa6f
Add Keychron Q11 ANSI Knob layout configuration to misc/
edheltzel Jan 30, 2024
0e4f450
setup config with stow
edheltzel Jan 30, 2024
d5bd371
add stow ignore to config
edheltzel Jan 30, 2024
6d535dc
moves custom utils into fish/ dir - since these are used with a custo…
edheltzel Jan 30, 2024
04e266a
moved fish into config/ and renamed all dots/ using the . prefix to k…
edheltzel Jan 30, 2024
0447edc
moves nvim into config/
edheltzel Jan 30, 2024
ef03441
removes raycast from config/
edheltzel Jan 30, 2024
336af01
raycast export
edheltzel Jan 30, 2024
af00610
move zsh files to dots/
edheltzel Jan 30, 2024
ee87255
remove bun from packages/setup.sh
edheltzel Jan 30, 2024
f1cadb6
adds stow ignores
edheltzel Jan 30, 2024
acd914b
moved config/vscode to misc/vscode
edheltzel Jan 30, 2024
11ab5ab
removes the config/vscode
edheltzel Jan 30, 2024
80bffca
if I'm not using it then im removing it.
edheltzel Jan 30, 2024
86181cd
making fish a stow package.... again
edheltzel Jan 30, 2024
0f6cfc8
making nvim a stow package again
edheltzel Jan 30, 2024
af89e5f
Add .stow-local-ignore file to ignore setup.sh and .DS_Store
edheltzel Jan 30, 2024
b9d2eed
WIP: adds stow to the install script
edheltzel Jan 30, 2024
5dd67c0
includes a stow global ignore and removes redundant local ignores
edheltzel Jan 30, 2024
cad78f1
adding custom raycast script command
edheltzel Jan 31, 2024
b20236b
comments
edheltzel Jan 31, 2024
02f2584
iterm2 udpate pref
edheltzel Jan 31, 2024
214ce33
local an global ignores for stow
edheltzel Jan 31, 2024
7fe736c
updates makefile support - should include in all projects
edheltzel Jan 31, 2024
fd3c9a0
adds makefile for stowing
edheltzel Jan 31, 2024
4d7baab
moves additional scripts back to package directories
edheltzel Jan 31, 2024
ffd3d78
update duti for vscode insiders
edheltzel Jan 31, 2024
2eb6a0c
press and hold disable options for vscode and insiders
edheltzel Jan 31, 2024
69ef563
custom keys for warp & global dictionary update
edheltzel Jan 31, 2024
64497aa
WIP: bootstrap and install scripts
edheltzel Jan 31, 2024
a866531
WIP readme needs updated
edheltzel Jan 31, 2024
4538f2d
adding bigmac to gitconfig.local.
edheltzel Jan 31, 2024
297ffe6
update echo for make
edheltzel Jan 31, 2024
954430e
update keyboard
edheltzel Jan 31, 2024
0d0906b
fixes eza error when using the -F flag, its no longer needed with eza…
edheltzel Feb 1, 2024
c176545
removes symlink to old dotfiles locations
edheltzel Feb 1, 2024
2f3d257
lazyvim customization - nothing really yet
edheltzel Feb 1, 2024
664a7ad
includes all linked to help
edheltzel Feb 1, 2024
ff91e98
update todos
edheltzel Feb 1, 2024
8680012
Add git-undo function to fish shell
edheltzel Feb 1, 2024
a09eb0c
Update unset function description
edheltzel Feb 1, 2024
64fef92
includes typescript support for lazyvim
edheltzel Feb 1, 2024
5c82a31
adds git-cbr command to checkout branches with changes .
edheltzel Feb 1, 2024
347908f
updates git functions and aliases
edheltzel Feb 1, 2024
63a21e4
adds tldrf to search through all the tldr pages with fzf
edheltzel Feb 1, 2024
7a867a6
readme update: moved todos to readme and started update the readme docs
edheltzel Feb 1, 2024
99fc392
lazyvim keymaps to match vspacecode which key
edheltzel Feb 1, 2024
29dd847
readme update with todos
edheltzel Feb 1, 2024
610c3a4
readme update with todos
edheltzel Feb 2, 2024
d340dec
lazyvim lock
edheltzel Feb 2, 2024
3243cad
warp key bindings
edheltzel Feb 2, 2024
3003ddc
minor changes to fish
edheltzel Feb 2, 2024
838fcaa
like warp but iterm is just better
edheltzel Feb 2, 2024
f54e46a
saves window arrangement
edheltzel Feb 2, 2024
9910258
giving iterm some love and configuring windows and setting up hotkeys
edheltzel Feb 2, 2024
8dced3a
adds vscode setting and keymaps
edheltzel Feb 3, 2024
82163a0
comment
edheltzel Feb 3, 2024
6c9249d
iterm2 settings
edheltzel Feb 3, 2024
e5c9fd3
todo tree update
edheltzel Feb 3, 2024
92e6dda
Update README
edheltzel Feb 3, 2024
187b648
fixed typo
edheltzel Feb 3, 2024
63c3b17
adding vscode to stow packages in makefile
edheltzel Feb 3, 2024
eb98dcb
Update README.md with new customizations and settings
edheltzel Feb 3, 2024
21b7b2b
Add GNU Stow and makefile for managing dotfiles
edheltzel Feb 3, 2024
4cea94b
stow ignore update
edheltzel Feb 3, 2024
48821a4
updating readme
edheltzel Feb 3, 2024
8deca20
lazyvim update and iterm2 settings
edheltzel Feb 3, 2024
06bf8b0
Update Brewfile with new dependencies
edheltzel Feb 3, 2024
260cc29
removes duplicate settings in vscode
edheltzel Feb 3, 2024
a49fac1
adds `.config/wallpapers`
edheltzel Feb 3, 2024
868cea1
includes abbrivation for `~/.local/`
edheltzel Feb 4, 2024
7ff61c3
tweaks iterm2 settings and profiles
edheltzel Feb 4, 2024
7e942b9
includes new git alias `git addi` that uses fzf
edheltzel Feb 4, 2024
6734dc1
add todo about plug.fish
edheltzel Feb 4, 2024
d2e62dd
removes tabtab completions from fish
edheltzel Feb 4, 2024
262d42b
removes titles from iterm2 split panes for more minimal look
edheltzel Feb 4, 2024
2c2ab87
update make help language
edheltzel Feb 4, 2024
77b511e
dropping support for Fisher - migration to Plug.fish
edheltzel Feb 4, 2024
66c8c8e
update readme and xdg support
edheltzel Feb 4, 2024
dfda09d
update readme and remove gitnow keybindings - rarely use them
edheltzel Feb 4, 2024
c232aba
fisher plugins file
edheltzel Feb 4, 2024
b60620c
adding only my completions
edheltzel Feb 4, 2024
c528f36
raycast backup
edheltzel Feb 4, 2024
cda5598
cleaning up only my custom fish files
edheltzel Feb 4, 2024
3bac99e
update iterm directory to iterm2
edheltzel Feb 4, 2024
deb7bb4
update todos
edheltzel Feb 4, 2024
b75164a
Update XDG Base Directory Specification paths
edheltzel Feb 5, 2024
f27ed1c
fix typo
edheltzel Feb 5, 2024
7891526
Add color codes and improve Makefile
edheltzel Feb 5, 2024
f2efc3c
Add makefile for managing dotfiles with Stow
edheltzel Feb 5, 2024
a6d044c
changed first task from `all` to `default`
edheltzel Feb 5, 2024
e506aa2
add some gh aliases for faster assignment of issues and workflow
edheltzel Feb 5, 2024
4beb1bc
update lazyvim
edheltzel Feb 5, 2024
a32f4b3
iterm2 window alignment update
edheltzel Feb 5, 2024
87c33af
match language from README
edheltzel Feb 5, 2024
4fe55ec
cspell dictionary update
edheltzel Feb 5, 2024
0bc8687
move images to misc/__images
edheltzel Feb 5, 2024
da1f6a7
update packages script
edheltzel Feb 5, 2024
39f991c
Updates Git Project Manager base folders to include ~/.dotfiles
edheltzel Feb 5, 2024
d9a2f44
private ;)
edheltzel Feb 5, 2024
2b79748
update to readme
edheltzel Feb 5, 2024
bbcc08b
Update Makefile and remove wallpapers
edheltzel Feb 6, 2024
d5bd7a6
updates stow packages to includes local
edheltzel Feb 6, 2024
a7dd5f3
move wallpaper to live in ~/.local/share/wallpapers
edheltzel Feb 6, 2024
1112aee
adding zed and updating comments
edheltzel Feb 6, 2024
3867ef4
update lazyvim
edheltzel Feb 6, 2024
8936e6d
Update Brewfile with new default description for Visual Studio Code I…
edheltzel Feb 6, 2024
5cdb8d1
trying to stay true to XDG standards
edheltzel Feb 6, 2024
d9aa72c
Update local directory description
edheltzel Feb 6, 2024
3ad096e
Update vscode sync settings feature
edheltzel Feb 6, 2024
0364afb
Add system provisioning and installation functions***
edheltzel Feb 6, 2024
1afcf61
iterm2 profile update
edheltzel Feb 6, 2024
0742d7e
bootstrap is now install for remote
edheltzel Feb 6, 2024
fb5a1da
Update Makefile and install.sh scripts
edheltzel Feb 6, 2024
126a6d5
update iterm window styling
edheltzel Feb 6, 2024
c9e0556
Update bootstrap script and installation instructions
edheltzel Feb 6, 2024
7ba0c90
Fix indentation in Makefile
edheltzel Feb 6, 2024
1f2b5c5
fix duplication with ghpr
edheltzel Feb 6, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
if I'm not using it then im removing it.
if you need to see all the options check out https://github.com/mathiasbynens/dotfiles/blob/master/.macos
  • Loading branch information
edheltzel committed Jan 30, 2024
commit 80bffca595bf2087052d5b0f7823cb0ff2ac6e25
130 changes: 8 additions & 122 deletions macos/01-preferences.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ sudo spctl --master-disable
# %00 = enable %01 = disable
sudo nvram StartupMute=%00

# Disable transparency in the menu bar and elsewhere on Yosemite
#defaults write com.apple.universalaccess reduceTransparency -bool true

# Appearance For Buttons, Menus, and Windows
# Blue : 1 (default)
# Graphite : 6
Expand All @@ -36,8 +33,6 @@ defaults write NSGlobalDomain AppleInterfaceStyle -string "Dark"
# Graphite : `0.847059 0.847059 0.862745`
# Silver : `0.776500 0.776500 0.776500` (custom)
defaults write NSGlobalDomain AppleHighlightColor -string '0.847059 0.847059 0.862745'
# Translucent menu bar - disabled in Yosemite
# defaults write NSGlobalDomain AppleEnableMenuBarTransparency -bool false

# Sidebar icon size
# Small : 1
Expand All @@ -55,10 +50,6 @@ defaults write NSGlobalDomain AppleShowScrollBars -string 'WhenScrolling'
# Disable the over-the-top focus ring animation
defaults write NSGlobalDomain NSUseAnimatedFocusRing -bool false

# Disable smooth scrolling
# (Uncomment if you’re on an older Mac that messes up the animation)
#defaults write NSGlobalDomain NSScrollAnimationEnabled -bool false

# Increase window resize speed for Cocoa applications
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001

Expand Down Expand Up @@ -106,19 +97,9 @@ defaults write com.apple.CrashReporter DialogType -string "none"
# Set Help Viewer windows to non-floating mode
defaults write com.apple.helpviewer DevMode -bool true

# Reveal IP address, hostname, OS version, etc. when clicking the clock
# in the login window
#sudo defaults write /Library/Preferences/com.apple.loginwindow AdminHostInfo HostName

# Restart automatically if the computer freezes
sudo systemsetup -setrestartfreeze on

# Never go into computer sleep mode
#sudo systemsetup -setcomputersleep Off > /dev/null

# Disable Notification Center and remove the menu bar icon
#launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist 2> /dev/null <- does not work

# Disable automatic capitalization as it’s annoying when typing code
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool false

Expand Down Expand Up @@ -163,19 +144,13 @@ defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadRightC
defaults -currentHost write NSGlobalDomain com.apple.trackpad.trackpadCornerClickBehavior -int 1
defaults -currentHost write NSGlobalDomain com.apple.trackpad.enableSecondaryClick -bool true

# Enable “natural” (Lion-style) scrolling
#defaults write NSGlobalDomain com.apple.swipescrolldirection -bool true

# Increase sound quality for Bluetooth headphones/headsets
defaults write com.apple.BluetoothAudioAgent "Apple Bitpool Min (editable)" -int 40

# Enable full keyboard access for all controls
# (e.g. enable Tab in modal dialogs)
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3

# Follow the keyboard focus while zoomed in
#defaults write com.apple.universalaccess closeViewZoomFollowsFocus -bool true

# Disable press-and-hold accent popup in favor of repeat.
defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false

Expand All @@ -186,9 +161,6 @@ defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false
defaults write NSGlobalDomain InitialKeyRepeat -int 10
defaults write NSGlobalDomain KeyRepeat -int 2




# Set language and text formats
# Note: if you’re in the US, replace `EUR` with `USD`, `Centimeters` with
# `Inches`, `en_GB` with `en_US`, and `true` with `false`.
Expand All @@ -207,27 +179,15 @@ launchctl unload -w /System/Library/LaunchAgents/com.apple.rcd.plist 2> /dev/nul
# Desktop, Screen saver & Screen stuff #
################################################################################

# Set a custom wallpaper image. `DefaultDesktop.jpg` is already a symlink, and
# all wallpapers are in `/Library/Desktop Pictures/`. The default is `Wave.jpg`.
#rm -rf ~/Library/Application Support/Dock/desktoppicture.db
#sudo rm -rf /System/Library/CoreServices/DefaultDesktop.jpg
#sudo ln -s /path/to/your/image /System/Library/CoreServices/DefaultDesktop.jpg


# # Set Screen Savers
# defaults -currentHost write com.apple.screensaver moduleDict "
# <dict>
# <key>moduleName</key><string>Shell</string>
# <key>path</key><string>/System/Library/Screen Savers/Drift.saver</string>
# <key>type</key><integer>1</integer>
# </dict>
# "

# # Start after 30 Minutes
# defaults -currentHost write com.apple.screensaver idleTime -int 1800

# # Show with clock (default)
# defaults -currentHost write com.apple.screensaver showClock -bool false
defaults -currentHost write com.apple.screensaver moduleDict "
<dict>
<key>moduleName</key><string>Shell</string>
<key>path</key><string>/System/Library/Screen Savers/Drift.saver</string>
<key>type</key><integer>1</integer>
</dict>
"

###############################################################################
# Screen #
###############################################################################
Expand Down Expand Up @@ -267,12 +227,6 @@ defaults write com.apple.dock magnification -bool false
# Position on screen: 'left', 'bottom', 'right'
defaults write com.apple.dock orientation -string "bottom"

# Dock pinning: 'start', 'middle', 'end'
# defaults write com.apple.dock pinning -string 'middle'

# Disable double-click a window's title bar to minimize
# defaults write NSGlobalDomain AppleMiniaturizeOnDoubleClick -bool true

# DON'T minimize windows into their application’s icon
defaults write com.apple.dock minimize-to-application -bool false

Expand Down Expand Up @@ -303,15 +257,6 @@ defaults write com.apple.dock expose-animation-duration -float 0.1
# (i.e. use the old Exposé behavior instead)
defaults write com.apple.dock expose-group-by-app -bool false

# Disable Dashboard
#defaults write com.apple.dashboard mcx-disabled -bool true

# Don’t show Dashboard as a Space
#defaults write com.apple.dock dashboard-in-overlay -bool true

# Don’t automatically rearrange Spaces based on most recent use
#defaults write com.apple.dock mru-spaces -bool false

# Remove the auto-hiding Dock delay
defaults write com.apple.dock autohide-delay -float 0
# Remove the animation when hiding/showing the Dock
Expand All @@ -326,17 +271,6 @@ defaults write com.apple.dock showhidden -bool true
# Don’t show recent applications in Dock
defaults write com.apple.dock show-recents -bool false

# Add a spacer to the left side of the Dock (where the applications are)
#defaults write com.apple.dock persistent-apps -array-add '{tile-data={}; tile-type="spacer-tile";}'
# Add a spacer to the right side of the Dock (where the Trash is)
#defaults write com.apple.dock persistent-others -array-add '{tile-data={}; tile-type="spacer-tile";}'

# Disable the Launchpad gesture (pinch with thumb and three fingers)
#defaults write com.apple.dock showLaunchpadGestureEnabled -int 0

# Reset Launchpad, but keep the desktop wallpaper intact
#find "${HOME}/Library/Application Support/Dock" -name "*-*.db" -maxdepth 1 -delete

# Add iOS & Watch Simulator to Launchpad
sudo ln -sf "/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app" "/Applications/Simulator.app"
sudo ln -sf "/Applications/Xcode.app/Contents/Developer/Applications/Simulator (Watch).app" "/Applications/Simulator (Watch).app"
Expand Down Expand Up @@ -370,54 +304,6 @@ defaults write com.apple.dock wvous-tr-modifier -int 0
defaults write com.apple.dock wvous-br-corner -int 4
defaults write com.apple.dock wvous-br-modifier -int 0

###############################################################################
# Spotlight #
###############################################################################

# Hide Spotlight tray-icon (and subsequent helper)
#sudo chmod 600 /System/Library/CoreServices/Search.bundle/Contents/MacOS/Search
# Disable Spotlight indexing for any volume that gets mounted and has not yet
# been indexed before.
# Use `sudo mdutil -i off "/Volumes/foo"` to stop indexing any volume.
# sudo defaults write /.Spotlight-V100/VolumeConfiguration Exclusions -array "/Volumes"
# Change indexing order and disable some search results
# Yosemite-specific search results (remove them if you are using macOS 10.9 or older):
# MENU_DEFINITION
# MENU_CONVERSION
# MENU_EXPRESSION
# MENU_SPOTLIGHT_SUGGESTIONS (send search queries to Apple)
# MENU_WEBSEARCH (send search queries to Apple)
# MENU_OTHER
# defaults write com.apple.spotlight orderedItems -array \
# '{"enabled" = 1;"name" = "APPLICATIONS";}' \
# '{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
# '{"enabled" = 1;"name" = "DIRECTORIES";}' \
# '{"enabled" = 1;"name" = "PDF";}' \
# '{"enabled" = 1;"name" = "FONTS";}' \
# '{"enabled" = 0;"name" = "DOCUMENTS";}' \
# '{"enabled" = 0;"name" = "MESSAGES";}' \
# '{"enabled" = 0;"name" = "CONTACT";}' \
# '{"enabled" = 0;"name" = "EVENT_TODO";}' \
# '{"enabled" = 0;"name" = "IMAGES";}' \
# '{"enabled" = 0;"name" = "BOOKMARKS";}' \
# '{"enabled" = 0;"name" = "MUSIC";}' \
# '{"enabled" = 0;"name" = "MOVIES";}' \
# '{"enabled" = 0;"name" = "PRESENTATIONS";}' \
# '{"enabled" = 0;"name" = "SPREADSHEETS";}' \
# '{"enabled" = 0;"name" = "SOURCE";}' \
# '{"enabled" = 0;"name" = "MENU_DEFINITION";}' \
# '{"enabled" = 0;"name" = "MENU_OTHER";}' \
# '{"enabled" = 0;"name" = "MENU_CONVERSION";}' \
# '{"enabled" = 0;"name" = "MENU_EXPRESSION";}' \
# '{"enabled" = 0;"name" = "MENU_WEBSEARCH";}' \
# '{"enabled" = 0;"name" = "MENU_SPOTLIGHT_SUGGESTIONS";}'
# Load new settings before rebuilding the index
# killall mds > /dev/null 2>&1
# Make sure indexing is enabled for the main volume
# sudo mdutil -i on / > /dev/null
# Rebuild the index from scratch
# sudo mdutil -E / > /dev/null

###############################################################################
# Energy saving #
###############################################################################
Expand Down
22 changes: 0 additions & 22 deletions macos/02-apps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
# Finder #
###############################################################################

# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
#defaults write com.apple.finder QuitMenuItem -bool true

# Finder: disable window animations and Get Info animations
defaults write com.apple.finder DisableAllAnimations -bool true

Expand Down Expand Up @@ -195,12 +192,6 @@ defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebK
defaults write com.apple.Safari WebKitJavaScriptCanOpenWindowsAutomatically -bool false
defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2JavaScriptCanOpenWindowsAutomatically -bool false

# Disable auto-playing video
#defaults write com.apple.Safari WebKitMediaPlaybackAllowsInline -bool false
#defaults write com.apple.SafariTechnologyPreview WebKitMediaPlaybackAllowsInline -bool false
#defaults write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false
#defaults write com.apple.SafariTechnologyPreview com.apple.Safari.ContentPageGroupIdentifier.WebKit2AllowsInlineMediaPlayback -bool false

# Enable “Do Not Track”
defaults write com.apple.Safari SendDoNotTrackHTTPHeader -bool true

Expand Down Expand Up @@ -265,9 +256,6 @@ defaults -currentHost write com.apple.ImageCapture disableHotPlug -bool true
# Messages #
###############################################################################

# Disable automatic emoji substitution (i.e. use plain text smileys)
#defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticEmojiSubstitutionEnablediMessage" -bool false

# Disable smart quotes as it’s annoying for messages that contain code
defaults write com.apple.messageshelper.MessageController SOInputLineSettings -dict-add "automaticQuoteSubstitutionEnabled" -bool false

Expand All @@ -278,20 +266,10 @@ defaults write com.apple.messageshelper.MessageController SOInputLineSettings -d
# Google Chrome & Google Chrome Canary #
###############################################################################

# Disable the all too sensitive backswipe on trackpads
# defaults write com.google.Chrome AppleEnableSwipeNavigateWithScrolls -bool false
# defaults write com.google.Chrome.canary AppleEnableSwipeNavigateWithScrolls -bool false

# Disable the all too sensitive backswipe on Magic Mouse
# defaults write com.google.Chrome AppleEnableMouseSwipeNavigateWithScrolls -bool false
# defaults write com.google.Chrome.canary AppleEnableMouseSwipeNavigateWithScrolls -bool false

# Use the system-native print preview dialog
defaults write com.google.Chrome DisablePrintPreview -bool true
defaults write com.google.Chrome.canary DisablePrintPreview -bool true

# Expand the print dialog by default
defaults write com.google.Chrome PMPrintingExpandedStateForPrint2 -bool true
defaults write com.google.Chrome.canary PMPrintingExpandedStateForPrint2 -bool true


10 changes: 8 additions & 2 deletions macos/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,28 @@ COMPUTER_NAME="BigMac";
fi
# echo "Computer name: $COMPUTER_NAME" # DEBUG
. ../scripts/functions.sh;
info "Configuring macOS defaults...";
info "Configuring macOS defaults...";
# Ask for the administrator password upfront
sudo -v;
# # Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &;

substep_info "Setting computer name to $COMPUTER_NAME";

sudo scutil --set ComputerName "$COMPUTER_NAME";
sudo scutil --set LocalHostName "$COMPUTER_NAME";
sudo scutil --set HostName "$COMPUTER_NAME";
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server NetBIOSName -string "$COMPUTER_NAME";

substep_success "Computer name set to $COMPUTER_NAME";
substep_info "Setting MacOS System settings and preferences...";

substep_info "Configuring MacOS system settings and preferences...";
source $DIR/01-preferences.sh;
source $DIR/02-apps.sh;
source $DIR/03-security.sh;

substep_success "✔ All tasks were completed";
echo -e " .:'\n __ :'__\n .'\`__\`-'__\`\`.\n \
:__________.-'\n :_________:\n :_________\`-;\n \`.__.-.__.'"

success "Restart $COMPUTER_NAME for changes to take effect.";