From 890115310f13877b8896c8afb9d12bcfe1daaa05 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 3 Jun 2018 00:39:15 +0200 Subject: [PATCH] update to recent package config --- .config/i3/config | 77 ++++++++++++++++++++++++++--------------------- 1 file changed, 43 insertions(+), 34 deletions(-) diff --git a/.config/i3/config b/.config/i3/config index a9608fc..f1221f4 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -1,13 +1,13 @@ # This file has been auto-generated by i3-config-wizard(1). # It will not be overwritten, so edit it as you like. # -# Should you change your keyboard layout somewhen, delete +# Should you change your keyboard layout some time, delete # this file and re-run i3-config-wizard(1). # -# + # i3 config file (v4) # -# Please see http://i3wm.org/docs/userguide.html for a complete reference! +# Please see https://i3wm.org/docs/userguide.html for a complete reference! set $mod Mod4 @@ -36,7 +36,7 @@ bindsym $mod+Return exec i3-sensible-terminal bindsym $mod+Shift+Return exec em # kill focused window -bindsym $mod+Shift+Q kill +bindsym $mod+Shift+q kill # start dmenu (a program launcher) bindsym $mod+d exec dmenu_run @@ -63,12 +63,12 @@ bindsym $mod+h split h bindsym $mod+v split v # enter fullscreen mode for the focused container -bindsym $mod+f fullscreen +bindsym $mod+f fullscreen toggle -# change container layout (stacked, tabbed, default) +# change container layout (stacked, tabbed, toggle split) bindsym $mod+s layout stacking bindsym $mod+w layout tabbed -bindsym $mod+e layout default +bindsym $mod+e layout toggle split # toggle tiling / floating bindsym $mod+Shift+space floating toggle @@ -82,29 +82,42 @@ bindsym $mod+a focus parent # focus the child container bindsym $mod+q focus child +# 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" +set $ws2 "2" +set $ws3 "3" +set $ws4 "4" +set $ws5 "5" +set $ws6 "6" +set $ws7 "7" +set $ws8 "8" +set $ws9 "9" +set $ws10 "10" + # switch to workspace -bindsym $mod+1 workspace 1 -bindsym $mod+2 workspace 2 -bindsym $mod+3 workspace 3 -bindsym $mod+4 workspace 4 -bindsym $mod+5 workspace 5 -bindsym $mod+6 workspace 6 -bindsym $mod+7 workspace 7 -bindsym $mod+8 workspace 8 -bindsym $mod+9 workspace 9 -bindsym $mod+0 workspace 10 +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 +bindsym $mod+6 workspace $ws6 +bindsym $mod+7 workspace $ws7 +bindsym $mod+8 workspace $ws8 +bindsym $mod+9 workspace $ws9 +bindsym $mod+0 workspace $ws10 # move focused container to workspace -bindsym $mod+Shift+1 move container to workspace 1 -bindsym $mod+Shift+2 move container to workspace 2 -bindsym $mod+Shift+3 move container to workspace 3 -bindsym $mod+Shift+4 move container to workspace 4 -bindsym $mod+Shift+5 move container to workspace 5 -bindsym $mod+Shift+6 move container to workspace 6 -bindsym $mod+Shift+7 move container to workspace 7 -bindsym $mod+Shift+8 move container to workspace 8 -bindsym $mod+Shift+9 move container to workspace 9 -bindsym $mod+Shift+0 move container to workspace 10 +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +bindsym $mod+Shift+6 move container to workspace $ws6 +bindsym $mod+Shift+7 move container to workspace $ws7 +bindsym $mod+Shift+8 move container to workspace $ws8 +bindsym $mod+Shift+9 move container to workspace $ws9 +bindsym $mod+Shift+0 move container to workspace $ws10 # reload the configuration file bindsym $mod+Shift+c reload @@ -113,7 +126,7 @@ bindsym $mod+Shift+c reload bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exit +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" # resize window (you can also use the mouse for that) mode "resize" { @@ -127,7 +140,9 @@ mode "resize" { # back to normal: Enter or Escape bindsym Return mode "default" bindsym Escape mode "default" + bindsym $mod+r mode "default" } + bindsym $mod+r mode "resize" # colors & style @@ -153,9 +168,3 @@ bar { #client.orientation #ff0000 } } - -# exec ssh-agent -# exec gpg-agent -# exec xset -b -# exec xrandr --output VGA-2 --auto --right-of VGA-1 -# exec feh --bg-scale ~/bg.jpg