4d180adc9288f208509b635ece5031f048d55b13
[dotfiles.git] / .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
14 # lock the screen after 10 minutes
15 exec xautolock -locker 'i3lock -c ccff00; systemctl suspend'
16 # set a background
17 exec convert -size 1600x900 plasma:fractal -modulate 20,100,10 png:- | display -window root
18 # set the backlight
19 exec xbacklight -set 50
20 # set the network switcher
21 exec netctltray
22
23 # Custom keybindings
24 bindsym $mod+l exec xautolock -locknow
25 bindsym $mod+p exec passmenu
26
27 # Font for window titles.
28 font pango:DejaVu Sans Mono 8
29
30 # Use Mouse+$mod to drag floating windows to their wanted position
31 floating_modifier $mod
32 hide_edge_borders none
33
34 # start a terminal
35 bindsym $mod+Return exec i3-sensible-terminal
36
37 # kill focused window
38 bindsym $mod+Shift+quotedbl kill
39
40 # start dmenu (a program launcher)
41 bindsym $mod+e exec dmenu_run -i -f -fn 'xft:DejaVu Sans Mono:style=Book:pixelsize=12'
42
43 # change focus
44 bindsym $mod+h focus left
45 bindsym $mod+t focus down
46 bindsym $mod+n focus up
47 bindsym $mod+s focus right
48
49 # alternatively, you can use the cursor keys:
50 bindsym $mod+Left exec xbacklight -dec 5
51 bindsym $mod+Down exec amixer set Master 5- && kill -n 10 `pidof i3status`
52 bindsym $mod+Up exec amixer set Master 5+ && kill -n 10 `pidof i3status`
53 bindsym $mod+Right exec xbacklight -inc 5
54
55 # move focused window
56 bindsym $mod+Shift+h move left
57 bindsym $mod+Shift+t move down
58 bindsym $mod+Shift+n move up
59 bindsym $mod+Shift+s move right
60
61 # alternatively, you can use the cursor keys:
62 bindsym $mod+Shift+Left move left
63 bindsym $mod+Shift+Down move down
64 bindsym $mod+Shift+Up move up
65 bindsym $mod+Shift+Right move right
66
67 # split in horizontal orientation
68 bindsym $mod+d split h
69
70 # split in vertical orientation
71 bindsym $mod+k split v
72
73 # enter fullscreen mode for the focused container
74 bindsym $mod+u fullscreen
75
76 # change container layout (stacked, tabbed, toggle split)
77 bindsym $mod+o layout stacking
78 bindsym $mod+comma layout tabbed
79 bindsym $mod+period layout toggle split
80
81 # toggle tiling / floating
82 bindsym $mod+Shift+space floating toggle
83
84 # change focus between tiling / floating windows
85 bindsym $mod+space focus mode_toggle
86
87 # focus the parent container
88 bindsym $mod+a focus parent
89
90 # focus the child container
91 #bindsym $mod+d focus child
92
93 # switch to workspace
94 bindsym $mod+1 workspace 1
95 bindsym $mod+2 workspace 2
96 bindsym $mod+3 workspace 3
97 bindsym $mod+4 workspace 4
98 bindsym $mod+5 workspace 5
99 bindsym $mod+6 workspace 6
100 bindsym $mod+7 workspace 7
101 bindsym $mod+8 workspace 8
102 bindsym $mod+9 workspace 9
103 bindsym $mod+0 workspace 10
104
105 # move focused container to workspace
106 bindsym $mod+Shift+1 move container to workspace 1
107 bindsym $mod+Shift+2 move container to workspace 2
108 bindsym $mod+Shift+3 move container to workspace 3
109 bindsym $mod+Shift+4 move container to workspace 4
110 bindsym $mod+Shift+5 move container to workspace 5
111 bindsym $mod+Shift+6 move container to workspace 6
112 bindsym $mod+Shift+7 move container to workspace 7
113 bindsym $mod+Shift+8 move container to workspace 8
114 bindsym $mod+Shift+9 move container to workspace 9
115 bindsym $mod+Shift+0 move container to workspace 10
116
117 # reload the configuration file
118 bindsym $mod+Shift+j reload
119 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
120 bindsym $mod+Shift+p restart
121 # exit i3 (logs you out of your X session)
122 bindsym $mod+Shift+period exec i3-msg exit
123
124 # resize window (you can also use the mouse for that)
125 #mode "resize" {
126 # # These bindings trigger as soon as you enter the resize mode
127 #
128 # # Pressing left will shrink the window’s width.
129 # # Pressing right will grow the window’s width.
130 # # Pressing up will shrink the window’s height.
131 # # Pressing down will grow the window’s height.
132 # bindsym h resize shrink width 10 px or 10 ppt
133 # bindsym t resize grow height 10 px or 10 ppt
134 # bindsym n resize shrink height 10 px or 10 ppt
135 # bindsym s resize grow width 10 px or 10 ppt
136 #
137 # # same bindings, but for the arrow keys
138 # bindsym Left resize shrink width 10 px or 10 ppt
139 # bindsym Down resize grow height 10 px or 10 ppt
140 # bindsym Up resize shrink height 10 px or 10 ppt
141 # bindsym Right resize grow width 10 px or 10 ppt
142 #
143 # # back to normal: Enter or Escape
144 # bindsym Return mode "default"
145 # bindsym Escape mode "default"
146 #}
147 #
148 #bindsym $mod+p mode "resize"
149
150 # Start i3bar to display a workspace bar (plus the system information i3status
151 # finds out, if available)
152 bar {
153 status_command i3status
154 mode hide
155 modifier $mod
156 font pango:DejaVu Sans Mono 14
157 }