aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2015-03-30 14:32:15 +0200
committerMathias Bynens <mathias@qiwi.be>2015-03-30 14:32:15 +0200
commit7552e009ae3451e152e126659f2e09870a0312d5 (patch)
tree3361fb2a1ae05985a40bd66c55b7b44f75454f99
parenta86f87f0545ecbeedfb735ddd1204d513ce520d3 (diff)
downloaddotfiles-7552e009ae3451e152e126659f2e09870a0312d5.tar.gz
dotfiles-7552e009ae3451e152e126659f2e09870a0312d5.tar.bz2
dotfiles-7552e009ae3451e152e126659f2e09870a0312d5.zip
.osx: Expand print dialog in Chrome & Opera by default
https://github.com/mathiasbynens/dotfiles/pull/434#issuecomment-59643432
-rwxr-xr-x.osx17
1 files changed, 15 insertions, 2 deletions
diff --git a/.osx b/.osx
index 0e67b32..5f44f40 100755
--- a/.osx
+++ b/.osx
@@ -714,6 +714,10 @@ defaults write com.google.Chrome.canary AppleEnableMouseSwipeNavigateWithScrolls
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
+
###############################################################################
# GPGMail 2 #
###############################################################################
@@ -722,6 +726,14 @@ defaults write com.google.Chrome.canary DisablePrintPreview -bool true
defaults write ~/Library/Preferences/org.gpgtools.gpgmail SignNewEmailsByDefault -bool false
###############################################################################
+# Opera & Opera Developer #
+###############################################################################
+
+# Expand the print dialog by default
+defaults write com.operasoftware.Opera PMPrintingExpandedStateForPrint2 -boolean true
+defaults write com.operasoftware.OperaDeveloper PMPrintingExpandedStateForPrint2 -boolean true
+
+###############################################################################
# SizeUp.app #
###############################################################################
@@ -815,8 +827,9 @@ defaults write com.divisiblebyzero.Spectacle UndoLastMove -data 62706c6973743030
###############################################################################
for app in "Activity Monitor" "Address Book" "Calendar" "Contacts" "cfprefsd" \
- "Dock" "Finder" "Mail" "Messages" "Safari" "SizeUp" "Spectacle" \
- "SystemUIServer" "Terminal" "Transmission" "Twitter" "iCal"; do
+ "Dock" "Finder" "Google Chrome" "Google Chrome Canary" "Mail" "Messages" \
+ "Opera" "Safari" "SizeUp" "Spectacle" "SystemUIServer" "Terminal" \
+ "Transmission" "Twitter" "iCal"; do
killall "${app}" > /dev/null 2>&1
done
echo "Done. Note that some of these changes require a logout/restart to take effect."