From e2d83d7f197c1f920cbd95ac8fab2adb05466741 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Mon, 5 Sep 2022 15:06:19 +0200 Subject: [PATCH] tweak i3 config for better control of screen and tabbed windows --- .config/i3/config | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.config/i3/config b/.config/i3/config index 9a0f11c..bd9c430 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -10,6 +10,7 @@ # Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 +set $mod2 Mod1 # Default to tab layout workspace_layout tabbed @@ -75,13 +76,16 @@ bindsym $mod+d exec " dmenu_run -c -l 20 -sb '#B00520' -shb '#600000' -shf '#F0F #bindsym $mod+m focus right # alternatively, you can use the cursor keys: +focus_wrapping workspace bindsym $mod+Left focus left bindsym $mod+Down focus down bindsym $mod+Up focus up bindsym $mod+Right focus right bindsym $mod+Tab focus right +bindsym --whole-window button8 focus right bindsym $mod+twosuperior focus left +bindsym --whole-window button9 focus left # move focused window #bindsym $mod+Shift+j move left @@ -134,6 +138,9 @@ set $ws8 "8" set $ws9 "9" set $ws10 "10" +set $mt1 "eDP-1-1" +set $mt2 "HDMI-0" + # switch to workspace bindsym $mod+ampersand workspace number $ws1 bindsym $mod+eacute workspace number $ws2 @@ -160,6 +167,8 @@ bindsym $mod+Shift+agrave move container to workspace number $ws10 # move workspace between screens bindsym $mod+p move workspace to output right +bindsym $mod2+Shift+ampersand move workspace to output $mt1 +bindsym $mod2+Shift+eacute move workspace to output $mt2 # reload the configuration file bindsym $mod+Shift+c reload