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 https://i3wm.org/docs/userguide.html for a complete reference!
11
12set $mod Mod4
13
14# Font for window titles. Will also be used by the bar unless a different font
15# is used in the bar {} block below.
16font pango:Concourse T4 10
17
18# This font is widely installed, provides lots of unicode glyphs, right-to-left
19# text rendering and scalability on retina/hidpi displays (thanks to pango).
20#font pango:DejaVu Sans Mono 8
21
22# The combination of xss-lock, nm-applet and pactl is a popular choice, so
23# they are included here as an example. Modify as you see fit.
24
25# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
26# screen before suspend. Use loginctl lock-session to lock your screen.
27exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
28
29# NetworkManager is the most popular way to manage wireless networks on Linux,
30# and nm-applet is a desktop environment-independent system tray GUI for it.
31exec --no-startup-id nm-applet
32
33# Use pactl to adjust volume in PulseAudio.
34set $refresh_i3status killall -SIGUSR1 i3status
35bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
36bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
37bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
38bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
39
40# Use playerctl for media controls
41bindsym XF86AudioPlay exec playerctl play-pause
42bindsym XF86AudioNext exec playerctl next
43bindsym XF86AudioPrev exec playerctl previous
44
45# Screenshot with Flameshot
46bindsym Print exec flameshot gui
47
48# lock screen
49bindsym $mod+Shift+b exec betterlockscreen -l dimblur
50
51# Use Mouse+$mod to drag floating windows to their wanted position
52floating_modifier $mod
53
54# start a terminal
55bindsym $mod+Return exec st
56
57# open emacsclient
58bindsym $mod+Shift+Return exec emacsclient -c
59
60# scratchpad
61bindsym $mod+Shift+grave move scratchpad
62bindsym $mod+grave scratchpad show
63
64# kill focused window
65bindsym $mod+Shift+q kill
66
67# start rofi (a program launcher and window switcher with a *disgusting* config)
68bindsym $mod+shift+z exec "rofi -show run -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
69bindsym $mod+s exec "rofi -show ssh -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
70bindsym $mod+c exec "rofi -show calc -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
71bindsym $mod+z exec "rofi -show drun -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
72bindsym $mod+e exec "rofi -show emoji -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
73bindsym $mod+w exec "rofi -show window -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
74bindsym $mod+u exec "rofi -show unicode -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
75bindsym $mod+Shift+e exec "rofi -show kaomoji -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
76bindsym $mod+Shift+f exec "rofi -show filebrowser -modi 'drun,run,window,ssh,calc:qalc +u8,filebrowser,emoji:~/.config/rofi/emoji.sh,unicode:~/.config/rofi/unicode.sh,kaomoji:~/.config/rofi/kaomoji.sh'"
77
78# bindings for dunst
79bindsym $mod+n exec dunstctl close-all
80bindsym $mod+Shift+n exec dunstctl history-pop
81bindsym $mod+Ctrl+n exec dunstctl context
82
83# change focus
84bindsym $mod+h focus left
85bindsym $mod+j focus down
86bindsym $mod+k focus up
87bindsym $mod+l focus right
88
89# move focused window
90bindsym $mod+Shift+h move left
91bindsym $mod+Shift+j move down
92bindsym $mod+Shift+k move up
93bindsym $mod+Shift+l move right
94
95# split in horizontal orientation
96bindsym $mod+b split horizontal
97
98# split in vertical orientation
99bindsym $mod+v split v
100
101# enter fullscreen mode for the focused container
102bindsym $mod+f fullscreen toggle
103
104# change container layout (stacked, tabbed, toggle split)
105bindsym $mod+t layout tabbed
106bindsym $mod+Shift+s layout toggle split
107
108# toggle floating sticky windows
109bindsym $mod+Mod1+s sticky toggle
110
111# toggle tiling / floating
112bindsym $mod+Shift+space floating toggle
113
114# change focus between tiling / floating windows
115bindsym $mod+space focus mode_toggle
116
117# focus the parent container
118bindsym $mod+a focus parent
119
120# focus the child container
121#bindsym $mod+d focus child
122
123# Define names for default workspaces for which we configure key bindings later on.
124# We use variables to avoid repeating the names in multiple places.
125set $ws1 "1"
126set $ws2 "2"
127set $ws3 "3"
128set $ws4 "4"
129set $ws5 "5"
130set $ws6 "6"
131set $ws7 "7"
132set $ws8 "8"
133set $ws9 "9"
134set $ws10 "10"
135
136# switch to workspace
137bindsym $mod+1 workspace number $ws1
138bindsym $mod+2 workspace number $ws2
139bindsym $mod+3 workspace number $ws3
140bindsym $mod+4 workspace number $ws4
141bindsym $mod+5 workspace number $ws5
142bindsym $mod+6 workspace number $ws6
143bindsym $mod+7 workspace number $ws7
144bindsym $mod+8 workspace number $ws8
145bindsym $mod+9 workspace number $ws9
146bindsym $mod+0 workspace number $ws10
147
148# move focused container to workspace
149bindsym $mod+Shift+1 move container to workspace number $ws1
150bindsym $mod+Shift+2 move container to workspace number $ws2
151bindsym $mod+Shift+3 move container to workspace number $ws3
152bindsym $mod+Shift+4 move container to workspace number $ws4
153bindsym $mod+Shift+5 move container to workspace number $ws5
154bindsym $mod+Shift+6 move container to workspace number $ws6
155bindsym $mod+Shift+7 move container to workspace number $ws7
156bindsym $mod+Shift+8 move container to workspace number $ws8
157bindsym $mod+Shift+9 move container to workspace number $ws9
158bindsym $mod+Shift+0 move container to workspace number $ws10
159
160# reload the configuration file
161bindsym $mod+Shift+c reload
162# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
163bindsym $mod+Shift+r restart
164# exit i3 (logs you out of your X session)
165bindsym $mod+Shift+x 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'"
166
167# window settings
168default_border none
169default_floating_border none
170
171# resize window (you can also use the mouse for that)
172mode "resize" {
173 # These bindings trigger as soon as you enter the resize mode
174
175 # Pressing left will shrink the window’s width.
176 # Pressing right will grow the window’s width.
177 # Pressing up will shrink the window’s height.
178 # Pressing down will grow the window’s height.
179 bindsym h resize shrink width 10 px or 10 ppt
180 bindsym j resize grow height 10 px or 10 ppt
181 bindsym k resize shrink height 10 px or 10 ppt
182 bindsym l resize grow width 10 px or 10 ppt
183
184 # back to normal: Enter or Escape or $mod+r
185 bindsym Return mode "default"
186 bindsym Escape mode "default"
187 bindsym $mod+r mode "default"
188}
189
190bindsym $mod+r mode "resize"
191
192# custom bindings
193bindsym $mod+m exec mpdevil
194bindsym $mod+p exec pavucontrol
195
196# workspace bindings
197assign [class="Steam"] $ws4
198assign [class="TelegramDesktop"] $ws6
199assign [class="Gajim"] $ws6
200assign [class="Element"] $ws6
201assign [class="Signal"] $ws6
202assign [class=".*weechat"] $ws6
203assign [class="Hydrus Client"] $ws7
204
205# startup commands
206exec ~/.local/bin/startup-i3