From a329d11e453aa8fef8617c6d705885b4b721a55f Mon Sep 17 00:00:00 2001 From: Robert Kmiec Date: Tue, 29 Jun 2021 23:22:30 +0200 Subject: [PATCH] I3: Switch to super + alt in multiwindow mode --- .config/i3/config | 62 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 56 insertions(+), 6 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index aad6e25..dbf8490 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -11,9 +11,9 @@ set $mod Mod4 -set $main_color #fdff00 -set $secondary_color #98d1ce -set $bg_color #0c1014 +set_from_resource $main_color i3wm.color1 #fdff00 +set_from_resource $secondary_color i3wm.color0 #98d1ce +set_from_resource $bg_color i3wm.color4 #0c1014 # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. @@ -110,7 +110,7 @@ bindsym $mod+s scratchpad show # Define names for default workspaces for which we configure key bindings later on. # We use variables to avoid repeating the names in multiple places. -set $ws1 " 1:Web " +set $ws1 " 1 " set $ws2 " 2 " set $ws3 " 3 " set $ws4 " 4 " @@ -120,7 +120,37 @@ set $ws7 " 7 " set $ws8 " 8 " set $ws9 " 9 " set $ws10 " 10 " + +set $ws11 " 11 " +set $ws12 " 12 " +set $ws13 " 13 " +set $ws14 " 14 " +set $ws15 " 15 " +set $ws16 " 16 " +set $ws17 " 17 " +set $ws18 " 18 " +set $ws19 " 19 " +set $ws20 " 20 " workspace $ws1 output DP-0 +workspace $ws2 output DP-0 +workspace $ws3 output DP-0 +workspace $ws4 output DP-0 +workspace $ws5 output DP-0 +workspace $ws6 output DP-0 +workspace $ws7 output DP-0 +workspace $ws8 output DP-0 +workspace $ws9 output DP-0 +workspace $ws10 output DP-0 +workspace $ws11 output DVI-D-0 +workspace $ws12 output DVI-D-0 +workspace $ws13 output DVI-D-0 +workspace $ws14 output DVI-D-0 +workspace $ws15 output DVI-D-0 +workspace $ws16 output DVI-D-0 +workspace $ws17 output DVI-D-0 +workspace $ws18 output DVI-D-0 +workspace $ws19 output DVI-D-0 +workspace $ws20 output DVI-D-0 # switch to workspace bindsym $mod+1 workspace number $ws1 @@ -133,6 +163,16 @@ bindsym $mod+7 workspace number $ws7 bindsym $mod+8 workspace number $ws8 bindsym $mod+9 workspace number $ws9 bindsym $mod+0 workspace number $ws10 +bindsym Mod1+1 workspace number $ws11 +bindsym Mod1+2 workspace number $ws12 +bindsym Mod1+3 workspace number $ws13 +bindsym Mod1+4 workspace number $ws14 +bindsym Mod1+5 workspace number $ws15 +bindsym Mod1+6 workspace number $ws16 +bindsym Mod1+7 workspace number $ws17 +bindsym Mod1+8 workspace number $ws18 +bindsym Mod1+9 workspace number $ws19 +bindsym Mod1+0 workspace number $ws20 # move focused container to workspace bindsym $mod+Shift+1 move container to workspace number $ws1 @@ -145,6 +185,16 @@ bindsym $mod+Shift+7 move container to workspace number $ws7 bindsym $mod+Shift+8 move container to workspace number $ws8 bindsym $mod+Shift+9 move container to workspace number $ws9 bindsym $mod+Shift+0 move container to workspace number $ws10 +bindsym Mod1+Shift+1 move container to workspace number $ws11 +bindsym Mod1+Shift+2 move container to workspace number $ws12 +bindsym Mod1+Shift+3 move container to workspace number $ws13 +bindsym Mod1+Shift+4 move container to workspace number $ws14 +bindsym Mod1+Shift+5 move container to workspace number $ws15 +bindsym Mod1+Shift+6 move container to workspace number $ws16 +bindsym Mod1+Shift+7 move container to workspace number $ws17 +bindsym Mod1+Shift+8 move container to workspace number $ws18 +bindsym Mod1+Shift+9 move container to workspace number $ws19 +bindsym Mod1+Shift+0 move container to workspace number $ws20 # reload the configuration file bindsym $mod+Shift+c reload @@ -210,7 +260,7 @@ exec --no-startup-id unclutter bar { font pango:DejaVu Sans Mono, FontAwesome 12 status_command ~/.cargo/bin/i3status-rs ~/.config/i3/i3status-rs.toml - mode hide + mode dock modifier $mod tray_padding 0 tray_output primary @@ -223,7 +273,7 @@ bar { # focused_workspace $main_color $main_color $bg_color inactive_workspace $secondary_color $bg_color $secondary_color - active_workspace $main_color $bg_color $secondary_color + active_workspace $main_color $bg_color $main_color } }