Skip to content

Commit 4d04c7d

Browse files
author
Nicola Paolucci
committed
[slate] Add two new center layouts
1 parent 32ec076 commit 4d04c7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.slate

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ alias ssy screenSizeY
1515
alias 80cols 675
1616
# }}}
1717
# Position Aliases {{{
18-
alias center-normal move ${sox}+${ssx}/4;${soy} ${ssx}/2;${ssy}
19-
alias cntr-80-cols move (${sox}+${ssx}/2)-${80cols}/2;${soy} ${80cols};${ssy}
18+
alias center-normal move ${sox}+${ssx}/4;${soy} ${ssx}/2;${ssy}
19+
alias cntr-80-cols move (${sox}+${ssx}/2)-${80cols}/2;${soy} ${80cols};${ssy}
20+
alias center-half move (${sox}+${ssx}/2)-${80cols}/2;${soy} ${80cols};${ssy}/2
21+
alias cen-half-bot move (${sox}+${ssx}/2)-${80cols}/2;${soy}+${ssy}/2 ${80cols};${ssy}/2
2022
alias top-r move ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}/2
2123
alias top-r-80 move (${sox}+${ssx}/2)+${80cols}/2;${soy} (${ssx}/2)-${80cols}/2;${ssy}/2
2224
alias top-r-half move ${sox}+${ssx}/2+${ssx}/4;${soy} ${ssx}/4;${ssy}/2
@@ -59,7 +61,7 @@ bind h:alt chain ${h-left} | ${h-left-80} | ${h-left-80rev}
5961
bind h:alt;shift chain ${top-l} | ${top-l-80} | ${bot-l}
6062
bind l:alt chain ${h-right} | ${h-right-80} | ${h-right-80rev}
6163
bind l:alt;shift chain ${top-r} | ${top-r-80} | ${bot-r}
62-
bind c:alt chain ${center-normal} | ${cntr-80-cols}
64+
bind c:alt chain ${center-normal} | ${cntr-80-cols} | ${center-half} | ${cen-half-bot}
6365
bind 8:alt ${h-top}
6466
bind 9:alt ${h-bottom}
6567
bind m:shift;alt ${maximize}

0 commit comments

Comments
 (0)