Browse Source

Add i3 config file

Alois Mahdal 10 years ago
parent
commit
a3205da4d0
1 changed files with 170 additions and 0 deletions
  1. 170
    0
      dotfiles/i3/config

+ 170
- 0
dotfiles/i3/config View File

@@ -0,0 +1,170 @@
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 Mod1
13
+
14
+# Font for window titles. Will also be used by the bar unless a different font
15
+# is used in the bar {} block below.
16
+# This font is widely installed, provides lots of unicode glyphs, right-to-left
17
+# text rendering and scalability on retina/hidpi displays (thanks to pango).
18
+#font pango:DejaVu Sans Mono 11
19
+font -*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*
20
+# Before i3 v4.8, we used to recommend this one as the default:
21
+# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
22
+# The font above is very space-efficient, that is, it looks good, sharp and
23
+# clear in small sizes. However, its unicode glyph coverage is limited, the old
24
+# X core fonts rendering does not support right-to-left and this being a bitmap
25
+# font, it doesn’t scale on retina/hidpi displays.
26
+
27
+# Use Mouse+$mod to drag floating windows to their wanted position
28
+floating_modifier $mod
29
+
30
+# kill focused window
31
+bindsym $mod+Shift+q kill
32
+
33
+# start dmenu (a program launcher)
34
+# There also is the (new) i3-dmenu-desktop which only displays applications
35
+# shipping a .desktop file. It is a wrapper around dmenu, so you need that
36
+# installed.
37
+
38
+# change focus
39
+bindsym $mod+h focus left
40
+bindsym $mod+j focus down
41
+bindsym $mod+k focus up
42
+bindsym $mod+l focus right
43
+
44
+# alternatively, you can use the cursor keys:
45
+bindsym $mod+Left focus left
46
+bindsym $mod+Down focus down
47
+bindsym $mod+Up focus up
48
+bindsym $mod+Right focus right
49
+
50
+# move focused window
51
+bindsym $mod+Shift+h move left
52
+bindsym $mod+Shift+j move down
53
+bindsym $mod+Shift+k move up
54
+bindsym $mod+Shift+l move right
55
+
56
+# alternatively, you can use the cursor keys:
57
+bindsym $mod+Shift+Left move left
58
+bindsym $mod+Shift+Down move down
59
+bindsym $mod+Shift+Up move up
60
+bindsym $mod+Shift+Right move right
61
+
62
+# split in horizontal orientation
63
+bindsym $mod+g split h
64
+
65
+# split in vertical orientation
66
+bindsym $mod+v split v
67
+
68
+# enter fullscreen mode for the focused container
69
+bindsym $mod+f fullscreen
70
+
71
+# change container layout (stacked, tabbed, toggle split)
72
+bindsym $mod+s layout stacking
73
+bindsym $mod+w layout tabbed
74
+bindsym $mod+e layout toggle split
75
+
76
+# toggle tiling / floating
77
+bindsym $mod+Shift+space floating toggle
78
+
79
+# change focus between tiling / floating windows
80
+bindsym $mod+space focus mode_toggle
81
+
82
+# focus the parent container
83
+bindsym $mod+a focus parent
84
+
85
+# focus the child container
86
+#bindsym $mod+d focus child
87
+
88
+# switch to workspace
89
+bindsym $mod+1 workspace 1
90
+bindsym $mod+2 workspace 2
91
+bindsym $mod+3 workspace 3
92
+bindsym $mod+4 workspace 4
93
+bindsym $mod+5 workspace 5
94
+bindsym $mod+6 workspace 6
95
+bindsym $mod+7 workspace 7
96
+bindsym $mod+8 workspace 8
97
+bindsym $mod+9 workspace 9
98
+bindsym $mod+0 workspace 10
99
+
100
+# move focused container to workspace
101
+bindsym $mod+Shift+1 move container to workspace 1
102
+bindsym $mod+Shift+2 move container to workspace 2
103
+bindsym $mod+Shift+3 move container to workspace 3
104
+bindsym $mod+Shift+4 move container to workspace 4
105
+bindsym $mod+Shift+5 move container to workspace 5
106
+bindsym $mod+Shift+6 move container to workspace 6
107
+bindsym $mod+Shift+7 move container to workspace 7
108
+bindsym $mod+Shift+8 move container to workspace 8
109
+bindsym $mod+Shift+9 move container to workspace 9
110
+bindsym $mod+Shift+0 move container to workspace 10
111
+
112
+# reload the configuration file
113
+bindsym $mod+Shift+c reload
114
+# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
115
+bindsym $mod+Shift+r restart
116
+# exit i3 (logs you out of your X session)
117
+bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
118
+
119
+# resize window (you can also use the mouse for that)
120
+mode "resize" {
121
+        # These bindings trigger as soon as you enter the resize mode
122
+
123
+        # Pressing left will shrink the window’s width.
124
+        # Pressing right will grow the window’s width.
125
+        # Pressing up will shrink the window’s height.
126
+        # Pressing down will grow the window’s height.
127
+        bindsym j resize shrink width 10 px or 10 ppt
128
+        bindsym k resize grow height 10 px or 10 ppt
129
+        bindsym l resize shrink height 10 px or 10 ppt
130
+        bindsym semicolon resize grow width 10 px or 10 ppt
131
+
132
+        # same bindings, but for the arrow keys
133
+        bindsym Left resize shrink width 10 px or 10 ppt
134
+        bindsym Down resize grow height 10 px or 10 ppt
135
+        bindsym Up resize shrink height 10 px or 10 ppt
136
+        bindsym Right resize grow width 10 px or 10 ppt
137
+
138
+        # back to normal: Enter or Escape
139
+        bindsym Return mode "default"
140
+        bindsym Escape mode "default"
141
+}
142
+
143
+bindsym $mod+r mode "resize"
144
+
145
+# Start i3bar to display a workspace bar (plus the system information i3status
146
+# finds out, if available)
147
+bar {
148
+        status_command i3status
149
+}
150
+
151
+
152
+### MINE
153
+bindsym $mod+Return         exec "urxvt"
154
+bindsym $mod+Shift+Return   exec "urxvt -pe 'default,tabbed'"
155
+bindsym $mod+b              exec "ub"
156
+bindsym $mod+Shift+b        exec "eeini www.ini       | eedmenu --split = | xargs ub"
157
+bindsym $mod+Shift+f        exec thunar
158
+bindsym $mod+Shift+o        exec "urxvt -e mocp"
159
+
160
+bindsym $mod+m              exec "i3-dmenu-desktop --dmenu='eedmenu'"
161
+bindsym $mod+Shift+m        exec "eeini -s dmenu.item | eedmenu --split = | eeexec"
162
+bindsym $mod+p              exec "dmenu_path | eedmenu | eeexec"
163
+
164
+exec "owncloud"
165
+exec "psi"
166
+exec "orage"
167
+exec "orage -t"
168
+exec "dropbox start"
169
+exec "xchat"
170
+exec "shutter --min_at_startup"