Browse Source

[macos] Introduce spacebar

master
juan 4 years ago
parent
commit
13eea1cb50
4 changed files with 49 additions and 10 deletions
  1. +10
    -10
      macos/.config/skhd/skhdrc
  2. +35
    -0
      macos/.config/spacebar/spacebarrc
  3. +2
    -0
      macos/.config/yabai/yabairc
  4. +2
    -0
      macos/Brewfile

+ 10
- 10
macos/.config/skhd/skhdrc View File

@ -3,7 +3,7 @@
# #
# General # 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 # Applications
@ -37,15 +37,15 @@ shift + cmd - l : yabai -m window --swap east
# #
# Space management # 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 cmd - 0 : yabai -m space --focus recent
shift + cmd - 1 : yabai -m window --space 1; yabai -m space --focus 1 shift + cmd - 1 : yabai -m window --space 1; yabai -m space --focus 1

+ 35
- 0
macos/.config/spacebar/spacebarrc View File

@ -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.."

+ 2
- 0
macos/.config/yabai/yabairc View File

@ -36,3 +36,5 @@ yabai -m config window_gap 12
# Floating applications # Floating applications
yabai -m rule --add app="System Preferences" manage=off yabai -m rule --add app="System Preferences" manage=off
echo "yabai configuration loaded.."

+ 2
- 0
macos/Brewfile View File

@ -1,5 +1,6 @@
# -*- mode: ruby -*- # -*- mode: ruby -*-
tap 'cmacrae/formulae'
tap 'homebrew/command-not-found' tap 'homebrew/command-not-found'
tap 'homebrew/cask-fonts' tap 'homebrew/cask-fonts'
tap 'koekeishiya/formulae' tap 'koekeishiya/formulae'
@ -9,6 +10,7 @@ brew 'gnupg2'
brew 'jq' brew 'jq'
brew 'mas' brew 'mas'
brew 'skhd' brew 'skhd'
brew 'spacebar'
brew 'stow' brew 'stow'
brew 'trash' brew 'trash'
brew 'tree' brew 'tree'

Loading…
Cancel
Save