skhd: Added shortcuts for directly focussing spaces and moving windows to spaces
This commit is contained in:
parent
a3421c2629
commit
62dafa5930
@ -1,83 +1,3 @@
|
|||||||
# ################################################################ #
|
|
||||||
# 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 left window
|
# focus left window
|
||||||
meh - h : yabai -m window --focus west
|
meh - h : yabai -m window --focus west
|
||||||
|
|
||||||
@ -98,5 +18,25 @@ meh + cmd - right : yabai -m window --focus east
|
|||||||
meh + cmd - up : yabai -m window --focus north
|
meh + cmd - up : yabai -m window --focus north
|
||||||
meh + cmd - down : yabai -m window --focus south
|
meh + cmd - down : yabai -m window --focus south
|
||||||
|
|
||||||
|
# focus spaces
|
||||||
|
alt - 1 : yabai -m space --focus 1
|
||||||
|
alt - 2 : yabai -m space --focus 2
|
||||||
|
alt - 3 : yabai -m space --focus 3
|
||||||
|
alt - 4 : yabai -m space --focus 4
|
||||||
|
alt - 5 : yabai -m space --focus 5
|
||||||
|
alt - 6 : yabai -m space --focus 6
|
||||||
|
alt - 7 : yabai -m space --focus 7
|
||||||
|
alt - 8 : yabai -m space --focus 8
|
||||||
|
|
||||||
|
# move window to space
|
||||||
|
shift + alt - 1 : yabai -m window --space 1
|
||||||
|
shift + alt - 2 : yabai -m window --space 2
|
||||||
|
shift + alt - 3 : yabai -m window --space 3
|
||||||
|
shift + alt - 4 : yabai -m window --space 4
|
||||||
|
shift + alt - 5 : yabai -m window --space 5
|
||||||
|
shift + alt - 6 : yabai -m window --space 6
|
||||||
|
shift + alt - 7 : yabai -m window --space 7
|
||||||
|
shift + alt - 8 : yabai -m window --space 8
|
||||||
|
|
||||||
# restart yabai and skhd
|
# restart yabai and skhd
|
||||||
ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai" && launchctl kickstart -k "gui/${UID}/homebrew.mxcl.skhd"
|
ctrl + alt + cmd - r : launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai" && launchctl kickstart -k "gui/${UID}/homebrew.mxcl.skhd"
|
Loading…
Reference in New Issue
Block a user