]> git.sev.monster Git - dotfiles.git/blame_incremental - xdg/i3/config
remove msys/cygwin support, bugfixes, and cleanup
[dotfiles.git] / xdg / i3 / config
... / ...
CommitLineData
1
2# master modifier key
3set $mod Mod4
4
5### important binds ###
6# reload the configuration file
7bindsym $mod+Shift+c reload
8# restart i3 inplace
9bindsym $mod+Shift+r restart
10# exit i3
11bindsym $mod+Shift+e exec --no-startup-id i3-nagbar -t warning -m Exit? -b Yes 'i3-msg exit'
12
13### applications ###
14# x220t bezel buttons
15bindcode 198 exec --no-startup-id rotate set normal
16bindcode 204 exec --no-startup-id rotate right
17
18# terminal
19bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
20
21# dmenu
22bindsym $mod+d exec --no-startup-id $HOME/bin/dmenu_runsmart -p "%"
23
24# mpc
25bindsym XF86AudioPlay exec --no-startup-id mpc -h /var/mpd/socket play
26bindsym XF86AudioStop exec --no-startup-id mpc -h /var/mpd/socket pause
27bindsym XF86AudioPrev exec --no-startup-id mpc -h /var/mpd/socket cdprev
28bindsym XF86AudioNext exec --no-startup-id mpc -h /var/mpd/socket next
29
30
31### window management ###
32# directional keys
33set $up k
34set $down j
35set $left h
36set $right l
37# arrow keys for completeness
38set $up2 Up
39set $down2 Down
40set $left2 Left
41set $right2 Right
42
43# change focus
44bindsym $mod+$left focus left
45bindsym $mod+$down focus down
46bindsym $mod+$up focus up
47bindsym $mod+$right focus right
48bindsym $mod+$left2 focus left
49bindsym $mod+$down2 focus down
50bindsym $mod+$up2 focus up
51bindsym $mod+$right2 focus right
52# move focused window
53bindsym $mod+Shift+$left move left
54bindsym $mod+Shift+$down move down
55bindsym $mod+Shift+$up move up
56bindsym $mod+Shift+$right move right
57bindsym $mod+Shift+$left2 move left
58bindsym $mod+Shift+$down2 move down
59bindsym $mod+Shift+$up2 move up
60bindsym $mod+Shift+$right2 move right
61
62# split in horizontal orientation
63bindsym $mod+i split h
64# split in vertical orientation
65bindsym $mod+o split v
66
67# mouse+$mod to drag floating windows
68floating_modifier $mod
69
70# enter fullscreen mode for the focused container
71bindsym $mod+f fullscreen toggle
72bindsym $mod+Shift+f fullscreen toggle global
73
74# change container layout (stacked, tabbed, toggle split)
75bindsym $mod+s layout stacking
76bindsym $mod+w layout tabbed
77bindsym $mod+e layout toggle split
78
79# toggle tiling / floating
80bindsym $mod+Shift+space floating toggle
81
82# change focus between tiling / floating windows
83bindsym $mod+space focus mode_toggle
84
85# focus the parent container
86bindsym $mod+a focus parent
87
88# focus the child container
89bindsym $mod+z focus child
90
91# kill focused window
92bindsym $mod+Shift+q kill
93
94# move the currently focused window to the scratchpad
95bindsym $mod+Shift+minus move scratchpad
96
97# Show the next scratchpad window or hide the focused scratchpad window.
98# If there are multiple scratchpad windows, this command cycles through them.
99bindsym $mod+minus scratchpad show
100
101# switch to workspace
102bindsym $mod+1 workspace 1
103bindsym $mod+2 workspace 2
104bindsym $mod+3 workspace 3
105bindsym $mod+4 workspace 4
106bindsym $mod+5 workspace 5
107bindsym $mod+6 workspace 6
108bindsym $mod+7 workspace 7
109bindsym $mod+8 workspace 8
110bindsym $mod+9 workspace 9
111bindsym $mod+0 workspace 10
112# repeat workspace to go back
113workspace_auto_back_and_forth yes
114
115# move focused container to workspace
116bindsym $mod+Shift+1 move container to workspace 1
117bindsym $mod+Shift+2 move container to workspace 2
118bindsym $mod+Shift+3 move container to workspace 3
119bindsym $mod+Shift+4 move container to workspace 4
120bindsym $mod+Shift+5 move container to workspace 5
121bindsym $mod+Shift+6 move container to workspace 6
122bindsym $mod+Shift+7 move container to workspace 7
123bindsym $mod+Shift+8 move container to workspace 8
124bindsym $mod+Shift+9 move container to workspace 9
125Bindsym $mod+Shift+0 move container to workspace 10
126
127# move and resize [floating] windows
128mode "translate" {
129 bindsym $left resize shrink width 20 px
130 bindsym $down resize grow height 20 px
131 bindsym $up resize shrink height 20 px
132 bindsym $right resize grow width 20 px
133 bindsym $left2 resize shrink width 20 px
134 bindsym $down2 resize grow height 20 px
135 bindsym $up2 resize shrink height 20 px
136 bindsym $right2 resize grow width 20 px
137
138 bindsym Shift+$left move left 20 px
139 bindsym Shift+$down move down 20 px
140 bindsym Shift+$up move up 20 px
141 bindsym Shift+$right move right 20 px
142 bindsym Shift+$left2 move left 20 px
143 bindsym Shift+$down2 move down 20 px
144 bindsym Shift+$up2 move up 20 px
145 bindsym Shift+$right2 move right 20 px
146
147 # smaller movements
148 bindsym Control+$left resize shrink width 1 px or 1 ppt
149 bindsym Control+$down resize grow height 1 px or 1 ppt
150 bindsym Control+$up resize shrink height 1 px or 1 ppt
151 bindsym Control+$right resize grow width 1 px or 1 ppt
152 bindsym Control+$left2 resize shrink width 1 px or 1 ppt
153 bindsym Control+$down2 resize grow height 1 px or 1 ppt
154 bindsym Control+$up2 resize shrink height 1 px or 1 ppt
155 bindsym Control+$right2 resize grow width 1 px or 1 ppt
156
157 bindsym Control+Shift+$left move left 1 px
158 bindsym Control+Shift+$down move down 1 px
159 bindsym Control+Shift+$up move up 1 px
160 bindsym Control+Shift+$right move right 1 px
161 bindsym Control+Shift+$left2 move left 1 px
162 bindsym Control+Shift+$down2 move down 1 px
163 bindsym Control+Shift+$up2 move up 1 px
164 bindsym Control+Shift+$right2 move right 1 px
165
166 # toggle tiling / floating
167 bindsym $mod+Shift+space floating toggle
168
169 # change focus between tiling / floating windows
170 bindsym $mod+space focus mode_toggle
171
172 # focus the parent container
173 bindsym $mod+a focus parent
174
175 # focus the child container
176 bindsym $mod+z focus child
177
178 # back to normal: Enter, Escape, or original key
179 bindsym Return mode default
180 bindsym Escape mode default
181 bindsym $mod+r mode default
182}
183bindsym $mod+r mode "translate"
184
185
186### appearance ###
187# font
188font pango:monospace 7
189
190# windows
191for_window [class="Gsimplecal"] floating enable
192for_window [class="XMixer"] floating enable
193
194# borders
195hide_edge_borders smart
196new_window pixel 1
197gaps inner 6
198smart_gaps on
199
200# color definitions
201# generic
202set $bg #110800
203set $fg #93a1a1
204# focused
205set $f_bdr #cc6600
206set $f_bg #aa5500
207set $f_fg #eee8d5
208set $f_ind #4466ff
209set $f_chb #cc6600
210# inactive
211set $i_bdr #884400
212set $i_bg #221100
213set $i_fg $fg
214set $i_ind #264bd2
215set $i_chb #884400
216# urgent
217set $u_bdr #ff4444
218set $u_bg #dc322f
219set $u_fg #000000
220set $u_ind #4466ff
221set $u_chb #ff4444
222# blue
223set $b_bdr #4466ff
224set $b_bg #268bd2
225set $b_fg #fdf6e3
226set $b_ind #264db2
227set $b_chb #4466ff
228
229# deprecated in favor of tint2
230#bar {
231# position top
232# output LVDS1
233# tray_output primary
234# status_command i3status
235# separator_symbol "|"
236#
237# colors {
238# background $bg
239# statusline $fg
240# separator $b_ind
241#
242# # class border backgr. text
243# focused_workspace $f_bdr $f_bg $f_fg
244# active_workspace $i_bdr $i_bg $i_fg
245# inactive_workspace $i_bdr $i_bg $i_fg
246# urgent_workspace $u_bdr $u_bg $u_fg
247# binding_mode $b_bdr $b_bg $b_fg
248# }
249#}
250
251# apply colors
252# class border backgr. text indicator child_border
253client.focused $f_bdr $f_bg $f_fg $f_ind $f_chb
254client.focused_inactive $i_bdr $i_bg $i_fg $i_ind $i_chb
255client.unfocused $i_bdr $i_bg $i_fg $i_ind $i_chb
256client.urgent $u_bdr $u_bg $u_fg $u_ind $u_chb
257client.placeholder $b_bdr $b_bg $b_fg $b_ind $b_chb
258client.background #221100
259# keep urgent colors around longer
260force_display_urgency_hint 2000 ms
This page took 0.027446 seconds and 4 git commands to generate.