Big updates, ie khal+vdirsyncer
[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 exec xautolock -locker 'i3lock -c ccff00; systemctl suspend'
15 exec convert -size 1600x900 plasma:fractal -modulate 20,100,10 png:- | display -window root
16 exec xbacklight -set 50
17 exec netctltray
18
19 # Font for window titles. Will also be used by the bar unless a different font
20 # is used in the bar {} block below.
21 # This font is widely installed, provides lots of unicode glyphs, right-to-left
22 # text rendering and scalability on retina/hidpi displays (thanks to pango).
23 font pango:DejaVu Sans Mono 8
24 # Before i3 v4.8, we used to recommend this one as the default:
25 # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
26 # The font above is very space-efficient, that is, it looks good, sharp and
27 # clear in small sizes. However, its unicode glyph coverage is limited, the old
28 # X core fonts rendering does not support right-to-left and this being a bitmap
29 # font, it doesn’t scale on retina/hidpi displays.
30
31 # Use Mouse+$mod to drag floating windows to their wanted position
32 floating_modifier $mod
33 hide_edge_borders none
34
35 # start a terminal
36 bindsym $mod+Return exec i3-sensible-terminal
37
38 # lock the screen
39 bindsym $mod+l exec xautolock -locknow
40
41 # kill focused window
42 bindsym $mod+Shift+quotedbl kill
43
44 # start dmenu (a program launcher)
45 bindsym $mod+e exec dmenu_run
46 # There also is the (new) i3-dmenu-desktop which only displays applications
47 # shipping a .desktop file. It is a wrapper around dmenu, so you need that
48 # installed.
49 # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
50
51 # change focus
52 bindsym $mod+h focus left
53 bindsym $mod+t focus down
54 bindsym $mod+n focus up
55 bindsym $mod+s focus right
56
57 # alternatively, you can use the cursor keys:
58 bindsym $mod+Left exec xbacklight -dec 5
59 bindsym $mod+Down exec amixer set Master 5- && kill -n 10 `pidof i3status`
60 bindsym $mod+Up exec amixer set Master 5+ && kill -n 10 `pidof i3status`
61 bindsym $mod+Right exec xbacklight -inc 5
62
63 # move focused window
64 bindsym $mod+Shift+h move left
65 bindsym $mod+Shift+t move down
66 bindsym $mod+Shift+n move up
67 bindsym $mod+Shift+s move right
68
69 # alternatively, you can use the cursor keys:
70 bindsym $mod+Shift+Left move left
71 bindsym $mod+Shift+Down move down
72 bindsym $mod+Shift+Up move up
73 bindsym $mod+Shift+Right move right
74
75 # split in horizontal orientation
76 bindsym $mod+d split h
77
78 # split in vertical orientation
79 bindsym $mod+k split v
80
81 # enter fullscreen mode for the focused container
82 bindsym $mod+u fullscreen
83
84 # change container layout (stacked, tabbed, toggle split)
85 bindsym $mod+o layout stacking
86 bindsym $mod+comma layout tabbed
87 bindsym $mod+period layout toggle split
88
89 # toggle tiling / floating
90 bindsym $mod+Shift+space floating toggle
91
92 # change focus between tiling / floating windows
93 bindsym $mod+space focus mode_toggle
94
95 # focus the parent container
96 bindsym $mod+a focus parent
97
98 # focus the child container
99 #bindsym $mod+d focus child
100
101 # switch to workspace
102 bindsym $mod+1 workspace 1
103 bindsym $mod+2 workspace 2
104 bindsym $mod+3 workspace 3
105 bindsym $mod+4 workspace 4
106 bindsym $mod+5 workspace 5
107 bindsym $mod+6 workspace 6
108 bindsym $mod+7 workspace 7
109 bindsym $mod+8 workspace 8
110 bindsym $mod+9 workspace 9
111 bindsym $mod+0 workspace 10
112
113 # move focused container to workspace
114 bindsym $mod+Shift+1 move container to workspace 1
115 bindsym $mod+Shift+2 move container to workspace 2
116 bindsym $mod+Shift+3 move container to workspace 3
117 bindsym $mod+Shift+4 move container to workspace 4
118 bindsym $mod+Shift+5 move container to workspace 5
119 bindsym $mod+Shift+6 move container to workspace 6
120 bindsym $mod+Shift+7 move container to workspace 7
121 bindsym $mod+Shift+8 move container to workspace 8
122 bindsym $mod+Shift+9 move container to workspace 9
123 bindsym $mod+Shift+0 move container to workspace 10
124
125 # reload the configuration file
126 bindsym $mod+Shift+j reload
127 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
128 bindsym $mod+Shift+p restart
129 # exit i3 (logs you out of your X session)
130 bindsym $mod+Shift+period exec i3-msg exit
131
132 # resize window (you can also use the mouse for that)
133 mode "resize" {
134 # These bindings trigger as soon as you enter the resize mode
135
136 # Pressing left will shrink the window’s width.
137 # Pressing right will grow the window’s width.
138 # Pressing up will shrink the window’s height.
139 # Pressing down will grow the window’s height.
140 bindsym h resize shrink width 10 px or 10 ppt
141 bindsym t resize grow height 10 px or 10 ppt
142 bindsym n resize shrink height 10 px or 10 ppt
143 bindsym s resize grow width 10 px or 10 ppt
144
145 # same bindings, but for the arrow keys
146 bindsym Left resize shrink width 10 px or 10 ppt
147 bindsym Down resize grow height 10 px or 10 ppt
148 bindsym Up resize shrink height 10 px or 10 ppt
149 bindsym Right resize grow width 10 px or 10 ppt
150
151 # back to normal: Enter or Escape
152 bindsym Return mode "default"
153 bindsym Escape mode "default"
154 }
155
156 bindsym $mod+p mode "resize"
157
158 # Start i3bar to display a workspace bar (plus the system information i3status
159 # finds out, if available)
160 bar {
161 status_command i3status
162 mode hide
163 modifier $mod
164 font pango:DejaVu Sans Mono 14
165 }