.i3/config.d/20-binds

changeset 378
e13ba40f4533
child 611
f524f24b23dd
equal deleted inserted replaced
377:7190350f2ab3 378:e13ba40f4533
1 set $mod Mod4
2
3 # Use Mouse+$mod to drag floating windows to their wanted position
4 floating_modifier $mod
5
6 # start a terminal
7 bindsym $mod+Return exec urxvtc || urxvt
8
9 # kill focused window
10 bindsym $mod+Shift+q kill
11
12 # start dmenu (a program launcher)
13 #bindsym $mod+d exec dmenu_run
14
15 # There also is the (new) i3-dmenu-desktop which only displays applications
16 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
17 # installed.
18 bindsym $mod+d exec --no-startup-id ~/.i3/i3-dmenu-desktop
19
20 #bindsym $mod+d exec --no-startup-id ~/.i3/j4-dmenu-desktop --dmenu="dmenu -i -b -p ] -nf \#CCC -nb \#555"
21
22 # change focus
23 bindsym $mod+j focus left
24 bindsym $mod+k focus down
25 bindsym $mod+l focus up
26 bindsym $mod+semicolon focus right
27
28 # alternatively, you can use the cursor keys:
29 bindsym $mod+Left focus left
30 bindsym $mod+Down focus down
31 bindsym $mod+Up focus up
32 bindsym $mod+Right focus right
33
34 # move focused window
35 bindsym $mod+Shift+j move left
36 bindsym $mod+Shift+k move down
37 bindsym $mod+Shift+l move up
38 bindsym $mod+Shift+semicolon move right
39
40 # alternatively, you can use the cursor keys:
41 bindsym $mod+Shift+Left move left
42 bindsym $mod+Shift+Down move down
43 bindsym $mod+Shift+Up move up
44 bindsym $mod+Shift+Right move right
45
46 # split in horizontal orientation
47 bindsym $mod+h split h
48
49 # split in vertical orientation
50 bindsym $mod+v split v
51
52 # enter fullscreen mode for the focused container
53 bindsym $mod+f fullscreen
54
55 # change container layout (stacked, tabbed, toggle split)
56 bindsym $mod+s layout stacking
57 bindsym $mod+w layout tabbed
58 bindsym $mod+e layout toggle split
59
60 # toggle tiling / floating
61 bindsym $mod+Shift+space floating toggle
62
63 # change focus between tiling / floating windows
64 bindsym $mod+space focus mode_toggle
65
66 # focus the parent container
67 bindsym $mod+a focus parent
68
69 # focus the child container
70 #bindsym $mod+d focus child
71
72 bindsym $mod+b workspace back_and_forth
73 bindsym $mod+minus workspace prev
74 bindsym $mod+equal workspace next
75
76 # switch to workspace
77 bindsym $mod+1 workspace 1
78 bindsym $mod+2 workspace 2
79 bindsym $mod+3 workspace 3
80 bindsym $mod+4 workspace 4
81 bindsym $mod+5 workspace 5
82 bindsym $mod+6 workspace 6
83 bindsym $mod+7 workspace 7
84 bindsym $mod+8 workspace 8
85 bindsym $mod+9 workspace 9
86 bindsym $mod+0 workspace 10
87
88 # move focused container to workspace
89 bindsym $mod+Shift+1 move container to workspace 1
90 bindsym $mod+Shift+2 move container to workspace 2
91 bindsym $mod+Shift+3 move container to workspace 3
92 bindsym $mod+Shift+4 move container to workspace 4
93 bindsym $mod+Shift+5 move container to workspace 5
94 bindsym $mod+Shift+6 move container to workspace 6
95 bindsym $mod+Shift+7 move container to workspace 7
96 bindsym $mod+Shift+8 move container to workspace 8
97 bindsym $mod+Shift+9 move container to workspace 9
98 bindsym $mod+Shift+0 move container to workspace 10
99
100 # reload the configuration file
101 bindsym $mod+Shift+c reload
102
103 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
104 bindsym $mod+Shift+r restart
105
106 # exit i3 (logs you out of your X session)
107 bindsym $mod+Shift+e exec "i3-nagbar -f 'pango:DejaVu Sans 10' -t warning -m 'Do you really want to exit i3?' -b 'Yes, exit i3' 'i3-msg exit'"
108
109 # resize window (you can also use the mouse for that)
110 mode "resize" {
111 # These bindings trigger as soon as you enter the resize mode
112
113 # Pressing left will shrink the window’s width.
114 # Pressing right will grow the window’s width.
115 # Pressing up will shrink the window’s height.
116 # Pressing down will grow the window’s height.
117 bindsym j resize shrink width 10 px or 10 ppt
118 bindsym k resize grow height 10 px or 10 ppt
119 bindsym l resize shrink height 10 px or 10 ppt
120 bindsym semicolon resize grow width 10 px or 10 ppt
121
122 # same bindings, but for the arrow keys
123 bindsym Left resize shrink width 10 px or 10 ppt
124 bindsym Down resize grow height 10 px or 10 ppt
125 bindsym Up resize shrink height 10 px or 10 ppt
126 bindsym Right resize grow width 10 px or 10 ppt
127
128 # back to normal: Enter or Escape
129 bindsym Return mode "default"
130 bindsym Escape mode "default"
131 }
132
133 bindsym $mod+r mode "resize"
134

mercurial