i3 fixes
[dotfiles.git] / x / .config / 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 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 Mod4
13 set $font DejaVu Sans Mono
14 set $fontsize 12
15
16 exec display -window root /tmp/bg.png &\
17 dunst &\
18 urxvtd -q -o -f &\
19 mpd &\
20 xrdb -merge ~/.Xresources &\
21 steam &\
22 setxkbmap -layout dvorak,ru -variant ,phonetic_dvorak -option compose:ralt,grp:menu_toggle
23
24 # Toggle playback
25 bindsym Pause exec mpc toggle
26 # Printscreen current window
27 bindsym Shift+Print exec ~/.local/bin/scr window
28 # Printscreen
29 bindsym Print exec ~/.local/bin/scr
30 # put a password in the clipboard
31 bindsym $mod+y exec /usr/share/doc/pass/examples/dmenu/passmenu
32 bindsym $mod+Shift+y exec /usr/share/doc/pass/examples/dmenu/passmenu --type
33 bindsym $mod+b exec ~/.local/bin/network
34 bindsym $mod+Shift+b exec ~/.local/bin/wifi
35
36 # font for window titles.
37 font pango:$font 8
38
39 # use Mouse+$mod to drag floating windows to their wanted position
40 floating_modifier $mod
41 hide_edge_borders none
42
43 # start a terminal
44 bindsym $mod+Return exec i3-sensible-terminal
45
46 # kill focused window
47 bindsym $mod+Shift+quotedbl kill
48
49 # start dmenu
50 bindsym $mod+e exec dmenu_run -i -f -fn 'xft:$font:pixelsize=$fontsize'
51
52 # change focus
53 bindsym $mod+h focus left
54 bindsym $mod+t focus down
55 bindsym $mod+n focus up
56 bindsym $mod+s focus right
57
58 # alternatively, you can use the cursor keys:
59 bindsym XF86MonBrightnessUp exec xbacklight -inc 10
60 bindsym XF86MonBrightnessDown exec xbacklight -dec 10
61 bindsym XF86AudioMute exec amixer -c 1 set Master toggle
62 bindsym XF86AudioLowerVolume exec amixer -c 1 set Master 5%-
63 bindsym XF86AudioRaiseVolume exec amixer -c 1 set Master 5%+
64
65 # move focused window
66 bindsym $mod+Shift+h move left
67 bindsym $mod+Shift+t move down
68 bindsym $mod+Shift+n move up
69 bindsym $mod+Shift+s move right
70
71 # split in horizontal orientation
72 bindsym $mod+d split h
73
74 # split in vertical orientation
75 bindsym $mod+k split v
76
77 # enter fullscreen mode for the focused container
78 bindsym $mod+u fullscreen
79
80 # change container layout (stacked, tabbed, toggle split)
81 bindsym $mod+o layout stacking
82 bindsym $mod+comma layout tabbed
83 bindsym $mod+period layout toggle split
84
85 # toggle tiling / floating
86 bindsym $mod+Shift+space floating toggle
87
88 # change focus between tiling / floating windows
89 bindsym $mod+space focus mode_toggle
90
91 # focus the parent container
92 bindsym $mod+a focus parent
93
94 # focus the child container
95 #bindsym $mod+d focus child
96
97 # switch to workspace
98 bindsym $mod+1 workspace 1
99 bindsym $mod+2 workspace 2
100 bindsym $mod+3 workspace 3
101 bindsym $mod+4 workspace 4
102 bindsym $mod+5 workspace 5
103 bindsym $mod+6 workspace 6
104 bindsym $mod+7 workspace 7
105 bindsym $mod+8 workspace 8
106 bindsym $mod+9 workspace 9
107 bindsym $mod+0 workspace 10
108
109 # move focused container to workspace
110 bindsym $mod+Shift+1 move container to workspace 1
111 bindsym $mod+Shift+2 move container to workspace 2
112 bindsym $mod+Shift+3 move container to workspace 3
113 bindsym $mod+Shift+4 move container to workspace 4
114 bindsym $mod+Shift+5 move container to workspace 5
115 bindsym $mod+Shift+6 move container to workspace 6
116 bindsym $mod+Shift+7 move container to workspace 7
117 bindsym $mod+Shift+8 move container to workspace 8
118 bindsym $mod+Shift+9 move container to workspace 9
119 bindsym $mod+Shift+0 move container to workspace 10
120
121 # reload the configuration file
122 bindsym $mod+Shift+j reload
123 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
124 bindsym $mod+Shift+p restart
125 # exit i3 (logs you out of your X session)
126 bindsym $mod+Shift+period exec i3-msg exit
127
128 # resize window (you can also use the mouse for that)
129 mode "resize" {
130 # These bindings trigger as soon as you enter the resize mode
131 bindsym h resize shrink width 5 px or 5 ppt
132 bindsym t resize grow height 5 px or 5 ppt
133 bindsym n resize shrink height 5 px or 5 ppt
134 bindsym s resize grow width 5 px or 5 ppt
135
136 # back to normal: Enter or Escape
137 bindsym Return mode "default"
138 bindsym Escape mode "default"
139 }
140
141 bindsym $mod+p mode "resize"
142
143 # Start i3bar to display a workspace bar (plus the system information i3status
144 # finds out, if available)
145 bar {
146 status_command i3status
147 modifier $mod
148 font pango:$font $fontsize
149 }