diff --git a/README.md b/README.md index 584a91a..3a38abb 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,30 @@ Personal dotfiles managed by [chezmoi](https://github.com/twpayne/chezmoi). # install with curl `curl -fsSL https://dotfiles.xvzc.dev | bash` +# how to install yabai properly + +## Create certificate +(How to create certificate for yabai)[https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(from-HEAD)] + +## Uninstall previous version +```sh +brew uninstall koekeishiya/formulae/yabai +``` + +## Install HEAD +```sh +brew install koekeishiya/formulae/yabai --HEAD +``` + +## Sign certification +```sh +codesign -fs 'yabai-cert' $(brew --prefix yabai)/bin/yabai +``` + +## Enable script addition +```sh +echo "$(whoami) ALL=(root) NOPASSWD: sha256:$(shasum -a 256 $(which yabai) | cut -d " " -f 1) $(which yabai) --load-sa" | sudo tee /private/etc/sudoers.d/yabai +``` + + + diff --git a/dot_profile b/dot_profile index 258324a..4f37bcf 100644 --- a/dot_profile +++ b/dot_profile @@ -29,10 +29,10 @@ export PATH="$PATH:~/.spoof-dpi/bin" # _is_darwin && \ # export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock -# ┌──────────┐ -# │ HOMEBREW │ -# └──────────┘ -_is_darwin && export PATH="/opt/homebrew/bin:$PATH" +# ┌────────┐ +# │ DOCKER │ +# └────────┘ +export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin/" # ┌────┐ # │ GO │ diff --git a/dot_wezterm.lua b/dot_wezterm.lua index aff14e1..891cd29 100644 --- a/dot_wezterm.lua +++ b/dot_wezterm.lua @@ -3,6 +3,7 @@ local wezterm = require("wezterm") local config = wezterm.config_builder() +config.window_decorations = "RESIZE" config.use_fancy_tab_bar = true config.hide_tab_bar_if_only_one_tab = true config.window_close_confirmation = "NeverPrompt" diff --git a/dot_zsh/alias.zsh b/dot_zsh/alias.zsh index 847782f..3e12fd8 100644 --- a/dot_zsh/alias.zsh +++ b/dot_zsh/alias.zsh @@ -9,7 +9,7 @@ # alias sudo='sudo ' alias vi='nvim' -if [ -x "$(command -v eza)" ]; then +if [ "$(command -v eza)" ]; then alias l="ls" alias ls='eza --sort=type' alias la='eza -alg --sort=type' @@ -85,7 +85,7 @@ alias dkc='docker-compose' # ┌────────────┐ # │ KUBERNETES │ # └────────────┘ -if [ -x "$(command -v kubectl)" ]; then +if [ "$(command -v kubectl)" ]; then alias k='kubectl' alias kg='kubectl get' diff --git a/dot_zshenv b/dot_zshenv index 3f21d3a..cb90edb 100644 --- a/dot_zshenv +++ b/dot_zshenv @@ -37,4 +37,5 @@ export EDITOR=nvim # PATHS export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.scripts/git:$PATH" +_is_darwin && export PATH="/opt/homebrew/bin:$PATH" diff --git a/setup/Brewfile b/setup/Brewfile index 0df6cd6..bc69101 100644 --- a/setup/Brewfile +++ b/setup/Brewfile @@ -3,6 +3,8 @@ tap "homebrew/services" tap "koekeishiya/formulae" tap "homebrew/cask-fonts" tap "daipeihust/tap" +tap "koekeishiya/formulae" + brew "python@3.11" brew "go" brew "node@18", link: :force @@ -31,6 +33,9 @@ brew "ranger" brew "ripgrep" brew "terraform" brew "wakeonlan" +brew "yabai" +brew "skhd" + cask "font-jetbrains-mono-nerd-font" cask "font-d2coding" cask "wezterm" @@ -40,5 +45,6 @@ cask "google-chrome" cask "discord" cask "alfred" cask "bettertouchtool" + mas "KakaoTalk ", id: 869223134 mas "Gifski ", id: 1351639930