From a14798aab4df554954ff3cbce4232bc5394a1e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0=C5=A5astn=C3=BD?= Date: Tue, 3 Dec 2019 22:07:43 +0100 Subject: [PATCH 1/2] Added most useful i3 keybindings --- sheets/i3 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 sheets/i3 diff --git a/sheets/i3 b/sheets/i3 new file mode 100644 index 0000000..b95feb8 --- /dev/null +++ b/sheets/i3 @@ -0,0 +1,54 @@ +# Note: most i3 keybindings use ⊞ mod key. This is `Alt` key by default, +# but is frequently swapped with Meta (windows) key. + +# Open new terminal +⊞ + Enter + +# Open application launcher +⊞ + d + +# Change where new window is opened: +# Horizontal split +⊞ + h +# Vertical split +⊞ + v + +# Movement +# (like in vim, but one key to right) + ^ + l +< j ; > + k + V + +# Switch focus around windows in workspace +⊞ + + +# Move windows around workspace +⊞ + Shift + + +# Workspaces +# i3 has by default 10 workspaces, labeled 1,2,...,9,0 +# Each opened window resides in one of the workspaces + +# Change workspace +⊞ + 0-9 + +# Send focused window to workspace +⊞ + Shift + 0-9 + +# Toggle fullscreen +⊞ + f + +# Enter resize mode (resize with movement/arrow keys, exit with Esc) +⊞ + r + +# Change container layout +# default: next to each other +⊞ + e +# stacked: all windows but one are minimized +⊞ + s +# tabbed: like browser tabs +⊞ + w +# floating window (drag with ⊞ + LeftClick): +⊞ + Shift + Space From 1b0728ca42ed9ca583e592b8fd6de29db17f7c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0=C5=A5astn=C3=BD?= Date: Tue, 3 Dec 2019 22:22:27 +0100 Subject: [PATCH 2/2] Added guide to precise new window positioning --- sheets/i3 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/sheets/i3 b/sheets/i3 index b95feb8..0b128e3 100644 --- a/sheets/i3 +++ b/sheets/i3 @@ -52,3 +52,35 @@ ⊞ + w # floating window (drag with ⊞ + LeftClick): ⊞ + Shift + Space + +# Guide: precise positioning of newly spawned windows +# +# When creating new window, currently focused window +# will be split in half and one half will be used by new window. +# You can control whether it will split horiontally or +# vertically with ⊞+v or ⊞+h. +# You can focus multiple windows at once. +# For example with this layout with two windows: ++-------+-------+ ++ . . . | . . . | ++ . . . | . . . | ++ . 1 . | . 2 . | ++ . . . | . . . | ++ . . . | . . . | ++-------+-------+ +# One can select both windows at once and split them vertically, +# so the new window will take half of whole screen. +# Select parent container (both windows 1 and 2): +⊞ + a +# Vertically spawn new terminal window: ⊞+v, ⊞+Enter +# Result: ++-------+-------+ ++ . . . | . . . | ++ . 1 . | . 2 . | ++-------+-------+ ++ . . . 3 . . . | ++ . . . . . . . | ++---------------+ +# Whenever you split window in half by spawning new window, +# both windows will be placed in an invisible container. +# One can focus parent container with ⊞+a.