diff --git a/aerospace/aerospace.toml b/aerospace/aerospace.toml index 276e189..c84a55b 100644 --- a/aerospace/aerospace.toml +++ b/aerospace/aerospace.toml @@ -96,7 +96,8 @@ alt-shift-period = 'move-workspace-to-monitor next' alt-shift-r = 'mode resize' -alt-enter = 'exec-and-forget open -na Ghostty.app' +# -n: Always open a new instance because I want it to open in my home directory. +alt-enter = 'exec-and-forget open -n /Applications/Alacritty.app' alt-shift-x = 'exec-and-forget sh -c ~/bin/pbclear' diff --git a/bettertouchtool/Default.bttpreset b/bettertouchtool/Default.bttpreset deleted file mode 100644 index 9734b90..0000000 --- a/bettertouchtool/Default.bttpreset +++ /dev/null @@ -1,114 +0,0 @@ -{ - "BTTPresetCreatorNotes" : "", - "BTTPresetInfoURL" : "", - "BTTPresetName" : "Default", - "BTTPresetColor" : "30.600000, 36.720000, 153.000000, 255.000000", - "BTTPresetUUID" : "DDBEFB60-C981-410F-9EE3-45B875586367", - "BTTPresetContent" : [ - { - "BTTAppBundleIdentifier" : "BT.G", - "BTTAppName" : "Global", - "BTTAppAutoInvertIcon" : 1, - "BTTAppSpecificSettings" : { - "BTTDisableGlobalTriggers" : false - }, - "BTTTriggers" : [ - { - "BTTLastUpdatedAt" : 1788110777.1631141, - "BTTTriggerType" : 173, - "BTTTriggerTypeDescriptionReadOnly" : "2 Finger Tap", - "BTTTriggerClass" : "BTTTriggerTypeTouchpadAll", - "BTTUUID" : "F0868C53-CB16-473F-AA2A-9E850D8B110A", - "BTTOrder" : 0, - "BTTActionsToExecute" : [ - { - "BTTLastUpdatedAt" : 1788109280.5100489, - "BTTTriggerParentUUID" : "F0868C53-CB16-473F-AA2A-9E850D8B110A", - "BTTIsPureAction" : true, - "BTTUUID" : "28A8A911-8543-45AC-9118-6CE919E8B36A", - "BTTPredefinedActionType" : 4, - "BTTPredefinedActionName" : "Right Click (At Current Mouse Position)", - "BTTOrder" : 2 - } - ] - }, - { - "BTTLastUpdatedAt" : 1788110777.1631088, - "BTTTriggerType" : 174, - "BTTTriggerTypeDescriptionReadOnly" : "2 Finger Click", - "BTTTriggerClass" : "BTTTriggerTypeTouchpadAll", - "BTTUUID" : "B10652D0-F140-442D-926C-C9B6776D1370", - "BTTOrder" : 1, - "BTTActionsToExecute" : [ - { - "BTTLastUpdatedAt" : 1788109280.510026, - "BTTTriggerParentUUID" : "B10652D0-F140-442D-926C-C9B6776D1370", - "BTTIsPureAction" : true, - "BTTUUID" : "7850E782-CB3A-4826-8838-11B426A5231F", - "BTTPredefinedActionType" : 4, - "BTTPredefinedActionName" : "Right Click (At Current Mouse Position)", - "BTTOrder" : 2 - } - ] - }, - { - "BTTLastUpdatedAt" : 1788110777.1631021, - "BTTTriggerType" : 104, - "BTTTriggerTypeDescriptionReadOnly" : "3 Finger Tap", - "BTTTriggerClass" : "BTTTriggerTypeTouchpadAll", - "BTTUUID" : "DF5B6844-C4F2-40C6-ADAB-2C1242B84A1E", - "BTTOrder" : 2, - "BTTActionsToExecute" : [ - { - "BTTLastUpdatedAt" : 1788109280.510036, - "BTTTriggerParentUUID" : "DF5B6844-C4F2-40C6-ADAB-2C1242B84A1E", - "BTTIsPureAction" : true, - "BTTUUID" : "51CF8319-5A95-496B-A6AE-4C33BA205C46", - "BTTPredefinedActionType" : 1, - "BTTPredefinedActionName" : "Middle Click (At Current Mouse Position)", - "BTTOrder" : 1 - } - ] - }, - { - "BTTLastUpdatedAt" : 1788110777.1630909, - "BTTTriggerType" : 112, - "BTTTriggerTypeDescriptionReadOnly" : "3 Finger Click", - "BTTTriggerClass" : "BTTTriggerTypeTouchpadAll", - "BTTUUID" : "C4157608-A49E-4F70-9871-DB6C20148689", - "BTTOrder" : 3, - "BTTActionCategoryPressDown" : [ - { - "BTTLastUpdatedAt" : 1788109304.261627, - "BTTTriggerParentUUID" : "C4157608-A49E-4F70-9871-DB6C20148689", - "BTTIsPureAction" : true, - "BTTUUID" : "5BA761B0-95B6-4818-B8FE-963A6CCD9D5D", - "BTTPredefinedActionType" : 1, - "BTTPredefinedActionName" : "Middle Click (At Current Mouse Position)", - "BTTOrder" : 3 - } - ] - } - ] - }, - { - "BTTAppBundleIdentifier" : "BT.L", - "BTTAppName" : "Recently Used", - "BTTAppAutoInvertIcon" : 1, - "BTTTriggers" : [ - - ] - }, - { - "BTTAppBundleIdentifier" : "com.apple.finder", - "BTTAppName" : "Finder", - "BTTAppAutoInvertIcon" : 1, - "BTTTriggers" : [ - - ] - } - ], - "BTTPresetSnapAreas" : [ - - ] -} \ No newline at end of file diff --git a/bin/hx b/bin/hx new file mode 100755 index 0000000..a04d6ed --- /dev/null +++ b/bin/hx @@ -0,0 +1,3 @@ +#!/bin/sh + +command helix "$@" diff --git a/brew/Brewfile b/brew/Brewfile index bedadfc..b9d494c 100644 --- a/brew/Brewfile +++ b/brew/Brewfile @@ -1,3 +1,6 @@ +tap "homebrew/bundle" +tap "homebrew/services" + brew "bat" brew "coreutils" brew "dateutils" @@ -12,9 +15,7 @@ brew "gnu-time" brew "gnu-units" brew "gnupg" brew "gsed" -brew "helix" brew "hexyl" -brew "lazygit" brew "imagemagick" brew "jq" brew "moreutils" @@ -26,14 +27,14 @@ brew "sd" brew "shellcheck" brew "syncthing" brew "tree" -brew "tree-sitter-cli" brew "watch" brew "zoxide" +cask "alacritty" cask "firefox" -cask "font-input" -cask "ghostty" +cask "font-iosevka" +cask "font-iosevka-slab" cask "gimp" cask "karabiner-elements" -cask "nikitabobko/tap/aerospace", trusted: true +cask "nikitabobko/tap/aerospace" cask "vlc" diff --git a/brew/install b/brew/install index 5621a46..08366e3 100755 --- a/brew/install +++ b/brew/install @@ -6,7 +6,7 @@ CURDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" brewfile="${CURDIR}/Brewfile" bundle() { - brew bundle --file "${brewfile}" "${@+"$@"}" + brew bundle --file "${brewfile}" "${@:-}" } bundle check || bundle diff --git a/darwin.conf.yaml b/darwin.conf.yaml index 2dc03f7..46c372a 100644 --- a/darwin.conf.yaml +++ b/darwin.conf.yaml @@ -3,14 +3,10 @@ stdout: true stderr: true quiet: false - - command: macos/key-repeat - stdout: true - stderr: true - quiet: false - link: + ./alacritty/os.toml: alacritty/darwin.toml ./git/config-os: git/config-darwin - ./ghostty/os.ghostty: ghostty/darwin.ghostty ./zsh/os.zshrc: zsh/darwin.zshrc ~/.config/aerospace: aerospace/ ~/.config/karabiner: karabiner/ diff --git a/etc/profile.linux b/etc/profile.linux index f3fb2d0..e7df60a 100644 --- a/etc/profile.linux +++ b/etc/profile.linux @@ -26,7 +26,6 @@ path_if "$HOME/.local/bin" unset -f source_if unset -f path_if -unset -f has if has gnome-keyring-daemon; then eval "$(gnome-keyring-daemon --start)" diff --git a/ghostty/.gitignore b/ghostty/.gitignore deleted file mode 100644 index 7388a70..0000000 --- a/ghostty/.gitignore +++ /dev/null @@ -1 +0,0 @@ -os.ghostty diff --git a/ghostty/config.ghostty b/ghostty/config.ghostty index b15ed91..95f1de0 100644 --- a/ghostty/config.ghostty +++ b/ghostty/config.ghostty @@ -1,10 +1,10 @@ font-family = Input Mono Narrow font-style = Light +font-size = 10 + theme = light:jdkaplan-light,dark:jdkaplan-dark resize-overlay = never window-inherit-working-directory = false - -config-file = ?os.ghostty diff --git a/ghostty/darwin.ghostty b/ghostty/darwin.ghostty deleted file mode 100644 index f7b78cd..0000000 --- a/ghostty/darwin.ghostty +++ /dev/null @@ -1,3 +0,0 @@ -font-size = 12 - -quit-after-last-window-closed = true diff --git a/ghostty/linux.ghostty b/ghostty/linux.ghostty deleted file mode 100644 index 12ad5e4..0000000 --- a/ghostty/linux.ghostty +++ /dev/null @@ -1 +0,0 @@ -font-size = 12 diff --git a/linux.conf.yaml b/linux.conf.yaml index 9d1f7bf..8962d39 100644 --- a/linux.conf.yaml +++ b/linux.conf.yaml @@ -1,5 +1,5 @@ - link: ~/.config/user-dirs.dirs: etc/user-dirs.dirs ~/.profile: etc/profile.linux - ./ghostty/os.ghostty: ghostty/linux.ghostty + ./alacritty/os.toml: alacritty/linux.toml ./zsh/os.zshrc: zsh/linux.zshrc diff --git a/macos/key-repeat b/macos/key-repeat deleted file mode 100755 index ca122ec..0000000 --- a/macos/key-repeat +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -exuo pipefail - -defaults write -g InitialKeyRepeat -float 13.333 # ~200 ms, GUI minimum is 15 = 225 ms -defaults write -g KeyRepeat -int 1 # 15 ms/char, GUI minimum is 2 = 30 ms/ch diff --git a/zsh/.zshenv b/zsh/.zshenv index af59a4a..83cf06d 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -1,5 +1,8 @@ #!/usr/bin/env zsh +export EDITOR='hx' +export VISUAL=$EDITOR + if [[ -a /usr/bin/virtualenvwrapper.sh ]]; then export WORKON_HOME=$HOME/.virtualenvs source /usr/bin/virtualenvwrapper.sh diff --git a/zsh/darwin.zshrc b/zsh/darwin.zshrc index a8c6e4a..079dcc4 100644 --- a/zsh/darwin.zshrc +++ b/zsh/darwin.zshrc @@ -3,11 +3,11 @@ alias ls='ls --color=auto' export LSCOLORS='Exgxbxdxcxegedabagacad' -export EDITOR='hx' -export VISUAL=$EDITOR - alias units='gunits --verbose' alias date='gdate' alias awk='gawk' source ~/.profile + +[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && source "/opt/homebrew/opt/nvm/nvm.sh" +[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && source "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" diff --git a/zsh/linux.zshrc b/zsh/linux.zshrc index 7e6a8b5..1cafecd 100644 --- a/zsh/linux.zshrc +++ b/zsh/linux.zshrc @@ -2,6 +2,3 @@ alias ls='ls --color=auto' export LS_COLORS='no=38;5;244:rs=0:di=38;5;33:ln=38;5;37:mh=00:pi=48;5;230;38;5;136;01:so=48;5;230;38;5;136;01:do=48;5;230;38;5;136;01:bd=48;5;230;38;5;244;01:cd=48;5;230;38;5;244;01:or=48;5;235;38;5;160:su=48;5;160;38;5;230:sg=48;5;136;38;5;230:ca=30;41:tw=48;5;64;38;5;230:ow=48;5;235;38;5;33:st=48;5;33;38;5;230:ex=38;5;64:*.tar=38;5;61:*.tgz=38;5;61:*.arj=38;5;61:*.taz=38;5;61:*.lzh=38;5;61:*.lzma=38;5;61:*.tlz=38;5;61:*.txz=38;5;61:*.zip=38;5;61:*.z=38;5;61:*.Z=38;5;61:*.dz=38;5;61:*.gz=38;5;61:*.lz=38;5;61:*.xz=38;5;61:*.bz2=38;5;61:*.bz=38;5;61:*.tbz=38;5;61:*.tbz2=38;5;61:*.tz=38;5;61:*.deb=38;5;61:*.rpm=38;5;61:*.jar=38;5;61:*.rar=38;5;61:*.ace=38;5;61:*.zoo=38;5;61:*.cpio=38;5;61:*.7z=38;5;61:*.rz=38;5;61:*.apk=38;5;61:*.gem=38;5;61:*.jpg=38;5;136:*.JPG=38;5;136:*.jpeg=38;5;136:*.gif=38;5;136:*.bmp=38;5;136:*.pbm=38;5;136:*.pgm=38;5;136:*.ppm=38;5;136:*.tga=38;5;136:*.xbm=38;5;136:*.xpm=38;5;136:*.tif=38;5;136:*.tiff=38;5;136:*.png=38;5;136:*.svg=38;5;136:*.svgz=38;5;136:*.mng=38;5;136:*.pcx=38;5;136:*.dl=38;5;136:*.xcf=38;5;136:*.xwd=38;5;136:*.yuv=38;5;136:*.cgm=38;5;136:*.emf=38;5;136:*.eps=38;5;136:*.CR2=38;5;136:*.ico=38;5;136:*.tex=38;5;245:*.rdf=38;5;245:*.owl=38;5;245:*.n3=38;5;245:*.ttl=38;5;245:*.nt=38;5;245:*.torrent=38;5;245:*.xml=38;5;245:*Makefile=38;5;245:*Rakefile=38;5;245:*build.xml=38;5;245:*rc=38;5;245:*1=38;5;245:*.nfo=38;5;245:*README=38;5;245:*README.txt=38;5;245:*readme.txt=38;5;245:*.md=38;5;245:*README.markdown=38;5;245:*.ini=38;5;245:*.yml=38;5;245:*.cfg=38;5;245:*.conf=38;5;245:*.c=38;5;245:*.cpp=38;5;245:*.cc=38;5;245:*.log=38;5;240:*.bak=38;5;240:*.aux=38;5;240:*.lof=38;5;240:*.lol=38;5;240:*.lot=38;5;240:*.out=38;5;240:*.toc=38;5;240:*.bbl=38;5;240:*.blg=38;5;240:*~=38;5;240:*#=38;5;240:*.part=38;5;240:*.incomplete=38;5;240:*.swp=38;5;240:*.tmp=38;5;240:*.temp=38;5;240:*.o=38;5;240:*.pyc=38;5;240:*.class=38;5;240:*.cache=38;5;240:*.aac=38;5;166:*.au=38;5;166:*.flac=38;5;166:*.mid=38;5;166:*.midi=38;5;166:*.mka=38;5;166:*.mp3=38;5;166:*.mpc=38;5;166:*.ogg=38;5;166:*.ra=38;5;166:*.wav=38;5;166:*.m4a=38;5;166:*.axa=38;5;166:*.oga=38;5;166:*.spx=38;5;166:*.xspf=38;5;166:*.mov=38;5;166:*.mpg=38;5;166:*.mpeg=38;5;166:*.m2v=38;5;166:*.mkv=38;5;166:*.ogm=38;5;166:*.mp4=38;5;166:*.m4v=38;5;166:*.mp4v=38;5;166:*.vob=38;5;166:*.qt=38;5;166:*.nuv=38;5;166:*.wmv=38;5;166:*.asf=38;5;166:*.rm=38;5;166:*.rmvb=38;5;166:*.flc=38;5;166:*.avi=38;5;166:*.fli=38;5;166:*.flv=38;5;166:*.gl=38;5;166:*.m2ts=38;5;166:*.divx=38;5;166:*.webm=38;5;166:*.axv=38;5;166:*.anx=38;5;166:*.ogv=38;5;166:*.ogx=38;5;166:' - -export EDITOR='helix' -export VISUAL=$EDITOR