dotfiles
jklรถ centric navigation and vim moves for my german keyboard. nvim as a capable C/C++ debugging environment. color scheme consistency across all configurations.
- sketchybar
- yabai (personal fork)
- skhd
- neovim
- nnn (personal fork)
Most setup steps are in .install.sh
SketchyBar Features:
-
I am using the excellent sketchybar-app-font to display the active applications in the spaces.
-
Left clicking a space will focus it, right clicking a space will destroy that space; clicking in the separator (>) will create a new space (all using yabai SIP disabled; optional)
-
Mousing over the music icon in the center gives a small Spotify player widget with player controls:
- The volume icon on the right side can be clicked to toggle the volume slider and animates volume changes:
slider.mp4
-
The volume icon on the right side can be right-clicked to show and select the audio output device:
-
The bell can be hovered to view github notifications
-
Clicking the date/time toggles a "zen" mode, hiding all distracting items in the bar:
- The battery indicator is only shown when below 60%:
SketchyBar Setup
- Dependencies(
sf-symbols
,jq
,github-cli
,switchaudio-osx
, sketchybar-app-font):
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.4/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 fromitems/yabai.sh
orsketchybarrc
- (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) 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 [email protected]:shaunsingh/SFMono-Nerd-Font-Ligaturized.git /tmp/SFMono_Nerd_Font
mv /tmp/SFMono_Nerd_Font/* $HOME/Library/Fonts
rm -rf /tmp/SFMono_Nerd_Font/