1 {% set host = grains['host'] %}
5 set $black_super #555555
11 set $green_super #9dc54b
14 set $yellow_super #d1ca89
17 set $blue_super #7accda
20 set $magenta_super #b392ef
23 set $cyan_super #c8f0f0
26 set $white_super #ffffff
28 client.focused $black $yellow_super $black $black $black
29 client.focused_inactive $black $black_super $white $black $black
33 # Font for window titles. Will also be used by the bar unless a different font
34 # is used in the bar {} block below.
35 font pango:monospace 10
37 # This font is widely installed, provides lots of unicode glyphs, right-to-left
38 # text rendering and scalability on retina/hidpi displays (thanks to pango).
39 #font pango:DejaVu Sans Mono 8
41 # The combination of xss-lock, nm-applet and pactl is a popular choice, so
42 # they are included here as an example. Modify as you see fit.
44 exec xset dpms 300 600 0
45 # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
46 # screen before suspend. Use loginctl lock-session to lock your screen.
47 exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock -i ~/Pictures/lockscreen_full_blurred_1.png --nofork
49 # NetworkManager is the most popular way to manage wireless networks on Linux,
50 # and nm-applet is a desktop environment-independent system tray GUI for it.
51 exec --no-startup-id nm-applet
53 bindsym $mod+Shift+l exec systemctl suspend
55 # Use pactl to adjust volume in PulseAudio.
56 set $refresh_i3status killall -SIGUSR1 i3status
57 bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
58 bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
59 bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
60 bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
62 # Use Mouse+$mod to drag floating windows to their wanted position
63 floating_modifier $mod
66 bindsym $mod+Return exec termite
69 bindsym $mod+Shift+q kill
71 # start dmenu (a program launcher)
72 bindsym $mod+s exec "rofi -modi drun,run -show drun"
73 # A more modern dmenu replacement is rofi:
74 # bindcode $mod+40 exec rofi -modi drun,run -show drun
75 # There also is i3-dmenu-desktop which only displays applications shipping a
76 # .desktop file. It is a wrapper around dmenu, so you need that installed.
79 bindsym $mod+n focus left
80 bindsym $mod+e focus down
81 bindsym $mod+i focus up
82 bindsym $mod+o focus right
84 # alternatively, you can use the cursor keys:
85 bindsym $mod+Left focus left
86 bindsym $mod+Down focus down
87 bindsym $mod+Up focus up
88 bindsym $mod+Right focus right
91 bindsym $mod+Shift+n move left
92 bindsym $mod+Shift+e move down
93 bindsym $mod+Shift+i move up
94 bindsym $mod+Shift+o move right
96 # alternatively, you can use the cursor keys:
97 bindsym $mod+Shift+Left move left
98 bindsym $mod+Shift+Down move down
99 bindsym $mod+Shift+Up move up
100 bindsym $mod+Shift+Right move right
102 # split in horizontal orientation
103 bindsym $mod+h split h
105 # split in vertical orientation
106 bindsym $mod+v split v
108 # enter fullscreen mode for the focused container
109 bindsym $mod+t fullscreen toggle
111 # change container layout (stacked, tabbed, toggle split)
112 bindsym $mod+r layout stacking
113 bindsym $mod+w layout tabbed
114 bindsym $mod+f layout toggle split
116 # toggle tiling / floating
117 bindsym $mod+Shift+space floating toggle
119 # change focus between tiling / floating windows
120 bindsym $mod+space focus mode_toggle
122 # focus the parent container
123 bindsym $mod+a focus parent
125 # focus the child container
126 #bindsym $mod+d focus child
128 # Define names for default workspaces for which we configure key bindings later on.
129 # We use variables to avoid repeating the names in multiple places.
144 # switch to workspace
145 bindsym $mod+1 workspace number $ws1
146 bindsym $mod+2 workspace number $ws2
147 bindsym $mod+3 workspace number $ws3
148 bindsym $mod+4 workspace number $ws4
149 bindsym $mod+5 workspace number $ws5
150 bindsym $mod+6 workspace number $ws6
151 bindsym $mod+7 workspace number $ws7
152 bindsym $mod+8 workspace number $ws8
153 bindsym $mod+9 workspace number $ws9
154 bindsym $mod+0 workspace number $ws10
155 bindsym $mod+m workspace $music
156 bindsym $mod+z workspace $chat
158 # move focused container to workspace
159 bindsym $mod+Shift+1 move container to workspace number $ws1
160 bindsym $mod+Shift+2 move container to workspace number $ws2
161 bindsym $mod+Shift+3 move container to workspace number $ws3
162 bindsym $mod+Shift+4 move container to workspace number $ws4
163 bindsym $mod+Shift+5 move container to workspace number $ws5
164 bindsym $mod+Shift+6 move container to workspace number $ws6
165 bindsym $mod+Shift+7 move container to workspace number $ws7
166 bindsym $mod+Shift+8 move container to workspace number $ws8
167 bindsym $mod+Shift+9 move container to workspace number $ws9
168 bindsym $mod+Shift+0 move container to workspace number $ws10
169 bindsym $mod+Shift+m move container to workspace $music
170 bindsym $mod+Shift+z move container to workspace $chat
172 # reload the configuration file
173 bindsym $mod+Shift+c reload
174 # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
175 bindsym $mod+Shift+p restart
176 # exit i3 (logs you out of your X session)
177 bindsym $mod+Shift+f 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'"
179 # resize window (you can also use the mouse for that)
181 # These bindings trigger as soon as you enter the resize mode
183 # Pressing left will shrink the window’s width.
184 # Pressing right will grow the window’s width.
185 # Pressing up will shrink the window’s height.
186 # Pressing down will grow the window’s height.
187 bindsym n resize shrink width 10 px or 10 ppt
188 bindsym e resize grow height 10 px or 10 ppt
189 bindsym i resize shrink height 10 px or 10 ppt
190 bindsym o resize grow width 10 px or 10 ppt
192 # same bindings, but for the arrow keys
193 bindsym Left resize shrink width 10 px or 10 ppt
194 bindsym Down resize grow height 10 px or 10 ppt
195 bindsym Up resize shrink height 10 px or 10 ppt
196 bindsym Right resize grow width 10 px or 10 ppt
198 # back to normal: Enter or Escape or $mod+r
199 bindsym Return mode "default"
200 bindsym Escape mode "default"
201 bindsym $mod+p mode "default"
204 bindsym $mod+p mode "resize"
206 # Slight gaps around windows
209 {% if host == 'barium' %}
214 font pango:Liberation Mono 12
216 background $black_super
217 focused_background $black
218 focused_workspace $black_super $yellow_super $black
219 active_workspace $black_super $blue_super $black
220 inactive_workspace $black_super $black_super $white_super
221 urgent_workspace $black $red_super $white
228 status_command ~/.local/bin/conky-i3bar
231 font pango:Liberation Mono 12
233 background $black_super
234 focused_background $black
235 focused_workspace $black_super $yellow_super $black
236 active_workspace $black_super $blue_super $black
237 inactive_workspace $black_super $black_super $white_super
238 urgent_workspace $black $red_super $white
245 status_command ~/.local/bin/conky-i3bar
248 font pango:Liberation Mono 12
250 background $black_super
251 focused_background $black
252 focused_workspace $black_super $yellow_super $black
253 active_workspace $black_super $blue_super $black
254 inactive_workspace $black_super $black_super $white_super
255 urgent_workspace $black $red_super $white
260 focus_on_window_activation urgent
261 no_focus [class="(!?.*pinentry.*)"]
263 workspace 2 output HDMI-A-1
264 workspace 4 output HDMI-A-1
265 workspace 1 output DP-1
266 workspace 3 output DP-1
268 workspace $music output DP-1
269 workspace $chat output DP-1
271 assign [class="music"] workspace $music
272 for_window [class="music"] move workspace number $music
273 assign [class="qutebrowser"] workspace number $ws1
274 for_window [class="qutebrowser"] move workspace number $ws1
275 assign [class="zoom"] workspace $chat
276 for_window [class="zoom"] move workspace $chat
280 {% elif host == 'dubnium' %}
285 font pango:Liberation Mono 12
287 background $black_super
288 focused_background $black
289 focused_workspace $black_super $yellow_super $black
290 active_workspace $black_super $blue_super $black
291 inactive_workspace $black_super $black_super $white_super
292 urgent_workspace $black $red_super $white
299 status_command ~/.local/bin/conky-i3bar
302 font pango:Liberation Mono 12
304 background $black_super
305 focused_background $black
306 focused_workspace $black_super $yellow_super $black
307 active_workspace $black_super $blue_super $black
308 inactive_workspace $black_super $black_super $white_super
309 urgent_workspace $black $red_super $white
314 workspace 1 output DVI-D-1
315 workspace 2 output DP-1
317 {% elif host == 'rhenium' %}
320 status_command ~/.local/bin/conky-i3bar
323 font pango:Liberation Mono 12
325 background $black_super
326 focused_background $black
327 focused_workspace $black_super $yellow_super $black
328 active_workspace $black_super $blue_super $black
329 inactive_workspace $black_super $black_super $white_super
330 urgent_workspace $black $red_super $white
337 exec picom -i 0.95 -D 4