updated for multimonitor setup with bar and screen
[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 setxkbmap dvorak
12 exec xrdb ~/.Xresources
13 exec skype
14 exec ~/.i3/bg
15 exec numlockx on
16 exec urxvtd -q -o -f
17 exec ~/.i3/screen.sh
18
19
20 set $mod Mod4
21
22 #for_window [instance="skype"] floating enable
23
24 # font for window titles. ISO 10646 = Unicode
25 font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
26
27 # Use Mouse+$mod to drag floating windows to their wanted position
28 floating_modifier $mod
29
30 # start a terminal
31 bindsym $mod+Return exec urxvtc
32
33 # kill focused window
34 bindsym $mod+Shift+quotedbl kill
35
36 # start dmenu (a program launcher)
37 bindsym $mod+e exec dmenu_run
38
39 # change focus
40 bindsym $mod+h focus left
41 bindsym $mod+t focus down
42 bindsym $mod+n focus up
43 bindsym $mod+s focus right
44
45 # move focused window
46 bindsym $mod+Shift+H move left
47 bindsym $mod+Shift+T move down
48 bindsym $mod+Shift+N move up
49 bindsym $mod+Shift+S move right
50
51 # split in horizontal orientation
52 bindsym $mod+d split h
53
54 # split in vertical orientation
55 bindsym $mod+k split v
56
57 # enter fullscreen mode for the focused container
58 bindsym $mod+u fullscreen
59
60 # change container layout (stacked, tabbed, default)
61 bindsym $mod+o layout stacking
62 bindsym $mod+comma layout tabbed
63 bindsym $mod+period layout default
64
65 # toggle tiling / floating
66 bindsym $mod+Shift+space floating toggle
67
68 # change focus between tiling / floating windows
69 bindsym $mod+space focus mode_toggle
70
71 # focus the parent container
72 bindsym $mod+a focus parent
73
74 # focus the child container
75 #bindsym $mod+d focus child
76
77 # switch to workspace
78 bindsym $mod+1 workspace 1
79 bindsym $mod+2 workspace 2
80 bindsym $mod+3 workspace 3
81 bindsym $mod+4 workspace 4
82 bindsym $mod+5 workspace 5
83 bindsym $mod+6 workspace 6
84 bindsym $mod+7 workspace 7
85 bindsym $mod+8 workspace 8
86 bindsym $mod+9 workspace 9
87 bindsym $mod+0 workspace 10
88
89 # move focused container to workspace
90 bindsym $mod+Shift+exclam move container to workspace 1
91 bindsym $mod+Shift+at move container to workspace 2
92 bindsym $mod+Shift+numbersign move container to workspace 3
93 bindsym $mod+Shift+dollar move container to workspace 4
94 bindsym $mod+Shift+percent move container to workspace 5
95 bindsym $mod+Shift+asciicircum move container to workspace 6
96 bindsym $mod+Shift+ampersand move container to workspace 7
97 bindsym $mod+Shift+asterisk move container to workspace 8
98 bindsym $mod+Shift+parenleft move container to workspace 9
99 bindsym $mod+Shift+parenright move container to workspace 10
100
101 # reload the configuration file
102 bindsym $mod+Shift+J reload
103 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
104 bindsym $mod+Shift+P restart
105 # exit i3 (logs you out of your X session)
106 bindsym $mod+Shift+greater exit
107
108 # resize window (you can also use the mouse for that)
109 mode "resize" {
110 # These bindings trigger as soon as you enter the resize mode
111
112 # Pressing left will shrink the window’s width.
113 # Pressing right will grow the window’s width.
114 # Pressing up will shrink the window’s height.
115 # Pressing down will grow the window’s height.
116 bindsym h resize shrink width 10 px or 10 ppt
117 bindsym t resize grow height 10 px or 10 ppt
118 bindsym n resize shrink height 10 px or 10 ppt
119 bindsym s resize grow width 10 px or 10 ppt
120
121 # back to normal: Enter or Escape
122 bindsym Return mode "default"
123 bindsym Escape mode "default"
124 }
125
126 bindsym $mod+p mode "resize"
127
128 # Start i3bar to display a workspace bar (plus the system information i3status
129 # finds out, if available)
130 bar {
131 status_command /home/marlub/.i3/bar
132 position bottom
133 Font -gnu-unifont-*-*-*-16-160-*-*-*-*-*-*
134 tray_output primary
135 }