https://github.com/AladW/arch-i3/blob/master/.i3/config
Let's go over a few of the more obscure sections.
Code: Select all
font pango:DejaVu Sans, FontAwesome 10.5
Code: Select all
# focus the child container
bindsym $mod+d focus child
Code: Select all
# Workspace variables
set $WS1 1 Web
set $WS2 2 Mail
set $WS3 3 Code
set $WS4 4
set $WS5 5
set $WS6 6
set $WS7 7
set $WS8 8
set $WS9 9 Stuff
set $WS0 0
Code: Select all
mode "focused" {
# focus keybindings
bindsym i [class="^Firefox$"] focus
bindsym m [class="^Sylpheed$"] focus
bindsym c [class="^Hexchat$"] focus
# keybindings for marking and jumping to clients
bindsym a exec i3-input -F 'mark %s' -P 'Mark name: '
bindsym g exec i3-input -F '[con_mark=%s] focus' -P 'Go to mark: '
# Assign marks to keys 1-5
bindsym Shift+1 mark mark1
bindsym Shift+2 mark mark2
bindsym Shift+3 mark mark3
bindsym Shift+4 mark mark4
bindsym Shift+5 mark mark5
# Jump to clients marked 1-5
bindsym 1 [con_mark="mark1"] focus
bindsym 2 [con_mark="mark2"] focus
bindsym 3 [con_mark="mark3"] focus
bindsym 4 [con_mark="mark4"] focus
bindsym 5 [con_mark="mark5"] focus
# Exit to the default mode
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+g mode "focused"
Code: Select all
for_window [window_role="pop-up"] floating enable, move absolute center
for_window [title="Preferences$"] floating enable
Code: Select all
bindsym --release Print exec --no-startup-id scrot '%Y-%m-%d--%wx$h_scrot.png' -e 'mv $f ~/shots/'
bindsym --release Shift+Print exec --no-startup-id scrot '%Y-%m-%d--%wx$h_scrot.png' -s -e 'mv $f ~/shots/'
Code: Select all
# Return to previous workspace
workspace_auto_back_and_forth yes
bindsym $mod+z workspace back_and_forth
bindsym $mod+Shift+z move container to workspace back_and_forth; workspace back_and_forth