mirror of
https://github.com/Ajetski/dotfiles.git
synced 2025-09-30 11:33:18 -09:00
setup spaces
This commit is contained in:
parent
fb924108e5
commit
4a85335384
@ -1,6 +1,8 @@
|
||||
# Services
|
||||
hyper - z : brew services restart yabai
|
||||
hyper - x : brew services restart skhd
|
||||
hyper - c : killall limelight &> /dev/null; \
|
||||
~/.config/limelight/limelight/bin/limelight -c ~/.config/limelight/limelightrc &> /dev/null &
|
||||
|
||||
# Moving focus
|
||||
hyper - k : yabai -m window --focus north
|
||||
@ -8,17 +10,15 @@ hyper - h : yabai -m window --focus west
|
||||
hyper - j : yabai -m window --focus south
|
||||
hyper - l : yabai -m window --focus east
|
||||
|
||||
# Focus next monitor
|
||||
hyper - p : yabai -m display --focus next || yabai -m display --focus first
|
||||
|
||||
# Moving windows
|
||||
meh - k : yabai -m window --warp north || $(yabai -m window --display north; yabai -m display --focus north)
|
||||
meh - h : yabai -m window --warp west || $(yabai -m window --display west; yabai -m display --focus west)
|
||||
meh - j : yabai -m window --warp south || $(yabai -m window --display south; yabai -m display --focus south)
|
||||
meh - l : yabai -m window --warp east || $(yabai -m window --display east; yabai -m display --focus east)
|
||||
|
||||
# Toggle mouse focus mode
|
||||
hyper - m : [[ $(yabai -m config focus_follows_mouse) = "disabled" ]] && \
|
||||
yabai -m config focus_follows_mouse autoraise || \
|
||||
yabai -m config focus_follows_mouse off
|
||||
|
||||
# Resize windows
|
||||
hyper - i : \
|
||||
yabai -m window --resize top:0:-20 ; \
|
||||
@ -50,5 +50,12 @@ hyper - t : yabai -m window --toggle float;\
|
||||
hyper - f : yabai -m window --toggle zoom-fullscreen
|
||||
|
||||
# Enable / Disable gaps in current workspace
|
||||
hyper - 0 : yabai -m space --toggle padding; yabai -m space --toggle gap
|
||||
hyper - v : yabai -m space --toggle padding; yabai -m space --toggle gap
|
||||
|
||||
# setup binds to spaces
|
||||
meh - q : yabai -m window --space 1
|
||||
meh - w : yabai -m window --space 2
|
||||
meh - e : yabai -m window --space 3
|
||||
meh - y : yabai -m window --space 4
|
||||
meh - u : yabai -m window --space 5
|
||||
meh - i : yabai -m window --space 6
|
||||
|
@ -4,14 +4,12 @@
|
||||
# bsp or float (default: bsp)
|
||||
#yabai -m config layout bsp
|
||||
|
||||
# My custom space names for my 3 monitor setup. These names are used in some of my scripts.
|
||||
yabai -m space 1 --label one
|
||||
yabai -m space 2 --label two
|
||||
yabai -m space 3 --label three
|
||||
yabai -m space 4 --label four
|
||||
yabai -m space 5 --label five
|
||||
yabai -m space 6 --label six
|
||||
yabai -m space 9 --label nine
|
||||
yabai -m space 1 --label term
|
||||
yabai -m space 2 --label docs
|
||||
yabai -m space 3 --label free
|
||||
yabai -m space 4 --label slack
|
||||
yabai -m space 5 --label web
|
||||
yabai -m space 6 --label email
|
||||
|
||||
# float system preferences. Most of these just diable Yabai form resizing them.
|
||||
yabai -m rule --add app="^System Preferences$" sticky=on layer=above manage=off
|
||||
@ -38,11 +36,7 @@ yabai -m rule --add app="^Logi Options$" manage=off
|
||||
yabai -m rule --add app="^Cisco Webex Start$" manage=off
|
||||
yabai -m rule --add app="^Private Internet Access$" manage=off
|
||||
|
||||
#find ~/Library/Parallels/Applications\ Menus/ -maxdepth 3 -type f | awk -F'/' '{ print $NF; }' | awk '{$1=$1};1' | sort | uniq | tr "\n" "\0" | xargs -0 -I{} yabai -m rule --add app="^{}\$" title=".*" manage=on
|
||||
|
||||
## Some random global settings
|
||||
#yabai -m config focus_follows_mouse autoraise
|
||||
#yabai -m config focus_follows_mouse on
|
||||
# New window spawns to the right if vertical split, or bottom if horizontal split
|
||||
yabai -m config window_placement second_child
|
||||
yabai -m config window_topmost off
|
||||
@ -56,13 +50,6 @@ yabai -m config active_window_opacity 1.0
|
||||
## WITH SIP ENABLED (Installed Limelight seperately, Don't need this)
|
||||
yabai -m config window_border off
|
||||
|
||||
## WTIH SIP DISABLED (Limelight build into Yabai, enable it here)
|
||||
#yabai -m config window_border on
|
||||
#yabai -m config window_border_width 3
|
||||
#yabai -m config active_window_border_color 0xFF40FF00
|
||||
#yabai -m config normal_window_border_color 0x00FFFFFF
|
||||
#yabai -m config insert_feedback_color 0xffd75f5f
|
||||
|
||||
## some other settings
|
||||
yabai -m config auto_balance off
|
||||
yabai -m config split_ratio 0.50
|
||||
@ -73,10 +60,6 @@ yabai -m config mouse_action2 resize
|
||||
# set modifier + left-click drag to resize window (default: move)
|
||||
yabai -m config mouse_action1 move
|
||||
|
||||
# general space settings
|
||||
#yabai -m config focused_border_skip_floating 1
|
||||
#yabai -m config --space 3 layout float
|
||||
|
||||
## Change how yabai looks
|
||||
PADDING=10
|
||||
yabai -m config layout bsp
|
||||
@ -90,30 +73,6 @@ yabai -m config window_gap 10
|
||||
killall limelight &> /dev/null
|
||||
~/.config/limelight/limelight/bin/limelight -c ~/.config/limelight/limelightrc &> /dev/null &
|
||||
|
||||
# #Ubersicht widget bar stuff
|
||||
#yabai -m signal --add event=space_changed \
|
||||
#action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
|
||||
#yabai -m signal --add event=display_changed \
|
||||
#action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-primary-jsx\"'"
|
||||
|
||||
#yabai -m signal --add event=space_changed \
|
||||
#action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'"
|
||||
#yabai -m signal --add event=display_changed \
|
||||
#action="osascript -e 'tell application \"Übersicht\" to refresh widget id \"nibar-spaces-secondary-jsx\"'"
|
||||
|
||||
# signals
|
||||
# yabai -m signal --add event=window_destroyed action="yabai -m query --windows --window &> /dev/null || yabai -m window --focus mouse"
|
||||
#yabai -m signal --add event=space_changed action="yabai -m window --focus $(yabai -m query --windows --window | jq ".id")"
|
||||
# yabai -m signal --add event=application_terminated action="yabai -m query --windows --window &> /dev/null || yabai -m window --focus mouse"
|
||||
|
||||
#testing signals
|
||||
# yabai -m signal --add event=window_destroyed action="terminal-notifier -message 'window_destroyed'"
|
||||
# yabai -m signal --add event=application_terminated action="terminal-notifier -message 'application_terminated'"
|
||||
|
||||
## If I close the active window, focus on any other visible window.
|
||||
yabai -m signal --add event=window_destroyed action="bash /Users/jesseskelton/CustomScripts/SwitchSpaces/window-focus-on-destroy.sh"
|
||||
# yabai -m signal --add event=space_changed action="export CUR_ACTIVE_APP=\"iTerm2\""
|
||||
|
||||
echo "yabai configuration loaded.."
|
||||
|
||||
#END
|
||||
|
Loading…
x
Reference in New Issue
Block a user