Code Monkey home page Code Monkey logo

yabai-config's Introduction

视频教程地址

https://www.bilibili.com/video/BV1gf4y117aU?from=search&seid=8372827042697178885

chunkwm, yabai and skhd configs

My personal chunkwm, yabai and skhd configs

NOTE: yabai requires System Integrity Protection to be disabled to work properly. See here for more information.

Installing for chunkwm

# Remove previous links
$ rm -f "${HOME}"/.{chunkwm,skhd}rc

# Install configs
#$ git clone https://github.com/itgoyo/yabai-config.git "${HOME}"/.config/chunkwm

git clone https://github.com/ywhtyj126/yabai-config.git "${HOME}"/.config/chunkwm

$ ln -s "${HOME}/.config/chunkwm/chunkwm/chunkwmrc" "${HOME}/.chunkwmrc"
$ ln -s "${HOME}/.config/chunkwm/chunkwm/skhdrc" "${HOME}/.skhdrc"

Installing for yabai

# Remove previous links
$ rm -f "${HOME}"/.{yabai,skhd}rc

# Install configs
#$ git clone https://github.com/itgoyo/yabai-config.git "${HOME}"/.config/yabai
$ git clone https://github.com/ywhtyj126/yabai-config.git "${HOME}"/.config/yabai


$ ln -s "${HOME}/.config/yabai/yabai/yabairc" "${HOME}/.yabairc"
$ ln -s "${HOME}/.config/yabai/yabai/skhdrc" "${HOME}/.skhdrc"

Keyboard shortcuts

Chunkwm / Yabai

Changing focus

alt + hjkl

focus

Action Key Combination
focus west alt + h
focus south alt + j
focus north alt + k
focus east alt + l

Resize windows

Action Key Combination
Resize left shfit + cmd + h
Resize down shfit + cmd + j
Resize up shfit + cmd + k
Resize right shfit + cmd + l
Equalise shfit + cmd + 0

Move windows

shift + alt + hjkl

Move windows to workspace

Action Key Combination
Send to last active desktop shift + alt + m
Send to previous workplace shift + alt + p
Send to next workplace shift + alt + n
Send to workplace shift + alt + num

Rotate windows

Action Key Combination
Rotate clockwise shift + alt + r
Rotate anticlockwise alt + r
Flip on x-axis shift + alt + x
Flip on y-axis shift + alt + y

Window actions

Action Key Combination
Fullscreen alt + f
Native fullscreen shift + alt + f
Center window shift + alt + c

Insertion point

Action Key Combination
Insert left shift + lctrl + alt + h
Insert down shift + lctrl + alt + j
Insert up shift + lctrl + alt + k
Insert right shift + lctrl + alt + l
Cancel insert (chunkwm only) shift + lctrl + alt + x

Misc

Action Key Combination
Toggle float shift + alt + space
Toggle gaps lctrl + alt + g
Restart chunkwm lctrl + shift + alt + r

Non-chunkwm

Show information

Description

Uses osascript to show information like CPU, memory, battery, etc. The CPU script requires osx-cpu-temp installed. The song script supports iTunes and cmus.

Click here to view the script folder

Note: May have to change the location of the scripts in skhdrc

Key Combination

fn + lalt + num

Screenshots

fn + lalt - 1 : /path/to/script
fn + lalt - 2 : /path/to/script
fn + lalt - 3 : /path/to/script
...

Opening applications

Launch iTerm2

Description

Launches iTerm2 using like in i3-wm.

Click here to view the script

Key Combination

alt + return

alt - return : /path/to/launch/terminal

yabai-config's People

Contributors

itgoyo avatar azec4 avatar ywhtyj126 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.