/macOS

Primary LanguageShell

README

This repository is meant to be executed on fresh macOS instance.


Usage

Open default terminal application and execute start.sh script:

# chmod +x start.sh
# ./start.sh

Software

Bash script installs:

Ansible playbook installs:

The playbook will also change zsh theme to ys, copy .yabairc and .skhdrc configs tu user directory and restart yabai and skhd services.

skhd - shortcuts for yabai

General

  • cmd + enter - open new iTerm2 window (enter = return)
  • cmd + alt + f - toggle window fullscreen
  • alt + f - toggle window fullscreen (for convenience)
  • alt + d - toggle window parent zoom
  • cmd + alt + e - toggle window split type
  • cmd + alt + t - float window and center on screen

Focus

  • cmd + alt + left - change focus to west
  • cmd + alt + down - change focus to south
  • cmd + alt + up - change focus to north
  • cmd + alt + right - change focus to east
  • cmd + alt + w - close focused window

Move windows

  • cmd + alt + ctrl + left - move window west
  • cmd + alt + ctrl + down - move window south
  • cmd + alt + ctrl + up - move window north
  • cmd + alt + ctrl + right - move window east

Resize windows

  • shift + alt + a - increase window size west
  • shift + alt + s - increase window size south
  • shift + alt + w - increase window size north
  • shift + alt + d - increase window size east

Swap windows

  • shift + alt + h - swap window west
  • shift + alt + j - swap window south
  • shift + alt + k - swap window north
  • shift + alt + l - swap window east

Send window to screen

  • ctrl + cmd + n - send window to next screen
  • ctrl + cmd + p - send window to prev screen

Send window to monitor

  • ctrl + cmd + 1 - send window to 1 monitor and follow focus
  • ctrl + cmd + 2 - send window to 2 monitor and follow focus
  • ctrl + cmd + 3 - send window to 3 monitor and follow focus

Focus monitor

  • ctrl + alt + 1 - focus on monitor 1
  • ctrl + alt + 2 - focus on monitor 2
  • ctrl + alt + 3 - focus on monitor 3

Other

  • shift + alt + 0 - equalize size of windows
  • cmd + alt + r - rotate tree 90 degrees
  • cmd + alt + x - mirror x axis
  • cmd + alt + y - mirror y axis
  • ctrl + alt + a - change layout of desktop (bsp)
  • ctrl + alt + s - change layout of desktop (monocle)