2f58a6fcd1eb2068bb6b35ca0052d6ffc4dbf777
[dotfiles.git] / 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 somewhen, 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 exec xautolock -time 15 -locker 'i3lock -i <(import -window root - | convert - -blur 10x2 png:-)'
12 exec xrdb ~/.Xresources
13
14 set $mod Mod4
15
16 # font for window titles. ISO 10646 = Unicode
17 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
18
19 # Use Mouse+$mod to drag floating windows to their wanted position
20 floating_modifier $mod
21
22 # music controls
23 bindsym XF86AudioPlay exec mpc toggle >> /dev/null
24 bindsym XF86AudioStop exec mpc stop >> /dev/null
25 bindsym XF86AudioPrev exec mpc prev >> /dev/null
26 bindsym XF86AudioNext exec mpc next >> /dev/null
27
28 #bindsym Print exec scrot
29
30 # volume controls
31 bindsym XF86AudioRaiseVolume exec amixer set Master 5+ >> /dev/null
32 bindsym XF86AudioLowerVolume exec amixer set Master 5- >> /dev/null
33
34 # start a terminal
35 bindsym $mod+Return exec urxvt
36
37 # kill focused window
38 bindsym $mod+Shift+quotedbl kill
39
40 # start dmenu (a program launcher)
41 bindsym $mod+e exec dmenu_run
42 bindsym $mod+Shift+E exec convert -background black -fill white -size 1600x900 -font /usr/share/fonts/truetype/unifont/unifont.ttf label:"$(gcalcli --nc calw)" png:- | display -window root
43
44 # change focus
45 bindsym $mod+h focus left
46 bindsym $mod+t focus down
47 bindsym $mod+n focus up
48 bindsym $mod+s focus right
49
50 # move focused window
51 bindsym $mod+Shift+H move left
52 bindsym $mod+Shift+T move down
53 bindsym $mod+Shift+N move up
54 bindsym $mod+Shift+S move right
55
56 # split in horizontal orientation
57 bindsym $mod+d split h
58
59 # split in vertical orientation
60 bindsym $mod+k split v
61
62 # enter fullscreen mode for the focused container
63 bindsym $mod+u fullscreen
64
65 # change container layout (stacked, tabbed, default)
66 bindsym $mod+o layout stacking
67 bindsym $mod+comma layout tabbed
68 bindsym $mod+period layout default
69
70 # toggle tiling / floating
71 bindsym $mod+Shift+space floating toggle
72
73 # change focus between tiling / floating windows
74 bindsym $mod+space focus mode_toggle
75
76 # focus the parent container
77 bindsym $mod+a focus parent
78
79 # focus the child container
80 #bindcode $mod+d focus child
81
82 # switch to workspace
83 bindsym $mod+1 workspace 1
84 bindsym $mod+2 workspace 2
85 bindsym $mod+3 workspace 3
86 bindsym $mod+4 workspace 4
87 bindsym $mod+5 workspace 5
88 bindsym $mod+6 workspace 6
89 bindsym $mod+7 workspace 7
90 bindsym $mod+8 workspace 8
91 bindsym $mod+9 workspace 9
92 bindsym $mod+0 workspace 10
93
94 # move focused container to workspace
95 bindsym $mod+Shift+exclam move container to workspace 1
96 bindsym $mod+Shift+at move container to workspace 2
97 bindsym $mod+Shift+numbersign move container to workspace 3
98 bindsym $mod+Shift+dollar move container to workspace 4
99 bindsym $mod+Shift+percent move container to workspace 5
100 bindsym $mod+Shift+asciicircum move container to workspace 6
101 bindsym $mod+Shift+ampersand move container to workspace 7
102 bindsym $mod+Shift+asterisk move container to workspace 8
103 bindsym $mod+Shift+parenleft move container to workspace 9
104 bindsym $mod+Shift+parenright move container to workspace 10
105
106 # reload the configuration file
107 bindsym $mod+Shift+J reload
108 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
109 bindsym $mod+Shift+P restart
110 # exit i3 (logs you out of your X session)
111 bindsym $mod+Shift+greater exit
112
113 # resize window (you can also use the mouse for that)
114 mode "resize" {
115 # These bindings trigger as soon as you enter the resize mode
116
117 # Pressing left will shrink the window’s width.
118 # Pressing right will grow the window’s width.
119 # Pressing up will shrink the window’s height.
120 # Pressing down will grow the window’s height.
121 bindsym h resize shrink width 10 px or 10 ppt
122 bindsym t resize grow height 10 px or 10 ppt
123 bindsym n resize shrink height 10 px or 10 ppt
124 bindsym s resize grow width 10 px or 10 ppt
125
126 # back to normal: Enter or Escape
127 bindsym Return mode "default"
128 bindsym Escape mode "default"
129 }
130
131 bindsym $mod+p mode "resize"
132
133 # Start i3bar to display a workspace bar (plus the system information i3status
134 # finds out, if available)
135 bar {
136 status_command /home/mart/.i3/bar
137 position bottom
138 Font -gnu-unifont-*-*-*-16-160-*-*-*-*-*-*
139 }