Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

i3 vertical master & stack layout

Includes swapping functionality

Adapted from Christian Tenllado and YourArmpitStinks.

Installation

  1. Download and place the files master-stack and swapper in your ~/.config/i3 directory.

  2. Add the following lines to your ~/.config/i3/config

#############
# AUTOSTART #
#############

exec --no-startup-id $HOME/.config/i3/master-stack


############
# BINDINGS #
############

bindsym $mod+Tab exec --no-startup-id $HOME/.config/i3/swapper
  1. You may have to restart i3 or log out and log back in for the changes to take effect.

Usage

The layout consists of a master window and a stack.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
β”‚        β”‚       β”‚
β”‚ Master β”‚ Stack β”‚
β”‚        β”‚       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜

Opening a new window will set it as the master window, while consecutive windows will be automatically inserted into the stack.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”
β”‚        β”‚ Stack β”‚
β”‚ Master β”‚β”„β”„β”„β”„β”„β”„β”„β”‚
β”‚        β”‚   +   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”˜

Pressing the swapping keybind $mod+Tab will swap the focused window and the master window.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”    ┏━━━━━━━┓───────┐
β”‚       β”‚   2   β”‚    ┃       ┃   2   β”‚
β”‚   1   ┒━━━━━━━β”ͺ -> ┃   3   ┠────────
β”‚       ┃   3   ┃    ┃       ┃   1   β”‚
└───────┗━━━━━━━┛    β”—β”β”β”β”β”β”β”β”Ήβ”€β”€β”€β”€β”€β”€β”€β”˜

About

i3 implementation of the master and stack layout

Topics

Resources

Stars

4 stars

Watchers

2 watching

Forks

Contributors

Languages