···11+# This file has been auto-generated by i3-config-wizard(1).
22+# It will not be overwritten, so edit it as you like.
33+#
44+# Should you change your keyboard layout some time, delete
55+# this file and re-run i3-config-wizard(1).
66+#
77+88+# i3 config file (v4)
99+#
1010+# Please see https://i3wm.org/docs/userguide.html for a complete reference!
1111+1212+set $mod Mod4
1313+1414+# Font for window titles. Will also be used by the bar unless a different font
1515+# is used in the bar {} block below.
1616+font pango:monospace 8
1717+1818+# This font is widely installed, provides lots of unicode glyphs, right-to-left
1919+# text rendering and scalability on retina/hidpi displays (thanks to pango).
2020+#font pango:DejaVu Sans Mono 8
2121+2222+# The combination of xss-lock, nm-applet and pactl is a popular choice, so
2323+# they are included here as an example. Modify as you see fit.
2424+2525+# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
2626+# screen before suspend. Use loginctl lock-session to lock your screen.
2727+exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
2828+2929+# NetworkManager is the most popular way to manage wireless networks on Linux,
3030+# and nm-applet is a desktop environment-independent system tray GUI for it.
3131+# exec --no-startup-id nm-applet
3232+3333+# Use pactl to adjust volume in PulseAudio.
3434+set $refresh_i3status killall -SIGUSR1 i3status
3535+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
3636+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
3737+bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
3838+bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
3939+4040+# Use Mouse+$mod to drag floating windows to their wanted position
4141+floating_modifier $mod
4242+4343+# start a terminal
4444+bindsym $mod+Return exec alacritty
4545+4646+# kill focused window
4747+bindsym $mod+Shift+q kill
4848+4949+# start dmenu (a program launcher)
5050+bindsym $mod+d exec --no-startup-id dmenu_run
5151+# A more modern dmenu replacement is rofi:
5252+# bindcode $mod+40 exec rofi -modi drun,run -show drun
5353+# There also is i3-dmenu-desktop which only displays applications shipping a
5454+# .desktop file. It is a wrapper around dmenu, so you need that installed.
5555+# bindsym $mod+d exec --no-startup-id
5656+5757+# change focus
5858+bindsym $mod+h focus left
5959+bindsym $mod+j focus down
6060+bindsym $mod+k focus up
6161+bindsym $mod+l focus right
6262+6363+# alternatively, you can use the cursor keys:
6464+bindsym $mod+Left focus left
6565+bindsym $mod+Down focus down
6666+bindsym $mod+Up focus up
6767+bindsym $mod+Right focus right
6868+6969+# move focused window
7070+bindsym $mod+Shift+j move left
7171+bindsym $mod+Shift+k move down
7272+bindsym $mod+Shift+l move up
7373+bindsym $mod+Shift+semicolon move right
7474+7575+# alternatively, you can use the cursor keys:
7676+bindsym $mod+Shift+Left move left
7777+bindsym $mod+Shift+Down move down
7878+bindsym $mod+Shift+Up move up
7979+bindsym $mod+Shift+Right move right
8080+8181+# split in horizontal orientation
8282+bindsym $mod+b split h
8383+8484+# split in vertical orientation
8585+bindsym $mod+v split v
8686+8787+# enter fullscreen mode for the focused container
8888+bindsym $mod+f fullscreen toggle
8989+9090+# change container layout (stacked, tabbed, toggle split)
9191+bindsym $mod+s layout stacking
9292+bindsym $mod+w layout tabbed
9393+bindsym $mod+e layout toggle split
9494+9595+# toggle tiling / floating
9696+bindsym $mod+Shift+space floating toggle
9797+9898+# change focus between tiling / floating windows
9999+bindsym $mod+space focus mode_toggle
100100+101101+# focus the parent container
102102+bindsym $mod+a focus parent
103103+104104+# focus the child container
105105+#bindsym $mod+d focus child
106106+107107+# Define names for default workspaces for which we configure key bindings later on.
108108+# We use variables to avoid repeating the names in multiple places.
109109+set $ws1 "1"
110110+set $ws2 "2"
111111+set $ws3 "3"
112112+set $ws4 "4"
113113+set $ws5 "5"
114114+set $ws6 "6"
115115+set $ws7 "7"
116116+set $ws8 "8"
117117+set $ws9 "9"
118118+set $ws10 "10"
119119+120120+# switch to workspace
121121+bindsym $mod+1 workspace number $ws1
122122+bindsym $mod+2 workspace number $ws2
123123+bindsym $mod+3 workspace number $ws3
124124+bindsym $mod+4 workspace number $ws4
125125+bindsym $mod+5 workspace number $ws5
126126+bindsym $mod+6 workspace number $ws6
127127+bindsym $mod+7 workspace number $ws7
128128+bindsym $mod+8 workspace number $ws8
129129+bindsym $mod+9 workspace number $ws9
130130+bindsym $mod+0 workspace number $ws10
131131+132132+# move focused container to workspace
133133+bindsym $mod+Shift+1 move container to workspace number $ws1
134134+bindsym $mod+Shift+2 move container to workspace number $ws2
135135+bindsym $mod+Shift+3 move container to workspace number $ws3
136136+bindsym $mod+Shift+4 move container to workspace number $ws4
137137+bindsym $mod+Shift+5 move container to workspace number $ws5
138138+bindsym $mod+Shift+6 move container to workspace number $ws6
139139+bindsym $mod+Shift+7 move container to workspace number $ws7
140140+bindsym $mod+Shift+8 move container to workspace number $ws8
141141+bindsym $mod+Shift+9 move container to workspace number $ws9
142142+bindsym $mod+Shift+0 move container to workspace number $ws10
143143+144144+# reload the configuration file
145145+bindsym $mod+Shift+c reload
146146+# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
147147+bindsym $mod+Shift+r restart
148148+# exit i3 (logs you out of your X session)
149149+bindsym $mod+Shift+e 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'"
150150+151151+# resize window (you can also use the mouse for that)
152152+mode "resize" {
153153+ # These bindings trigger as soon as you enter the resize mode
154154+155155+ # Pressing left will shrink the window’s width.
156156+ # Pressing right will grow the window’s width.
157157+ # Pressing up will shrink the window’s height.
158158+ # Pressing down will grow the window’s height.
159159+ bindsym j resize shrink width 10 px or 10 ppt
160160+ bindsym k resize grow height 10 px or 10 ppt
161161+ bindsym l resize shrink height 10 px or 10 ppt
162162+ bindsym semicolon resize grow width 10 px or 10 ppt
163163+164164+ # same bindings, but for the arrow keys
165165+ bindsym Left resize shrink width 10 px or 10 ppt
166166+ bindsym Down resize grow height 10 px or 10 ppt
167167+ bindsym Up resize shrink height 10 px or 10 ppt
168168+ bindsym Right resize grow width 10 px or 10 ppt
169169+170170+ # back to normal: Enter or Escape or $mod+r
171171+ bindsym Return mode "default"
172172+ bindsym Escape mode "default"
173173+ bindsym $mod+r mode "default"
174174+}
175175+176176+bindsym $mod+r mode "resize"
177177+178178+# Start i3bar to display a workspace bar (plus the system information i3status
179179+# finds out, if available)
180180+bar {
181181+ status_command statusbar
182182+ position top
183183+}