From 13eea1cb50434bd32c6cda53d684fb888fcf196a Mon Sep 17 00:00:00 2001 From: juan Date: Sat, 3 Jul 2021 22:22:39 -0500 Subject: [PATCH] [macos] Introduce spacebar --- macos/.config/skhd/skhdrc | 20 +++++++++--------- macos/.config/spacebar/spacebarrc | 35 +++++++++++++++++++++++++++++++ macos/.config/yabai/yabairc | 2 ++ macos/Brewfile | 2 ++ 4 files changed, 49 insertions(+), 10 deletions(-) create mode 100755 macos/.config/spacebar/spacebarrc diff --git a/macos/.config/skhd/skhdrc b/macos/.config/skhd/skhdrc index cb2ddce..0e973a4 100755 --- a/macos/.config/skhd/skhdrc +++ b/macos/.config/skhd/skhdrc @@ -3,7 +3,7 @@ # # General # -shift + cmd - r : skhd -r; launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai" +shift + cmd - r : skhd -r; launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"; launchctl kickstart -k "gui/${UID}/homebrew.mxcl.spacebar" # # Applications @@ -37,15 +37,15 @@ shift + cmd - l : yabai -m window --swap east # # Space management # -cmd - 1 : yabai -m space --focus 1 -cmd - 2 : yabai -m space --focus 2 -cmd - 3 : yabai -m space --focus 3 -cmd - 4 : yabai -m space --focus 4 -cmd - 5 : yabai -m space --focus 5 -cmd - 6 : yabai -m space --focus 6 -cmd - 7 : yabai -m space --focus 7 -cmd - 8 : yabai -m space --focus 8 -cmd - 9 : yabai -m space --focus 9 +cmd - 1 : yabai -m space --focus 1 || yabai -m space --focus recent +cmd - 2 : yabai -m space --focus 2 || yabai -m space --focus recent +cmd - 3 : yabai -m space --focus 3 || yabai -m space --focus recent +cmd - 4 : yabai -m space --focus 4 || yabai -m space --focus recent +cmd - 5 : yabai -m space --focus 5 || yabai -m space --focus recent +cmd - 6 : yabai -m space --focus 6 || yabai -m space --focus recent +cmd - 7 : yabai -m space --focus 7 || yabai -m space --focus recent +cmd - 8 : yabai -m space --focus 8 || yabai -m space --focus recent +cmd - 9 : yabai -m space --focus 9 || yabai -m space --focus recent cmd - 0 : yabai -m space --focus recent shift + cmd - 1 : yabai -m window --space 1; yabai -m space --focus 1 diff --git a/macos/.config/spacebar/spacebarrc b/macos/.config/spacebar/spacebarrc new file mode 100755 index 0000000..9f46830 --- /dev/null +++ b/macos/.config/spacebar/spacebarrc @@ -0,0 +1,35 @@ +#!/usr/bin/env sh + +spacebar -m config position top +spacebar -m config display main +spacebar -m config height 24 +spacebar -m config text_font "VictorMono Nerd Font:Bold:11.0" +spacebar -m config icon_font "VictorMono Nerd Font:Regular:11.0" +spacebar -m config background_color 0x00282c34 +spacebar -m config foreground_color 0xffabb2bf +spacebar -m config padding_left 8 +spacebar -m config padding_right 8 +spacebar -m config spacing_left 12 +spacebar -m config spacing_right 24 + +spacebar -m config title on + +spacebar -m config clock on +spacebar -m config clock_format "%m/%d/%y %I:%M" +spacebar -m config clock_icon  +spacebar -m config clock_icon_color 0xffabb2bf + +spacebar -m config spaces on +spacebar -m config spaces_for_all_displays on +spacebar -m config space_icon • +spacebar -m config space_icon_color 0xffe5c07b +spacebar -m config space_icon_color_secondary 0xff61afef +spacebar -m config space_icon_color_tertiary 0xffc678dd +spacebar -m config space_icon_strip 1 2 3 4 5 6 7 8 9 + +spacebar -m config power on +spacebar -m config power_icon_color 0xffe5c07b +spacebar -m config power_icon_strip   +spacebar -m config battery_icon_color 0xffe06c75 + +echo "spacebar configuration loaded.." diff --git a/macos/.config/yabai/yabairc b/macos/.config/yabai/yabairc index 01331f9..b39f617 100755 --- a/macos/.config/yabai/yabairc +++ b/macos/.config/yabai/yabairc @@ -36,3 +36,5 @@ yabai -m config window_gap 12 # Floating applications yabai -m rule --add app="System Preferences" manage=off + +echo "yabai configuration loaded.." diff --git a/macos/Brewfile b/macos/Brewfile index 2bca74d..4efbb49 100644 --- a/macos/Brewfile +++ b/macos/Brewfile @@ -1,5 +1,6 @@ # -*- mode: ruby -*- +tap 'cmacrae/formulae' tap 'homebrew/command-not-found' tap 'homebrew/cask-fonts' tap 'koekeishiya/formulae' @@ -9,6 +10,7 @@ brew 'gnupg2' brew 'jq' brew 'mas' brew 'skhd' +brew 'spacebar' brew 'stow' brew 'trash' brew 'tree'