diff options
Diffstat (limited to 'macos')
| -rw-r--r-- | macos/.DS_Store | bin | 0 -> 8196 bytes | |||
| -rw-r--r-- | macos/iterm2/DefaultProfile.json | 609 | ||||
| -rw-r--r-- | macos/skhd/.config/skhd/skhdrc | 154 | ||||
| -rw-r--r-- | macos/yabai/.config/yabai/yabairc | 47 |
4 files changed, 810 insertions, 0 deletions
diff --git a/macos/.DS_Store b/macos/.DS_Store Binary files differnew file mode 100644 index 0000000..00be6f7 --- /dev/null +++ b/macos/.DS_Store diff --git a/macos/iterm2/DefaultProfile.json b/macos/iterm2/DefaultProfile.json new file mode 100644 index 0000000..e96a5e2 --- /dev/null +++ b/macos/iterm2/DefaultProfile.json @@ -0,0 +1,609 @@ +{ + "Ansi 7 Color (Light)" : { + "Red Component" : 0.7810397744178772, + "Color Space" : "sRGB", + "Blue Component" : 0.78104829788208008, + "Alpha Component" : 1, + "Green Component" : 0.78105825185775757 + }, + "Ansi 15 Color (Light)" : { + "Red Component" : 0.99999600648880005, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Ansi 2 Color (Light)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.7607843279838562 + }, + "Bold Color" : { + "Red Component" : 0.062745101749897003, + "Color Space" : "sRGB", + "Blue Component" : 0.062745101749897003, + "Alpha Component" : 1, + "Green Component" : 0.062745101749897003 + }, + "Ansi 1 Color (Dark)" : { + "Red Component" : 0.7074432373046875, + "Color Space" : "sRGB", + "Blue Component" : 0.16300037503242493, + "Alpha Component" : 1, + "Green Component" : 0.23660069704055786 + }, + "Use Bright Bold" : true, + "Ansi 9 Color (Light)" : { + "Red Component" : 0.8659515380859375, + "Color Space" : "sRGB", + "Blue Component" : 0.45833224058151245, + "Alpha Component" : 1, + "Green Component" : 0.47524076700210571 + }, + "Ansi 8 Color (Dark)" : { + "Red Component" : 0.40781760215759277, + "Color Space" : "sRGB", + "Blue Component" : 0.4078223705291748, + "Alpha Component" : 1, + "Green Component" : 0.40782788395881653 + }, + "Background Color" : { + "Red Component" : 0.97999999999999998, + "Color Space" : "sRGB", + "Blue Component" : 0.97999999999999998, + "Alpha Component" : 1, + "Green Component" : 0.97999999999999998 + }, + "Columns" : 80, + "Ansi 8 Color" : { + "Red Component" : 0.40781760215759277, + "Color Space" : "sRGB", + "Blue Component" : 0.4078223705291748, + "Alpha Component" : 1, + "Green Component" : 0.40782788395881653 + }, + "Right Option Key Sends" : 0, + "Ansi 4 Color (Light)" : { + "Red Component" : 0.15404300391674042, + "Color Space" : "sRGB", + "Blue Component" : 0.78216177225112915, + "Alpha Component" : 1, + "Green Component" : 0.26474356651306152 + }, + "Blinking Cursor" : false, + "Selected Text Color (Light)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Selected Text Color (Dark)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Ansi 3 Color (Dark)" : { + "Red Component" : 0.78058648109436035, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.76959484815597534 + }, + "Keyboard Map" : { + + }, + "Visual Bell" : true, + "Only The Default BG Color Uses Transparency" : true, + "Cursor Text Color" : { + "Red Component" : 1, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Scrollback Lines" : 1000, + "Selection Color (Light)" : { + "Red Component" : 0.70196080207824707, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.84313726425170898 + }, + "Ansi 0 Color" : { + "Red Component" : 0.078431375324726105, + "Color Space" : "sRGB", + "Blue Component" : 0.11764705926179886, + "Alpha Component" : 1, + "Green Component" : 0.098039217293262482 + }, + "Ansi 11 Color (Light)" : { + "Red Component" : 0.9259033203125, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.8833775520324707 + }, + "Ansi 5 Color (Dark)" : { + "Red Component" : 0.752197265625, + "Color Space" : "sRGB", + "Blue Component" : 0.74494361877441406, + "Alpha Component" : 1, + "Green Component" : 0.24931684136390686 + }, + "Cursor Text Color (Light)" : { + "Red Component" : 1, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Silence Bell" : false, + "Rows" : 25, + "Draw Powerline Glyphs" : true, + "Guid" : "96EA4DEF-3C19-4E95-B31F-F9F1FB610067", + "Ansi 14 Color (Dark)" : { + "Red Component" : 0.37597531080245972, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.99263292551040649 + }, + "Ansi 15 Color (Dark)" : { + "Red Component" : 0.99999600648880005, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Ansi 0 Color (Dark)" : { + "Red Component" : 0.078431375324726105, + "Color Space" : "sRGB", + "Blue Component" : 0.11764705926179886, + "Alpha Component" : 1, + "Green Component" : 0.098039217293262482 + }, + "Ambiguous Double Width" : false, + "Option Key Sends" : 2, + "Ansi 3 Color" : { + "Red Component" : 0.78058648109436035, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.76959484815597534 + }, + "Window Type" : 0, + "BM Growl" : true, + "Prompt Before Closing 2" : false, + "Command" : "", + "Selected Text Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Ansi 14 Color (Light)" : { + "Red Component" : 0.37597531080245972, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.99263292551040649 + }, + "Cursor Guide Color (Dark)" : { + "Red Component" : 0.37649588016392954, + "Color Space" : "sRGB", + "Blue Component" : 0.94099044799804688, + "Alpha Component" : 0.25, + "Green Component" : 0.80232617749205526 + }, + "Send Code When Idle" : false, + "Ansi 6 Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0.78166204690933228, + "Alpha Component" : 1, + "Green Component" : 0.77425903081893921 + }, + "Jobs to Ignore" : [ + "rlogin", + "ssh", + "slogin", + "telnet" + ], + "Badge Color (Dark)" : { + "Red Component" : 0.9787440299987793, + "Color Space" : "sRGB", + "Blue Component" : 0.65218597462148864, + "Alpha Component" : 0.5, + "Green Component" : 0.65218597462148864 + }, + "Cursor Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Vertical Spacing" : 1, + "Disable Window Resizing" : true, + "Close Sessions On End" : true, + "Selection Color (Dark)" : { + "Red Component" : 0.70196080207824707, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.84313726425170898 + }, + "Default Bookmark" : "No", + "Foreground Color (Light)" : { + "Red Component" : 0.062745098039215685, + "Color Space" : "sRGB", + "Blue Component" : 0.062745098039215685, + "Alpha Component" : 1, + "Green Component" : 0.062745098039215685 + }, + "Custom Command" : "No", + "Background Color (Dark)" : { + "Red Component" : 0.0806884765625, + "Color Space" : "sRGB", + "Blue Component" : 0.12103271484375, + "Alpha Component" : 1, + "Green Component" : 0.099111050367355347 + }, + "Ansi 9 Color" : { + "Red Component" : 0.8659515380859375, + "Color Space" : "sRGB", + "Blue Component" : 0.45833224058151245, + "Alpha Component" : 1, + "Green Component" : 0.47524076700210571 + }, + "Ansi 14 Color" : { + "Red Component" : 0.37597531080245972, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.99263292551040649 + }, + "Flashing Bell" : false, + "Use Italic Font" : true, + "Ansi 13 Color (Dark)" : { + "Red Component" : 0.8821563720703125, + "Color Space" : "sRGB", + "Blue Component" : 0.8821563720703125, + "Alpha Component" : 1, + "Green Component" : 0.4927266538143158 + }, + "Minimum Contrast" : 0, + "Cursor Guide Color (Light)" : { + "Red Component" : 0.52338262643729649, + "Color Space" : "sRGB", + "Blue Component" : 0.85319280624389648, + "Alpha Component" : 0.25, + "Green Component" : 0.77217718629089516 + }, + "Ansi 12 Color" : { + "Red Component" : 0.65349078178405762, + "Color Space" : "sRGB", + "Blue Component" : 0.9485321044921875, + "Alpha Component" : 1, + "Green Component" : 0.67044717073440552 + }, + "Ansi 10 Color (Light)" : { + "Red Component" : 0.3450070321559906, + "Color Space" : "sRGB", + "Blue Component" : 0.56541937589645386, + "Alpha Component" : 1, + "Green Component" : 0.9042816162109375 + }, + "Non-ASCII Anti Aliased" : true, + "Ansi 10 Color" : { + "Red Component" : 0.3450070321559906, + "Color Space" : "sRGB", + "Blue Component" : 0.56541937589645386, + "Alpha Component" : 1, + "Green Component" : 0.9042816162109375 + }, + "Foreground Color" : { + "Red Component" : 0.062745101749897003, + "Color Space" : "sRGB", + "Blue Component" : 0.062745101749897003, + "Alpha Component" : 1, + "Green Component" : 0.062745101749897003 + }, + "Link Color (Light)" : { + "Red Component" : 0.19802422821521759, + "Color Space" : "sRGB", + "Blue Component" : 0.9337158203125, + "Alpha Component" : 1, + "Green Component" : 0.55789834260940552 + }, + "Description" : "Default", + "Ansi 7 Color (Dark)" : { + "Red Component" : 0.7810397744178772, + "Color Space" : "sRGB", + "Blue Component" : 0.78104829788208008, + "Alpha Component" : 1, + "Green Component" : 0.78105825185775757 + }, + "Sync Title" : false, + "Ansi 1 Color" : { + "Red Component" : 0.7074432373046875, + "Color Space" : "sRGB", + "Blue Component" : 0.16300037503242493, + "Alpha Component" : 1, + "Green Component" : 0.23660069704055786 + }, + "Name" : "Default", + "Transparency" : 0, + "Horizontal Spacing" : 1, + "Cursor Color (Dark)" : { + "Red Component" : 0.99997633695602417, + "Color Space" : "sRGB", + "Blue Component" : 0.99998724460601807, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Ansi 2 Color (Dark)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.7607843279838562 + }, + "Ansi 9 Color (Dark)" : { + "Red Component" : 0.8659515380859375, + "Color Space" : "sRGB", + "Blue Component" : 0.45833224058151245, + "Alpha Component" : 1, + "Green Component" : 0.47524076700210571 + }, + "Badge Color" : { + "Red Component" : 0.74613857269287109, + "Color Space" : "sRGB", + "Blue Component" : 0.11610633134841919, + "Alpha Component" : 0.5, + "Green Component" : 0.11610633134841919 + }, + "Ansi 13 Color (Light)" : { + "Red Component" : 0.8821563720703125, + "Color Space" : "sRGB", + "Blue Component" : 0.8821563720703125, + "Alpha Component" : 1, + "Green Component" : 0.4927266538143158 + }, + "Idle Code" : 0, + "Ansi 4 Color" : { + "Red Component" : 0.15404300391674042, + "Color Space" : "sRGB", + "Blue Component" : 0.78216177225112915, + "Alpha Component" : 1, + "Green Component" : 0.26474356651306152 + }, + "Bold Color (Dark)" : { + "Red Component" : 0.99999600648880005, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Screen" : -1, + "Ansi 4 Color (Dark)" : { + "Red Component" : 0.15404300391674042, + "Color Space" : "sRGB", + "Blue Component" : 0.78216177225112915, + "Alpha Component" : 1, + "Green Component" : 0.26474356651306152 + }, + "Cursor Text Color (Dark)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Selection Color" : { + "Red Component" : 0.70196080207824707, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 0.84313726425170898 + }, + "Use Non-ASCII Font" : false, + "Badge Color (Light)" : { + "Red Component" : 0.74613857269287109, + "Color Space" : "sRGB", + "Blue Component" : 0.11610633058398889, + "Alpha Component" : 0.5, + "Green Component" : 0.11610633058398889 + }, + "Character Encoding" : 4, + "Ansi 11 Color (Dark)" : { + "Red Component" : 0.9259033203125, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.8833775520324707 + }, + "Bold Color (Light)" : { + "Red Component" : 0.062745098039215685, + "Color Space" : "sRGB", + "Blue Component" : 0.062745098039215685, + "Alpha Component" : 1, + "Green Component" : 0.062745098039215685 + }, + "Ansi 12 Color (Dark)" : { + "Red Component" : 0.65349078178405762, + "Color Space" : "sRGB", + "Blue Component" : 0.9485321044921875, + "Alpha Component" : 1, + "Green Component" : 0.67044717073440552 + }, + "Ansi 7 Color" : { + "Red Component" : 0.7810397744178772, + "Color Space" : "sRGB", + "Blue Component" : 0.78104829788208008, + "Alpha Component" : 1, + "Green Component" : 0.78105825185775757 + }, + "Non Ascii Font" : "Monaco 12", + "Ansi 6 Color (Dark)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0.78166204690933228, + "Alpha Component" : 1, + "Green Component" : 0.77425903081893921 + }, + "Cursor Guide Color" : { + "Red Component" : 0.52338260412216187, + "Color Space" : "sRGB", + "Blue Component" : 0.85319280624389648, + "Alpha Component" : 0.25, + "Green Component" : 0.77217715978622437 + }, + "Custom Directory" : "No", + "Working Directory" : "\/Users\/cmc", + "ASCII Anti Aliased" : true, + "Shortcut" : "", + "Mouse Reporting" : true, + "Tags" : [ + + ], + "Ansi 6 Color (Light)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0.78166204690933228, + "Alpha Component" : 1, + "Green Component" : 0.77425903081893921 + }, + "Background Image Location" : "", + "Ansi 1 Color (Light)" : { + "Red Component" : 0.7074432373046875, + "Color Space" : "sRGB", + "Blue Component" : 0.16300037503242493, + "Alpha Component" : 1, + "Green Component" : 0.23660069704055786 + }, + "Use Bold Font" : true, + "Ansi 8 Color (Light)" : { + "Red Component" : 0.40781760215759277, + "Color Space" : "sRGB", + "Blue Component" : 0.4078223705291748, + "Alpha Component" : 1, + "Green Component" : 0.40782788395881653 + }, + "Ansi 2 Color" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.7607843279838562 + }, + "Normal Font" : "MesloLGS-NF-Regular 13", + "Unlimited Scrollback" : false, + "Ansi 12 Color (Light)" : { + "Red Component" : 0.65349078178405762, + "Color Space" : "sRGB", + "Blue Component" : 0.9485321044921875, + "Alpha Component" : 1, + "Green Component" : 0.67044717073440552 + }, + "Ansi 10 Color (Dark)" : { + "Red Component" : 0.3450070321559906, + "Color Space" : "sRGB", + "Blue Component" : 0.56541937589645386, + "Alpha Component" : 1, + "Green Component" : 0.9042816162109375 + }, + "Ansi 3 Color (Light)" : { + "Red Component" : 0.78058648109436035, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.76959484815597534 + }, + "Cursor Color (Light)" : { + "Red Component" : 0, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0 + }, + "Ansi 15 Color" : { + "Red Component" : 0.99999600648880005, + "Color Space" : "sRGB", + "Blue Component" : 1, + "Alpha Component" : 1, + "Green Component" : 1 + }, + "Blur" : false, + "Use Separate Colors for Light and Dark Mode" : true, + "Background Color (Light)" : { + "Red Component" : 0.97999999999999998, + "Color Space" : "sRGB", + "Blue Component" : 0.97999999999999998, + "Alpha Component" : 1, + "Green Component" : 0.97999999999999998 + }, + "Terminal Type" : "xterm-256color", + "Ansi 13 Color" : { + "Red Component" : 0.8821563720703125, + "Color Space" : "sRGB", + "Blue Component" : 0.8821563720703125, + "Alpha Component" : 1, + "Green Component" : 0.4927266538143158 + }, + "Ansi 5 Color (Light)" : { + "Red Component" : 0.752197265625, + "Color Space" : "sRGB", + "Blue Component" : 0.74494361877441406, + "Alpha Component" : 1, + "Green Component" : 0.24931684136390686 + }, + "Foreground Color (Dark)" : { + "Red Component" : 0.86197912693023682, + "Color Space" : "sRGB", + "Blue Component" : 0.86198854446411133, + "Alpha Component" : 1, + "Green Component" : 0.86199951171875 + }, + "Link Color" : { + "Red Component" : 0.19802422821521759, + "Color Space" : "sRGB", + "Blue Component" : 0.9337158203125, + "Alpha Component" : 1, + "Green Component" : 0.55789834260940552 + }, + "Link Color (Dark)" : { + "Red Component" : 0.19802422821521759, + "Color Space" : "sRGB", + "Blue Component" : 0.9337158203125, + "Alpha Component" : 1, + "Green Component" : 0.55789834260940552 + }, + "Ansi 11 Color" : { + "Red Component" : 0.9259033203125, + "Color Space" : "sRGB", + "Blue Component" : 0, + "Alpha Component" : 1, + "Green Component" : 0.8833775520324707 + }, + "Ansi 5 Color" : { + "Red Component" : 0.752197265625, + "Color Space" : "sRGB", + "Blue Component" : 0.74494361877441406, + "Alpha Component" : 1, + "Green Component" : 0.24931684136390686 + }, + "Ansi 0 Color (Light)" : { + "Red Component" : 0.078431375324726105, + "Color Space" : "sRGB", + "Blue Component" : 0.11764705926179886, + "Alpha Component" : 1, + "Green Component" : 0.098039217293262482 + } +}
\ No newline at end of file diff --git a/macos/skhd/.config/skhd/skhdrc b/macos/skhd/.config/skhd/skhdrc new file mode 100644 index 0000000..981cf17 --- /dev/null +++ b/macos/skhd/.config/skhd/skhdrc @@ -0,0 +1,154 @@ +# ################################################################ # +# THE FOLLOWING IS AN EXPLANATION OF THE GRAMMAR THAT SKHD PARSES. # +# FOR SIMPLE EXAMPLE MAPPINGS LOOK FURTHER DOWN THIS FILE.. # +# ################################################################ # + +# A list of all built-in modifier and literal keywords can +# be found at https://github.com/koekeishiya/skhd/issues/1 +# +# A hotkey is written according to the following rules: +# +# hotkey = <mode> '<' <action> | <action> +# +# mode = 'name of mode' | <mode> ',' <mode> +# +# action = <keysym> '[' <proc_map_lst> ']' | <keysym> '->' '[' <proc_map_lst> ']' +# <keysym> ':' <command> | <keysym> '->' ':' <command> +# <keysym> ';' <mode> | <keysym> '->' ';' <mode> +# +# keysym = <mod> '-' <key> | <key> +# +# mod = 'modifier keyword' | <mod> '+' <mod> +# +# key = <literal> | <keycode> +# +# literal = 'single letter or built-in keyword' +# +# keycode = 'apple keyboard kVK_<Key> values (0x3C)' +# +# proc_map_lst = * <proc_map> +# +# proc_map = <string> ':' <command> | <string> '~' | +# '*' ':' <command> | '*' '~' +# +# string = '"' 'sequence of characters' '"' +# +# command = command is executed through '$SHELL -c' and +# follows valid shell syntax. if the $SHELL environment +# variable is not set, it will default to '/bin/bash'. +# when bash is used, the ';' delimeter can be specified +# to chain commands. +# +# to allow a command to extend into multiple lines, +# prepend '\' at the end of the previous line. +# +# an EOL character signifies the end of the bind. +# +# -> = keypress is not consumed by skhd +# +# * = matches every application not specified in <proc_map_lst> +# +# ~ = application is unbound and keypress is forwarded per usual, when specified in a <proc_map> +# +# A mode is declared according to the following rules: +# +# mode_decl = '::' <name> '@' ':' <command> | '::' <name> ':' <command> | +# '::' <name> '@' | '::' <name> +# +# name = desired name for this mode, +# +# @ = capture keypresses regardless of being bound to an action +# +# command = command is executed through '$SHELL -c' and +# follows valid shell syntax. if the $SHELL environment +# variable is not set, it will default to '/bin/bash'. +# when bash is used, the ';' delimeter can be specified +# to chain commands. +# +# to allow a command to extend into multiple lines, +# prepend '\' at the end of the previous line. +# +# an EOL character signifies the end of the bind. + +# ############################################################### # +# THE FOLLOWING SECTION CONTAIN SIMPLE MAPPINGS DEMONSTRATING HOW # +# TO INTERACT WITH THE YABAI WM. THESE ARE SUPPOSED TO BE USED AS # +# A REFERENCE ONLY, WHEN MAKING YOUR OWN CONFIGURATION.. # +# ############################################################### # + +# focus window +# alt - h : yabai -m window --focus west + +# swap managed window +# shift + alt - h : yabai -m window --swap north + +# move managed window +# shift + cmd - h : yabai -m window --warp east + +# balance size of windows +# shift + alt - 0 : yabai -m space --balance + +# make floating window fill screen +# shift + alt - up : yabai -m window --grid 1:1:0:0:1:1 + +# make floating window fill left-half of screen +# shift + alt - left : yabai -m window --grid 1:2:0:0:1:1 + +# create desktop, move window and follow focus - uses jq for parsing json (brew install jq) +# shift + cmd - n : yabai -m space --create && \ +# index="$(yabai -m query --spaces --display | jq 'map(select(."is-native-fullscreen" == false))[-1].index')" && \ +# yabai -m window --space "${index}" && \ +# yabai -m space --focus "${index}" + +# fast focus desktop +# cmd + alt - x : yabai -m space --focus recent +# cmd + alt - 1 : yabai -m space --focus 1 + +# send window to desktop and follow focus +# shift + cmd - z : yabai -m window --space next; yabai -m space --focus next +# shift + cmd - 2 : yabai -m window --space 2; yabai -m space --focus 2 + +# focus monitor +# ctrl + alt - z : yabai -m display --focus prev +# ctrl + alt - 3 : yabai -m display --focus 3 + +# send window to monitor and follow focus +# ctrl + cmd - c : yabai -m window --display next; yabai -m display --focus next +# ctrl + cmd - 1 : yabai -m window --display 1; yabai -m display --focus 1 + +# move floating window +# shift + ctrl - a : yabai -m window --move rel:-20:0 +# shift + ctrl - s : yabai -m window --move rel:0:20 + +# increase window size +# shift + alt - a : yabai -m window --resize left:-20:0 +# shift + alt - w : yabai -m window --resize top:0:-20 + +# decrease window size +# shift + cmd - s : yabai -m window --resize bottom:0:-20 +# shift + cmd - w : yabai -m window --resize top:0:20 + +# set insertion point in focused container +# ctrl + alt - h : yabai -m window --insert west + +# toggle window zoom +# alt - d : yabai -m window --toggle zoom-parent +# alt - f : yabai -m window --toggle zoom-fullscreen + +# toggle window split type +# alt - e : yabai -m window --toggle split + +# float / unfloat window and center on screen +# alt - t : yabai -m window --toggle float --grid 4:4:1:1:2:2 + +# toggle sticky(+float), picture-in-picture +# alt - p : yabai -m window --toggle sticky --toggle pip + +# open terminal, blazingly fast compared to iTerm/Hyper +cmd - return : /Applications/iTerm.app/Contents/MacOS/iTerm2 + +# open browser +cmd + shift - return : /Applications/Tor\ Browser.app/Contents/MacOS/firefox + +# toggle dark mode +cmd + shift - d : osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to not dark mode' diff --git a/macos/yabai/.config/yabai/yabairc b/macos/yabai/.config/yabai/yabairc new file mode 100644 index 0000000..eedc6a9 --- /dev/null +++ b/macos/yabai/.config/yabai/yabairc @@ -0,0 +1,47 @@ +#!/usr/bin/env sh + +# +# for this to work you must configure sudo such that +# it will be able to run the command without password +# +# see this wiki page for information: +# - https://github.com/koekeishiya/yabai/wiki/Installing-yabai-(latest-release)#configure-scripting-addition +# +# yabai -m signal --add event=dock_did_restart action="sudo yabai --load-sa" +# sudo yabai --load-sa +# + +# global settings +yabai -m config \ + external_bar off:40:0 \ + menubar_opacity 1.0 \ + mouse_follows_focus off \ + focus_follows_mouse off \ + display_arrangement_order default \ + window_origin_display default \ + window_placement second_child \ + window_insertion_point focused \ + window_zoom_persist on \ + window_shadow on \ + window_animation_duration 0.0 \ + window_animation_easing ease_out_circ \ + window_opacity_duration 0.0 \ + active_window_opacity 1.0 \ + normal_window_opacity 0.90 \ + window_opacity off \ + insert_feedback_color 0xffd75f5f \ + split_ratio 0.50 \ + split_type auto \ + auto_balance off \ + top_padding 12 \ + bottom_padding 12 \ + left_padding 12 \ + right_padding 12 \ + window_gap 06 \ + layout bsp \ + mouse_modifier fn \ + mouse_action1 move \ + mouse_action2 resize \ + mouse_drop_action swap + +echo "yabai configuration loaded.." |
