From a9c30d981e9c9deb652b70788411154b10bb9574 Mon Sep 17 00:00:00 2001 From: Przemyslaw Grondek Date: Fri, 24 May 2019 10:32:43 +0200 Subject: [PATCH] [i3] Added display mode and workspace move mode --- i3-config | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/i3-config b/i3-config index 077b1a4..4725529 100644 --- a/i3-config +++ b/i3-config @@ -184,3 +184,32 @@ bar { } bindsym Mod4+Escape exec lock + +set $displayMode "Set display mode [w]ork [l]aptop" +bindsym Mod4+x mode $displayMode + +mode $displayMode { + bindsym l exec "single-monitor" \ + mode "default" + + bindsym w exec "multi-monitor" \ + mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" +} + +set $workspaceMove "Move workspace ←/h →/l" +bindsym Mod4+grave mode $workspaceMove + +mode $workspaceMove { + bindsym Left "move workspace to output left" + bindsym Right "move workspace to output right" + + bindsym h "move workspace to output left" + bindsym l "move workspace to output right" + + bindsym Return mode "default" + bindsym Escape mode "default" + bindsym Mod4+grave mode "default" +}