mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
feat: Adds clipse clipboard history, removes macos specific scripts, begin creating install scripts.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
#/bin/bash
|
||||
|
||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
chmod -R go-w "$(/opt/homebrew/bin/brew --prefix)"
|
||||
11
scripts/install-pkg-arch.sh
Executable file
11
scripts/install-pkg-arch.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Installs required packages / applications when setting up a new
|
||||
# arch linux with hyprland machine.
|
||||
#
|
||||
# TODO: I started this after a machine was already setup, so this may
|
||||
# need to be revisited to ensure packages installed before this
|
||||
# script started are included.
|
||||
|
||||
# Clipboard history utility
|
||||
yay -S --noconfirm clipse wl-clipboard
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
# Installs launchd agents.
|
||||
|
||||
agent_dir="${HOME}/Library/LaunchAgents"
|
||||
uid="$(id -u "$(whoami)")"
|
||||
|
||||
mkdir -p "$agent_dir"
|
||||
|
||||
for file in "${DOTFILES}"/macOS/LaunchAgents/*.plist; do
|
||||
# get just the base file name, similar to using `basename` but w/o a subshell
|
||||
filename="${file##*/}"
|
||||
path="${agent_dir}/${filename}"
|
||||
echo "$filename"
|
||||
if ! test -e "${path}"; then
|
||||
echo "Installing Agent: ${filename}"
|
||||
cp "${file}" "${path}"
|
||||
launchctl enable "user/${uid}/${filename}"
|
||||
fi
|
||||
done
|
||||
8
scripts/setup-dirs.sh
Executable file
8
scripts/setup-dirs.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Set up clipse (clipboard history) storage directories / files.
|
||||
mkdir -p ~/.local/share/clipse/tmp_files
|
||||
touch ~/.local/share/clipse/clipboard_history.json
|
||||
chmod 600 ~/.local/share/clipse/clipboard_history.json
|
||||
|
||||
|
||||
@@ -1,103 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# sets default settings for macOS
|
||||
|
||||
# change screen capture / screenshot location
|
||||
defaults write com.apple.screencapture location -string "$SCREENSHOTS"
|
||||
|
||||
# save screenshots in png format
|
||||
defaults write com.apple.screencapture type -string "png"
|
||||
|
||||
# Disable shadow in screenshots
|
||||
defaults write com.apple.screencapture disable-shadow -bool true
|
||||
|
||||
# Expand save panel by default
|
||||
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
|
||||
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode2 -bool true
|
||||
|
||||
# Expand print panel by default
|
||||
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
|
||||
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
|
||||
|
||||
# Disable the “Are you sure you want to open this application?” dialog
|
||||
defaults write com.apple.LaunchServices LSQuarantine -bool false
|
||||
|
||||
# Enable full keyboard access for all controls
|
||||
# (e.g. enable Tab in modal dialogs)
|
||||
defaults write NSGlobalDomain AppleKeyboardUIMode -int 3
|
||||
|
||||
# Set a blazingly fast keyboard repeat rate
|
||||
defaults write NSGlobalDomain KeyRepeat -int 1
|
||||
defaults write NSGlobalDomain InitialKeyRepeat -int 10
|
||||
|
||||
# Finder: allow quitting via ⌘ + Q; doing so will also hide desktop icons
|
||||
defaults write com.apple.finder QuitMenuItem -bool true
|
||||
|
||||
# Set Home as the default location for new Finder windows
|
||||
defaults write com.apple.finder NewWindowTarget -string "PfHm"
|
||||
defaults write com.apple.finder NewWindowTargetPath -string "file://${HOME}/"
|
||||
|
||||
# Show icons for hard drives, servers, and removable media on the desktop
|
||||
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
|
||||
defaults write com.apple.finder ShowHardDrivesOnDesktop -bool true
|
||||
defaults write com.apple.finder ShowMountedServersOnDesktop -bool true
|
||||
defaults write com.apple.finder ShowRemovableMediaOnDesktop -bool true
|
||||
|
||||
# Finder: show all filename extensions
|
||||
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
|
||||
|
||||
# Finder: show status bar
|
||||
defaults write com.apple.finder ShowStatusBar -bool true
|
||||
|
||||
# Finder: show path bar
|
||||
defaults write com.apple.finder ShowPathbar -bool true
|
||||
|
||||
# Display full POSIX path as Finder window title
|
||||
defaults write com.apple.finder _FXShowPosixPathInTitle -bool true
|
||||
|
||||
# Keep folders on top when sorting by name
|
||||
defaults write com.apple.finder _FXSortFoldersFirst -bool true
|
||||
|
||||
# When performing a search, search the current folder by default
|
||||
defaults write com.apple.finder FXDefaultSearchScope -string "SCcf"
|
||||
|
||||
# Avoid creating .DS_Store files on network or USB volumes
|
||||
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
|
||||
defaults write com.apple.desktopservices DSDontWriteUSBStores -bool true
|
||||
|
||||
# Use column view in all Finder windows by default
|
||||
# Four-letter codes for the other view modes: `icnv`, `Nlsv`, `glyv`
|
||||
defaults write com.apple.finder FXPreferredViewStyle -string "clmv"
|
||||
|
||||
# Disable the warning before emptying the Trash
|
||||
defaults write com.apple.finder WarnOnEmptyTrash -bool false
|
||||
|
||||
# Show the ~/Library folder
|
||||
#chflags nohidden ~/Library && xattr -d com.apple.FinderInfo ~/Library
|
||||
|
||||
# Copy email addresses as `foo@example.com` instead of `Foo Bar <foo@example.com>` in Mail.app
|
||||
defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool false
|
||||
|
||||
# Only use UTF-8 in Terminal.app
|
||||
defaults write com.apple.terminal StringEncodings -array 4
|
||||
|
||||
# Enable Secure Keyboard Entry in Terminal.app
|
||||
# See: https://security.stackexchange.com/a/47786/8918
|
||||
defaults write com.apple.terminal SecureKeyboardEntry -bool true
|
||||
|
||||
# Prevent Time Machine from prompting to use new hard drives as backup volume
|
||||
defaults write com.apple.TimeMachine DoNotOfferNewDisksForBackup -bool true
|
||||
|
||||
# Disable local Time Machine backups
|
||||
# hash tmutil &> /dev/null && sudo tmutil disablelocal
|
||||
|
||||
# kill affected apps
|
||||
for app in "Main" \
|
||||
"Photos" \
|
||||
"Finder" \
|
||||
"SystemUIServer"; do
|
||||
killall "${app}" &> /dev/null
|
||||
done
|
||||
|
||||
echo "Done. Some changes require a restart to take effect."
|
||||
|
||||
Reference in New Issue
Block a user