update i3 and vimrc
[dotfiles.git] / .config / i3 / config
1 # This file has been auto-generated by i3-config-wizard(1).
2 # It will not be overwritten, so edit it as you like.
3 #
4 # Should you change your keyboard layout some time, delete
5 # this file and re-run i3-config-wizard(1).
6 #
7
8 # i3 config file (v4)
9 #
10 # Please see http://i3wm.org/docs/userguide.html for a complete reference!
11
12 set $mod Mod4
13
14 # lock the screen after 10 minutes
15 exec xautolock -locker \
16 'sudo -K; echo RELOADAGENT | gpg-connect-agent; i3lock -c ccff00'
17 # set a background
18 exec convert -size 1600x900 plasma:fractal -modulate 20,100,10 png:- | display -window root
19 # set the backlight
20 exec xbacklight -set 50
21 # set the network switcher
22 exec netctltray
23
24 # lock the screen
25 bindsym $mod+l exec xautolock -locknow
26
27 # put a password in the clipboard
28 bindsym $mod+p exec passmenu
29
30 # font for window titles.
31 font pango:DejaVu Sans Mono 8
32
33 # use Mouse+$mod to drag floating windows to their wanted position
34 floating_modifier $mod
35 hide_edge_borders none
36
37 # start a terminal
38 bindsym $mod+Return exec i3-sensible-terminal
39
40 # kill focused window
41 bindsym $mod+Shift+quotedbl kill
42
43 # start dmenu
44 bindsym $mod+e exec dmenu_run -i -f -fn 'xft:DejaVu Sans Mono:style=Book:pixelsize=12'
45
46 # change focus
47 bindsym $mod+h focus left
48 bindsym $mod+t focus down
49 bindsym $mod+n focus up
50 bindsym $mod+s focus right
51
52 # alternatively, you can use the cursor keys:
53 bindsym $mod+Left exec xbacklight -dec 5
54 bindsym $mod+Down exec amixer set Master 5- && kill -n 10 `pidof i3status`
55 bindsym $mod+Up exec amixer set Master 5+ && kill -n 10 `pidof i3status`
56 bindsym $mod+Right exec xbacklight -inc 5
57
58 # move focused window
59 bindsym $mod+Shift+h move left
60 bindsym $mod+Shift+t move down
61 bindsym $mod+Shift+n move up
62 bindsym $mod+Shift+s move right
63
64 # split in horizontal orientation
65 bindsym $mod+d split h
66
67 # split in vertical orientation
68 bindsym $mod+k split v
69
70 # enter fullscreen mode for the focused container
71 bindsym $mod+u fullscreen
72
73 # change container layout (stacked, tabbed, toggle split)
74 bindsym $mod+o layout stacking
75 bindsym $mod+comma layout tabbed
76 bindsym $mod+period layout toggle split
77
78 # toggle tiling / floating
79 bindsym $mod+Shift+space floating toggle
80
81 # change focus between tiling / floating windows
82 bindsym $mod+space focus mode_toggle
83
84 # focus the parent container
85 bindsym $mod+a focus parent
86
87 # focus the child container
88 #bindsym $mod+d focus child
89
90 # switch to workspace
91 bindsym $mod+1 workspace 1
92 bindsym $mod+2 workspace 2
93 bindsym $mod+3 workspace 3
94 bindsym $mod+4 workspace 4
95 bindsym $mod+5 workspace 5
96 bindsym $mod+6 workspace 6
97 bindsym $mod+7 workspace 7
98 bindsym $mod+8 workspace 8
99 bindsym $mod+9 workspace 9
100 bindsym $mod+0 workspace 10
101
102 # move focused container to workspace
103 bindsym $mod+Shift+1 move container to workspace 1
104 bindsym $mod+Shift+2 move container to workspace 2
105 bindsym $mod+Shift+3 move container to workspace 3
106 bindsym $mod+Shift+4 move container to workspace 4
107 bindsym $mod+Shift+5 move container to workspace 5
108 bindsym $mod+Shift+6 move container to workspace 6
109 bindsym $mod+Shift+7 move container to workspace 7
110 bindsym $mod+Shift+8 move container to workspace 8
111 bindsym $mod+Shift+9 move container to workspace 9
112 bindsym $mod+Shift+0 move container to workspace 10
113
114 # reload the configuration file
115 bindsym $mod+Shift+j reload
116 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
117 bindsym $mod+Shift+p restart
118 # exit i3 (logs you out of your X session)
119 bindsym $mod+Shift+period exec i3-msg exit
120
121 # resize window (you can also use the mouse for that)
122 #mode "resize" {
123 # # These bindings trigger as soon as you enter the resize mode
124 #
125 # # Pressing left will shrink the window’s width.
126 # # Pressing right will grow the window’s width.
127 # # Pressing up will shrink the window’s height.
128 # # Pressing down will grow the window’s height.
129 # bindsym h resize shrink width 10 px or 10 ppt
130 # bindsym t resize grow height 10 px or 10 ppt
131 # bindsym n resize shrink height 10 px or 10 ppt
132 # bindsym s resize grow width 10 px or 10 ppt
133 #
134 # # same bindings, but for the arrow keys
135 # bindsym Left resize shrink width 10 px or 10 ppt
136 # bindsym Down resize grow height 10 px or 10 ppt
137 # bindsym Up resize shrink height 10 px or 10 ppt
138 # bindsym Right resize grow width 10 px or 10 ppt
139 #
140 # # back to normal: Enter or Escape
141 # bindsym Return mode "default"
142 # bindsym Escape mode "default"
143 #}
144 #
145 #bindsym $mod+p mode "resize"
146
147 # Start i3bar to display a workspace bar (plus the system information i3status
148 # finds out, if available)
149 bar {
150 status_command i3status
151 mode hide
152 modifier $mod
153 font pango:DejaVu Sans Mono 14
154 }