Skip to content

Commit

Permalink
goku
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Si committed Jan 27, 2022
1 parent ed12b8b commit 5c8fb88
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 74 deletions.
74 changes: 37 additions & 37 deletions .config/goku/karabiner.edn
Original file line number Diff line number Diff line change
Expand Up @@ -68,61 +68,61 @@
]}
{:des, "Yabai keybinds", :rules [
;; mod + j: focus down
[:!CT#QWc "PATH=/usr/local/bin /Users/leonzalion/Library/pnpm/ymsp focus-down-window"]
[:!QW#CTc "PATH=/usr/local/bin /Users/leonzalion/Library/pnpm/ymsp focus-down-window"]
[:!CT#QWc "ymsp focus-down-window"]
[:!QW#CTc "ymsp focus-down-window"]
;; mod + k: focus up
[:!CT#QWv "/Users/leonzalion/Library/pnpm/ymsp focus-up-window"]
[:!CT#QWv "ymsp focus-up-window"]
[:!QW#CTv "ymsp focus-up-window"]
;; mod + m: focus on master
[:!CT#QWm "/usr/local/bin/yabai -m window --focus east"]
[:!QW#CTm "/usr/local/bin/yabai -m window --focus east"]
[:!CT#QWm "yabai -m window --focus east"]
[:!QW#CTm "yabai -m window --focus east"]
;; mod + shift + m: move window to master
[:!CTS#QWRm "/usr/local/bin/yabai -m window --swap east"]
[:!QWR#CTSm "/usr/local/bin/yabai -m window --swap east"]
[:!CTS#QWRm "yabai -m window --swap east"]
[:!QWR#CTSm "yabai -m window --swap east"]
;; mod + shift + i: increase number of master windows
[:!CTS#QWRg "/Users/leonzalion/Library/pnpm/ymsp increase-master-window-count"]
[:!QWR#CTSg "/Users/leonzalion/Library/pnpm/ymsp increase-master-window-count"]
[:!CTS#QWRg "ymsp increase-master-window-count"]
[:!QWR#CTSg "ymsp increase-master-window-count"]
;; mod + shift + d: decrease number of master windows
[:!CTS#QWRh "/Users/leonzalion/Library/pnpm/ymsp decrease-master-window-count"]
[:!QWR#CTSh "/Users/leonzalion/Library/pnpm/ymsp decrease-master-window-count"]
[:!CTS#QWRh "ymsp decrease-master-window-count"]
[:!QWR#CTSh "ymsp decrease-master-window-count"]
;; mod + shift + j: move window down
[:!CTS#QWRc "/usr/local/bin/yabai -m window --swap next || /usr/local/bin/yabai -m window --swap first"]
[:!QWR#CTSc "/usr/local/bin/yabai -m window --swap next || /usr/local/bin/yabai -m window --swap first"]
[:!CTS#QWRc "yabai -m window --swap next || yabai -m window --swap first"]
[:!QWR#CTSc "yabai -m window --swap next || yabai -m window --swap first"]
;; mod + shift + k: move window up
[:!CTS#QWRv "/usr/local/bin/yabai -m window --swap prev || /usr/local/bin/yabai -m window --swap last"]
[:!QWR#CTSv "/usr/local/bin/yabai -m window --swap prev || /usr/local/bin/yabai -m window --swap last"]
[:!CTS#QWRv "yabai -m window --swap prev || yabai -m window --swap last"]
[:!QWR#CTSv "yabai -m window --swap prev || yabai -m window --swap last"]
;; mod + h: resize window left
[:!CT#QWj "/usr/local/bin/yabai -m window --resize right:-50:0; /usr/local/bin/yabai -m window --resize left:-50:0"]
[:!QW#CTj "/usr/local/bin/yabai -m window --resize right:-50:0; /usr/local/bin/yabai -m window --resize left:-50:0"]
[:!CT#QWj "yabai -m window --resize right:-50:0; yabai -m window --resize left:-50:0"]
[:!QW#CTj "yabai -m window --resize right:-50:0; yabai -m window --resize left:-50:0"]
;; mod + l: resize window right
[:!CT#QWp "/usr/local/bin/yabai -m window --resize right:50:0; /usr/local/bin/yabai -m window --resize left:50:0"]
[:!QW#CTp "/usr/local/bin/yabai -m window --resize right:50:0; /usr/local/bin/yabai -m window --resize left:50:0"]
[:!CT#QWp "yabai -m window --resize right:50:0; yabai -m window --resize left:50:0"]
[:!QW#CTp "yabai -m window --resize right:50:0; yabai -m window --resize left:50:0"]
;; mod + alt + k: resize window top
[:!CTS#QWRp "/usr/local/bin/yabai -m window --resize top:0:-50; /usr/local/bin/yabai -m window --resize bottom:0:-50"]
[:!QWR#CTSp "/usr/local/bin/yabai -m window --resize top:0:-50; /usr/local/bin/yabai -m window --resize bottom:0:-50"]
[:!CTS#QWRp "yabai -m window --resize top:0:-50; yabai -m window --resize bottom:0:-50"]
[:!QWR#CTSp "yabai -m window --resize top:0:-50; yabai -m window --resize bottom:0:-50"]
;; mod + alt + j: resize window bottom
[:!CTS#QWRj "/usr/local/bin/yabai -m window --resize bottom:0:50; /usr/local/bin/yabai -m window --resize top:0:50"]
[:!QWR#CTSj "/usr/local/bin/yabai -m window --resize bottom:0:50; /usr/local/bin/yabai -m window --resize top:0:50"]
[:!CTS#QWRj "yabai -m window --resize bottom:0:50; yabai -m window --resize top:0:50"]
[:!QWR#CTSj "yabai -m window --resize bottom:0:50; yabai -m window --resize top:0:50"]
;; mod + shift + q: close focused window
[:!CTS#QWRx "/Users/leonzalion/Library/pnpm/ymsp close-focused-window"]
[:!QWR#CTSx "/Users/leonzalion/Library/pnpm/ymsp close-focused-window"]
[:!CTS#QWRx "ymsp close-focused-window"]
[:!QWR#CTSx "ymsp close-focused-window"]
;; mod + period: switch to next display
[:!CT#QWe "/usr/local/bin/yabai -m display --focus next || /usr/local/bin/yabai -m display --focus first"]
[:!QW#CTe "/usr/local/bin/yabai -m display --focus next || /usr/local/bin/yabai -m display --focus first"]
[:!CT#QWe "yabai -m display --focus next || yabai -m display --focus first"]
[:!QW#CTe "yabai -m display --focus next || yabai -m display --focus first"]
;; mod + shift + period: move window to next display
[:!CTS#QWRe "/usr/local/bin/yabai -m window --display next || /usr/local/bin/yabai -m window --display first"]
[:!QWR#CTSe "/usr/local/bin/yabai -m window --display next || /usr/local/bin/yabai -m window --display first"]
[:!CTS#QWRe "yabai -m window --display next || yabai -m window --display first"]
[:!QWR#CTSe "yabai -m window --display next || yabai -m window --display first"]
;; mod + comma: switch to previous display
[:!CT#QWw "/usr/local/bin/yabai -m display --focus prev || /usr/local/bin/yabai -m display --focus last"]
[:!QW#CTw "/usr/local/bin/yabai -m display --focus prev || /usr/local/bin/yabai -m display --focus last"]
[:!CT#QWw "yabai -m display --focus prev || yabai -m display --focus last"]
[:!QW#CTw "yabai -m display --focus prev || yabai -m display --focus last"]
;; mod + shift + comma: move window to previous display
[:!CTS#QWRw "/usr/local/bin/yabai -m window --display prev || /usr/local/bin/yabai -m window --display last"]
[:!QWR#CTSw "/usr/local/bin/yabai -m window --display prev || /usr/local/bin/yabai -m window --display last"]
[:!CTS#QWRw "yabai -m window --display prev || yabai -m window --display last"]
[:!QWR#CTSw "yabai -m window --display prev || yabai -m window --display last"]
;; mod + <number>: switch to space number <number>
[:!CT#QW9 "/usr/local/bin/yabai -m space --focus next"]
[:!QW#CT9 "/usr/local/bin/yabai -m space --focus next"]
[:!CT#QWquote "/usr/local/bin/yabai -m space --focus prev"]
[:!QW#CTquote "/usr/local/bin/yabai -m space --focus prev"]
[:!CT#QW9 "yabai -m space --focus next"]
[:!QW#CT9 "yabai -m space --focus next"]
[:!CT#QWquote "yabai -m space --focus prev"]
[:!QW#CTquote "yabai -m space --focus prev"]

;; applications

Expand Down
Loading

0 comments on commit 5c8fb88

Please sign in to comment.