Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tiling windows #162

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "hhtwm"]
path = hhtwm-upstream
url = https://github.com/szymonkaliski/hhtwm
16 changes: 15 additions & 1 deletion config.example.fnl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(require-macros :lib.macros)
(require-macros :lib.advice.macros)
(local windows (require :windows))
(local tiling (require :tiling))
(local emacs (require :emacs))
(local slack (require :slack))
(local vim (require :vim))
Expand Down Expand Up @@ -164,6 +165,16 @@
:action "windows:resize-inc-right"
:repeatable true}])

(local window-swaps
[{:key :h
:action "tiling:swap-window-left"}
{:key :j
:action "tiling:swap-window-above"}
{:key :k
:action "tiling:swap-window-below"}
{:key :l
:action "tiling:swap-window-right"}])

(local window-resize
[{:mods [:shift]
:key "hjkl"
Expand Down Expand Up @@ -217,7 +228,10 @@
window-increments
window-resize
window-move-screens
[{:key :m
[{:key :s
:title "Swap"
:items window-swaps}
{:key :m
:title "Maximize"
:action "windows:maximize-window-frame"}
{:key :c
Expand Down
1 change: 1 addition & 0 deletions core.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ Returns nil. This function causes side-effects.
(local modules [:lib.hyper
:vim
:windows
:tiling
:apps
:lib.bind
:lib.modal
Expand Down
1 change: 1 addition & 0 deletions hhtwm
1 change: 1 addition & 0 deletions hhtwm-upstream
Submodule hhtwm-upstream added at 032267
Loading