ntananh / dotfilesmac

My personal macOS configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

My macOS configuration files. Screenshot 2023-02-23 at 20 45 12

jklö centric navigation and vim moves for my german keyboard. nvim as a capable C/C++ debugging environment. color scheme consistency across all configurations.

Most setup steps are in .install.sh

SketchyBar Setup

brew install --cask sf-symbols
brew install jq
brew install gh
brew install switchaudio-osx
curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v1.0.16/sketchybar-app-font.ttf -o $HOME/Library/Fonts/sketchybar-app-font.ttf
  • (optional) gh auth login for GitHub notifications
  • (optional) If you don't use yabai you can safely remove the yabai item from items/yabai.sh or sketchybarrc
  • (optional; needed for yabai window state) yabai event:
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
  • (optional; needed for yabai window state) skhd shortcuts should trigger the sketchybar event, e.g.:
lalt - space : yabai -m window --toggle float; sketchybar --trigger window_focus
shift + lalt - f : yabai -m window --toggle zoom-fullscreen; sketchybar --trigger window_focus
lalt - f : yabai -m window --toggle zoom-parent; sketchybar --trigger window_focus
  • (optional) update outdated packages after running brew commands (add to .zshrc):
function brew() {
  command brew "$@" 

  if [[ $* =~ "upgrade" ]] || [[ $* =~ "update" ]] || [[ $* =~ "outdated" ]]; then
    sketchybar --trigger brew_update
  fi
}

NOTE: The helper C program is included here only to show off this specific functionality of sketchybar and is not needed generally. It provides the data for the cpu graph. Using a mach_helper provides a much lower overhead solution for performance sensitive tasks, since the helper talks directly to sketchybar via kernel level messages. For most tasks (including those listed above) this difference in performance does not matter at all.

neovim setup

  • Paste my .confg/nvim/ folder
  • My remappings are in .config/nvim/lua/mappings.lua, you can change or remove them freely.
  • (optional) Install font and set it as the terminal font:
git clone git@github.com:shaunsingh/SFMono-Nerd-Font-Ligaturized.git /tmp/SFMono_Nerd_Font
mv /tmp/SFMono_Nerd_Font/* $HOME/Library/Fonts
rm -rf /tmp/SFMono_Nerd_Font/

About

My personal macOS configuration

License:GNU General Public License v3.0


Languages

Language:Shell 53.4%Language:Lua 30.1%Language:C 10.4%Language:Python 6.0%Language:Makefile 0.1%