From 757931f38a18b80d5d452ebdc02dc1991726e96f Mon Sep 17 00:00:00 2001 From: Jay Ta'ala Date: Sat, 2 Mar 2019 13:12:16 +1100 Subject: [PATCH] Added $mod+Ctrl+h,j,k,l for switching focused containers (basically selects parent container and then focus switches). Disabled dunstrc shortcuts (these interfered with $mod+Ctrl+h). --- dunst/dunstrc | 8 ++++---- i3/config | 17 +++++++---------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/dunst/dunstrc b/dunst/dunstrc index ad90846..e953339 100644 --- a/dunst/dunstrc +++ b/dunst/dunstrc @@ -164,19 +164,19 @@ # Xev might be helpful to find names for keys. # Close notification. - close = mod1+space + #close = mod1+space # Close all notifications. # close_all = ctrl+shift+space - close_all = ctrl+mod1+space + #close_all = ctrl+mod1+space # Redisplay last message(s). # On the US keyboard layout "grave" is normally above TAB and left # of "1". - history = ctrl+mod4+h + #history = ctrl+mod4+h # Context menu. - context = ctrl+mod1+c + #context = ctrl+mod1+c [urgency_low] # IMPORTANT: colors have to be defined in quotation marks. diff --git a/i3/config b/i3/config index 20d72aa..942e24a 100644 --- a/i3/config +++ b/i3/config @@ -19,7 +19,7 @@ set $txtucolor #bdbbbb set $indcolor #00ff00 # set default desktop layout (default is tiling) -workspace_layout tabbed +#workspace_layout tabbed # Configure border style for_window [class=".*"] $border_no_name @@ -40,14 +40,6 @@ font xft:URWGothic-Book 11 # Use Mouse+$mod to drag floating windows floating_modifier $mod - -bindsym $mod+F4 exec "i3-msg 'append_layout ~/.i3/layout-1.json'" -bindsym $mod+Ctrl+1 exec --no-startup-id xdotool getactivewindow set_window --role 1 windowunmap windowmap -bindsym $mod+Ctrl+2 exec --no-startup-id xdotool getactivewindow set_window --role 2 windowunmap windowmap -bindsym $mod+Ctrl+3 exec --no-startup-id xdotool getactivewindow set_window --role 3 windowunmap windowmap - - - # start a terminal bindsym $mod+Return exec terminator @@ -121,6 +113,12 @@ bindsym $mod+j focus down bindsym $mod+k focus up bindsym $mod+l focus right +# container focusing +bindsym $mod+Ctrl+h focus parent, focus left +bindsym $mod+Ctrl+j focus parent, focus down +bindsym $mod+Ctrl+k focus parent, focus up +bindsym $mod+Ctrl+l focus parent, focus right + # move focused window bindsym $mod+Shift+Left move left 100px bindsym $mod+Shift+Down move down 100px @@ -198,7 +196,6 @@ bindsym $mod+Shift+a focus child bindsym $mod+slash exec "answer=$(zenity --title=\\"i3-msg title_format\\" --text \\"Change %title for parent container\\" --entry); if [ -n \\"$answer\\" ]; then i3-msg focus parent, title_format \\" 📦 $answer\\", focus child; fi" bindsym $mod+Mod1+slash focus parent, title_format " 📦 %title", focus child - # move the currently focused window to the scratchpad bindsym $mod+Shift+minus move scratchpad -- GitLab