8000 GitHub - mikalcallahan/dotfiles: My personal macOS configuration
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mikalcallahan/dotfiles

 
 

Repository files navigation

dotfiles

My macOS configuration files. Screenshot 2022-11-11 at 17 33 00

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

  • neovim
  • skhd
  • nnn (personal fork)
  • yabai (personal fork)
  • sketchybar

Most setup steps are in .install.sh

SketchyBar Setup

  • Uses sf-symbols: brew install --cask sf-symbols
  • Uses jq: brew install jq
  • Uses github-cli: brew install gh (gh auth login for notifications)
  • Uses sketchybar-app-font:
curl -L https://github.com/kvndrsslr/sketchybar-app-font/releases/download/v1.0.3/sketchybar-app-font.ttf -o $HOME/Library/Fonts/sketchybar-app-font.ttf
  • The volume icon is an alias, make sure to give screen capture permission. If your system is british, you need to rename "Control Center" to "Control Centre" in items/volume.sh. The volume icon should be enabled to always show in the macOS bar via System Preferences.
  • If you don't use yabai you can safely remove the yabai item from ìtems/front_app.sh
  • (optional; needed for yabai window state and running application icons) yabai events:
yabai -m signal --add event=window_focused action="sketchybar --trigger window_focus"
yabai -m signal --add event=window_created action="sketchybar --trigger windows_on_spaces"
yabai -m signal --add event=window_destroyed action="sketchybar --trigger windows_on_spaces"
  • (optional; needed for yabai window state and running application icons) skhd shortcuts should trigger the sketchybar events, 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
shift + lalt - 1 : yabai -m window --space 1 && sketchybar --trigger windows_on_spaces
  • (optional) Uses brew install switchaudio-osx for audio device switching context menu on volume alias right click
  • (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
  • Run PackerSync
nvim +PackerSync
  • 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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 67.6%
  • Lua 19.7%
  • C 12.6%
  • Makefile 0.1%
0