]> git.sev.monster Git - dotfiles.git/blame - xdg/i3/config
vimrc: colorcolumn made dark, syntax changes
[dotfiles.git] / xdg / i3 / config
CommitLineData
189288f7 1# i3 config file (v4)
2# Please see http://i3wm.org/docs/userguide.html for a complete reference!
3
4# Font for window titles. Will also be used by the bar unless a different font
5# is used in the bar {} block below.
6
7font pango:Dina, DejaVu Sans Mono, monospace 7
8
9# This font is widely installed, provides lots of unicode glyphs, right-to-left
10# text rendering and scalability on retina/hidpi displays (thanks to pango).
11#font pango:DejaVu Sans Mono 8
12
13# Before i3 v4.8, we used to recommend this one as the default:
14# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
15# The font above is very space-efficient, that is, it looks good, sharp and
16# clear in small sizes. However, its unicode glyph coverage is limited, the old
17# X core fonts rendering does not support right-to-left and this being a bitmap
18# font, it doesn’t scale on retina/hidpi displays.
19
20# Modifier key
21set $mod Mod4
22
23# use these keys for focus, movement, and resize directions
24set $up k
25set $down j
26set $left h
27set $right l
28# and arrow keys
29set $up2 Up
30set $down2 Down
31set $left2 Left
32set $right2 Right
33
34# use Mouse+$mod to drag floating windows to their wanted position
35floating_modifier $mod
36
37# start a terminal
38bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
39
40# kill focused window
41bindsym $mod+Shift+q kill
42
43# start dmenu
44bindsym $mod+d exec --no-startup-id $HOME/bin/dmenu_runsmart -p "%"
45
46# change focus
47bindsym $mod+$left focus left
48bindsym $mod+$down focus down
49bindsym $mod+$up focus up
50bindsym $mod+$right focus right
51bindsym $mod+$left2 focus left
52bindsym $mod+$down2 focus down
53bindsym $mod+$up2 focus up
54bindsym $mod+$right2 focus right
55
56# move focused window
57bindsym $mod+Shift+$left move left
58bindsym $mod+Shift+$down move down
59bindsym $mod+Shift+$up move up
60bindsym $mod+Shift+$right move right
61bindsym $mod+Shift+$left2 move left
62bindsym $mod+Shift+$down2 move down
63bindsym $mod+Shift+$up2 move up
64bindsym $mod+Shift+$right2 move right
65
66# split in horizontal orientation
67bindsym $mod+i split h
68
69# split in vertical orientation
70bindsym $mod+o split v
71
72# enter fullscreen mode for the focused container
73bindsym $mod+f fullscreen toggle
74bindsym $mod+Shift+f fullscreen toggle global
75
76# change container layout (stacked, tabbed, toggle split)
77bindsym $mod+s layout stacking
78bindsym $mod+w layout tabbed
79bindsym $mod+e layout toggle split
80
81# toggle tiling / floating
82bindsym $mod+Shift+space floating toggle
83
84# change focus between tiling / floating windows
85bindsym $mod+space focus mode_toggle
86
87# focus the parent container
88bindsym $mod+a focus parent
89
90# focus the child container
91bindsym $mod+z focus child
92
93# move the currently focused window to the scratchpad
94bindsym $mod+Shift+minus move scratchpad
95
96# Show the next scratchpad window or hide the focused scratchpad window.
97# If there are multiple scratchpad windows, this command cycles through them.
98bindsym $mod+minus scratchpad show
99
100# switch to workspace
101bindsym $mod+1 workspace 1
102bindsym $mod+2 workspace 2
103bindsym $mod+3 workspace 3
104bindsym $mod+4 workspace 4
105bindsym $mod+5 workspace 5
106bindsym $mod+6 workspace 6
107bindsym $mod+7 workspace 7
108bindsym $mod+8 workspace 8
109bindsym $mod+9 workspace 9
110bindsym $mod+0 workspace 10
111
112# move focused container to workspace
113bindsym $mod+Shift+1 move container to workspace 1
114bindsym $mod+Shift+2 move container to workspace 2
115bindsym $mod+Shift+3 move container to workspace 3
116bindsym $mod+Shift+4 move container to workspace 4
117bindsym $mod+Shift+5 move container to workspace 5
118bindsym $mod+Shift+6 move container to workspace 6
119bindsym $mod+Shift+7 move container to workspace 7
120bindsym $mod+Shift+8 move container to workspace 8
121bindsym $mod+Shift+9 move container to workspace 9
122Bindsym $mod+Shift+0 move container to workspace 10
123
189288f7 124# reload the configuration file
125bindsym $mod+Shift+c reload
126# restart i3 inplace
127bindsym $mod+Shift+r restart
128# exit i3
129bindsym $mod+Shift+e exec --no-startup-id i3-nagbar -t warning -m Exit? -b Yes 'i3-msg exit'
130
131# x220t bezel buttons
132bindcode 198 exec --no-startup-id rotate set normal
133bindcode 204 exec --no-startup-id rotate right
134
189288f7 135# move and resize [floating] windows
136mode "translate" {
9fddba79 137 bindsym $left resize shrink width 20 px
138 bindsym $down resize grow height 20 px
139 bindsym $up resize shrink height 20 px
140 bindsym $right resize grow width 20 px
189288f7 141 bindsym $left2 resize shrink width 20 px
142 bindsym $down2 resize grow height 20 px
143 bindsym $up2 resize shrink height 20 px
144 bindsym $right2 resize grow width 20 px
145
9fddba79 146 bindsym Shift+$left move left 20 px
147 bindsym Shift+$down move down 20 px
148 bindsym Shift+$up move up 20 px
149 bindsym Shift+$right move right 20 px
189288f7 150 bindsym Shift+$left2 move left 20 px
151 bindsym Shift+$down2 move down 20 px
152 bindsym Shift+$up2 move up 20 px
153 bindsym Shift+$right2 move right 20 px
154
155 # smaller movements
9fddba79 156 bindsym Control+$left resize shrink width 1 px or 1 ppt
157 bindsym Control+$down resize grow height 1 px or 1 ppt
158 bindsym Control+$up resize shrink height 1 px or 1 ppt
159 bindsym Control+$right resize grow width 1 px or 1 ppt
189288f7 160 bindsym Control+$left2 resize shrink width 1 px or 1 ppt
161 bindsym Control+$down2 resize grow height 1 px or 1 ppt
162 bindsym Control+$up2 resize shrink height 1 px or 1 ppt
163 bindsym Control+$right2 resize grow width 1 px or 1 ppt
164
9fddba79 165 bindsym Control+Shift+$left move left 1 px
166 bindsym Control+Shift+$down move down 1 px
167 bindsym Control+Shift+$up move up 1 px
168 bindsym Control+Shift+$right move right 1 px
189288f7 169 bindsym Control+Shift+$left2 move left 1 px
170 bindsym Control+Shift+$down2 move down 1 px
171 bindsym Control+Shift+$up2 move up 1 px
172 bindsym Control+Shift+$right2 move right 1 px
173
174 # toggle tiling / floating
175 bindsym $mod+Shift+space floating toggle
176
177 # change focus between tiling / floating windows
178 bindsym $mod+space focus mode_toggle
179
180 # focus the parent container
181 bindsym $mod+a focus parent
182
183 # focus the child container
184 bindsym $mod+z focus child
185
186 # back to normal: Enter, Escape, or original key
9fddba79 187 bindsym Return mode default
188 bindsym Escape mode default
189288f7 189 bindsym $mod+r mode default
190}
191bindsym $mod+r mode "translate"
192
8a7af819 193# windows
194for_window [class="Gsimplecal"] floating enable
195for_window [class="XMixer"] floating enable
196
189288f7 197# borders
198hide_edge_borders smart
189288f7 199new_window pixel 1
200gaps inner 6
201smart_gaps on
189288f7 202
203# misc
204workspace_auto_back_and_forth yes
205force_display_urgency_hint 2000 ms
206
207# color definitions
208# class border backgr. text indicator child_border
209set $focused #cc6600 #aa5500 #eee8d5 #4466ff #cc6600
210set $inactive #884400 #221100 #93a1a1 #264bd2 #884400
211set $urgent #ff4444 #dc322f #000000 #4466ff #ff4444
9fddba79 212set $blue #4466ff #268bd2 #fdf6e3 #264db2 #4466ff
213
214#bar {
215# position top
216# tray_output primary
217# status_command i3status
218# separator_symbol "|"
219#
220# colors {
221# background #110800
222# statusline #93a1a1
223# separator #268bd2
224#
225# # class border backgr. text
226# focused_workspace $focused
227# active_workspace $inactive
228# inactive_workspace $inactive
229# urgent_workspace $urgent
230# binding_mode $blue
231# }
232#}
189288f7 233
234# colors
235# class border backgr. text indicator child_border
236client.focused $focused
237client.focused_inactive $inactive
238client.unfocused $inactive
239client.urgent $urgent
240client.placeholder $blue
241
242client.background #221100
This page took 0.067447 seconds and 4 git commands to generate.