Skip to content

Commit

Permalink
feat: new work config
Browse files Browse the repository at this point in the history
  • Loading branch information
senz committed Jan 26, 2025
1 parent 0f12397 commit fd6c051
Show file tree
Hide file tree
Showing 10 changed files with 63 additions and 68 deletions.
62 changes: 21 additions & 41 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
tap "homebrew/bundle"
tap "homebrew/cask-fonts"
tap "homebrew/cask-versions"
tap "homebrew/services"
tap "senz/homebrew-tap"
tap "nikitabobko/tap"
tap "zero-sh/tap"
tap "koekeishiya/formulae"

# This file contains common part shared between setup profiles

# Clone of cat(1) with syntax highlighting and Git integration
brew "bat"
Expand All @@ -12,8 +15,6 @@ brew "bat-extras"
brew "chezmoi"
# Tool for exploring each layer in a docker image
brew "dive"
# Lightweight DNS forwarder and DHCP server
brew "dnsmasq", restart_service: true
# Simple, fast and user-friendly alternative to find
brew "fd"
# Command-line fuzzy finder written in Go
Expand All @@ -23,7 +24,6 @@ brew "git"
# Git extension for versioning large files
brew "git-lfs"
# Lightweight and flexible command-line JSON processor
brew "jq"
brew "yq"
brew "pre-commit"
# Kubernetes CLI To Manage Your Clusters In Style!
Expand All @@ -42,8 +42,6 @@ brew "pipx"
brew "poetry"
# Python version management
brew "pyenv"
# Unofficial Bitwarden CLI client
brew "rbw"
# Search tool like grep and The Silver Searcher
brew "ripgrep"
# Wrapper around ripgrep that adds multiple rich file types
Expand All @@ -54,26 +52,10 @@ brew "topgrade"
brew "unar"
# Internet file retriever
brew "wget"
# GPU-accelerated terminal emulator
cask "alacritty"
# Automatic tiling window manager similar to xmonad
cask "amethyst"
# Tool to flash OS images to SD cards & USB drives
cask "balenaetcher"
# Web browser focusing on privacy
cask "brave-browser"
# E-books management software
cask "calibre"
# Free and open-source web browser
cask "chromium"
# Photography workflow application and raw developer
cask "darktable"
# App to build and share containerised applications and microservices
cask "docker"
# Elgato FACECAM configuration tool
cask "elgato-camera-hub"
# Assign keys, and then decorate and label them
cask "elgato-stream-deck"
# Free monospaced font with programming ligatures
cask "font-fira-code"
cask "font-noto-emoji"
Expand All @@ -85,8 +67,6 @@ cask "git-credential-manager"
cask "gpg-suite"
# Graphically shows disk usage within a file system
cask "grandperspective"
# Preview and audit Kindle eBooks
cask "kindle-previewer"
# Free and open-source painting and sketching program
cask "krita"
# Tool to control external monitor brightness & volume
Expand All @@ -97,29 +77,29 @@ cask "mutedeck"
cask "obs"
# Android file transfer
cask "openmtp"
# System monitor for the menu bar
cask "stats"
# Media player based on MPlayer and mplayer2
cask "stolendata-mpv"
# Real time file synchronisation software
cask "syncthing"
# Unpacks archive files
cask "the-unarchiver"
# Open-source BitTorrent client
cask "transmission"
# Virtual machines UI using QEMU
cask "utm"
# OpenVPN client with AppleScript support
cask "viscosity"
# Open-source code editor
cask "visual-studio-code"
# Multimedia player
cask "vlc"
# Resources for Wacom tablets
cask "wacom-tablet"
# Compatibility layer to run Windows applications
cask "wine-devel"
# Discord and SpaceBar client implemented without Discord API
cask "webcord"

mas "Brother P-touch Editor", id: 1453365242
# lets you hide menu bar items to give your Mac a cleaner look
cask "hiddenbar"
# Obsidian is a powerful knowledge base that works on top of a local folder of plain text Markdown files
cask "obsidian"
# yabai is a window management utility that is designed to work as an extension to the built-in window manager of macOS
brew "yabai"
# python-argcomplete provides easy, extensible command line tab completion of arguments for your Python script
brew "python-argcomplete"
# Container runtimes on macOS (and Linux) with minimal setup
brew "colima"
# lazydocker is a simple terminal UI for both docker and docker-compose
brew "lazydocker"
# bitwarden is the easiest and safest way to store all of your logins and passwords while conveniently keeping them synced between all of your devices.
cask "bitwarden"
# apply-user-defaults is a tool to apply mac user defaults from a file
brew "apply-user-defaults"
21 changes: 21 additions & 0 deletions Brewfile.pers-plain
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Unofficial Bitwarden CLI client
brew "rbw"
# Tool to flash OS images to SD cards & USB drives
cask "balenaetcher"
# OpenVPN client with AppleScript support
cask "viscosity"
# Open-source BitTorrent client
cask "transmission"
# Discord and SpaceBar client implemented without Discord API
cask "legcord"
# Preview and audit Kindle eBooks
cask "kindle-previewer"
# Elgato prompter configuration tool
cask "elgato-camera-hub"
# Photography workflow application and raw developer
cask "darktable"
# E-books management software
cask "calibre"

# Brother P-touch Editor
mas "Brother P-touch Editor", id: 1453365242
5 changes: 5 additions & 0 deletions Brewfile.work
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Work (SQ)
cask "keepassxc"
cask "lens"
cask "google-cloud-sdk"
cask "karabiner-elements"
3 changes: 3 additions & 0 deletions create_dot_zshenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#export OPENAI_API_KEY=""
#export ANTHROPIC_API_KEY=""
#export GITHUB_TOKEN=""
7 changes: 7 additions & 0 deletions defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ NSGlobalDomain:
NSAutomaticPeriodSubstitutionEnabled: false
WebAutomaticSpellingCorrectionEnabled: false

# Now, you can move windows by holding ctrl+cmd and dragging any part of the window (not necessarily the window title)
NSWindowShouldDragOnGesture: true

# Set the initial key repeat delay

Check failure on line 26 in defaults.yaml

View workflow job for this annotation

GitHub Actions / MegaLinter

26:37 [trailing-spaces] trailing spaces
InitialKeyRepeat: 15
KeyRepeat: 2

Check failure on line 29 in defaults.yaml

View workflow job for this annotation

GitHub Actions / MegaLinter

29:1 [trailing-spaces] trailing spaces
com.apple.desktopservices:
# Disable .DS_Store files on network drives.
DSDontWriteNetworkStores: true
Expand Down
2 changes: 1 addition & 1 deletion dot_zshrc.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ setopt HIST_IGNORE_SPACE
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

{{ if (eq .chezmoi.osRelease.variantID "kinoite") -}}
{{ if (and (index .chezmoi.osRelease "variantID") (eq .chezmoi.osRelease.variantID "kinoite")) -}}
alias zhistory_paste='echo : `expr $(date +%s) + 1`:0\;`printf "$(wl-paste -pn)\n"` >> ~/.zsh_history && fc -R'
{{ end -}}

Expand Down
22 changes: 0 additions & 22 deletions encrypted_dot_zshenv.asc

This file was deleted.

3 changes: 0 additions & 3 deletions private_dot_gnupg/private_common.conf.tmpl

This file was deleted.

1 change: 0 additions & 1 deletion run_once_after_apps-configuration-darwin.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
killall Docker
defaults write com.docker.docker SUAutomaticallyUpdate -bool false
defaults write com.docker.docker SUEnableAutomaticChecks -bool false
open -a Docker

# ---------------------------------------------------------------------------------------------------------------------
# GPG settings
Expand Down
5 changes: 5 additions & 0 deletions run_once_before_install-packages-darwin.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ export HOMEBREW_CASK_OPTS=--no-quarantine
# rendering directly in template, so chezmoi could detect a change of content
brew bundle install -v --no-lock --file=/dev/stdin <<EOF
{{ joinPath .chezmoi.sourceDir "Brewfile" | include }}
{{- if eq .setupprofile "personal" -}}
{{ joinPath .chezmoi.sourceDir "Brewfile.pers-plain" | include }}
{{ joinPath .chezmoi.sourceDir "Brewfile.pers.asc" | include | decrypt }}
{{- else if eq .setupprofile "work" -}}
{{ joinPath .chezmoi.sourceDir "Brewfile.work" | include }}
{{- end -}}
EOF

{{ end -}}

0 comments on commit fd6c051

Please sign in to comment.