dotfiles/.config/i3/config

137 lines
3.3 KiB
Text
Raw Normal View History

2018-02-05 00:16:42 -06:00
#
# ~/.config/i3/config
# author: adam gausmann
#
2017-10-20 17:05:04 +00:00
2018-02-05 00:16:42 -06:00
# meta keys
set $mod Mod4
floating_modifier $mod
2018-02-05 00:16:42 -06:00
# appearance
# ==========
2018-02-05 00:16:42 -06:00
# fonts
font pango:DejaVu Sans Mono 8
2018-02-05 00:16:42 -06:00
# gaps
for_window [class="^.*"] border pixel 0
gaps inner 12
2018-02-05 00:16:42 -06:00
# behavior
# ========
# session cleanup
exec --no-startup-id shopt -s huponexit
2018-02-05 00:16:42 -06:00
# navigation
# ==========
2018-02-05 00:16:42 -06:00
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+colon focus right
2018-02-05 00:16:42 -06:00
bindsym $mod+space focus mode_toggle
bindsym $mod+a focus parent
2018-01-11 15:51:44 -06:00
bindsym $mod+Shift+a focus child
bindsym $mod+1 workspace number 1
bindsym $mod+2 workspace number 2
bindsym $mod+3 workspace number 3
bindsym $mod+4 workspace number 4
bindsym $mod+5 workspace number 5
bindsym $mod+6 workspace number 6
bindsym $mod+7 workspace number 7
bindsym $mod+8 workspace number 8
bindsym $mod+9 workspace number 9
bindsym $mod+0 workspace number 10
2018-02-05 00:16:42 -06:00
focus_follows_mouse no
# layout
# ======
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+colon move right
bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+space floating toggle
bindsym $mod+Shift+1 move container to workspace number 1
bindsym $mod+Shift+2 move container to workspace number 2
bindsym $mod+Shift+3 move container to workspace number 3
bindsym $mod+Shift+4 move container to workspace number 4
bindsym $mod+Shift+5 move container to workspace number 5
bindsym $mod+Shift+6 move container to workspace number 6
bindsym $mod+Shift+7 move container to workspace number 7
bindsym $mod+Shift+8 move container to workspace number 8
bindsym $mod+Shift+9 move container to workspace number 9
bindsym $mod+Shift+0 move container to workspace number 10
2018-02-05 00:16:42 -06:00
bindsym $mod+b split h
bindsym $mod+v split v
2018-02-05 00:16:42 -06:00
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
mode "resize" {
2018-02-05 00:16:42 -06:00
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym colon resize grow width 10 px or 10 ppt
bindsym Shift+j resize shrink width 100 px or 100 ppt
bindsym Shift+k resize grow height 100 px or 100 ppt
bindsym Shift+l resize shrink height 100 px or 100 ppt
bindsym Shift+colon resize grow width 100 px or 100 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
2018-02-05 00:16:42 -06:00
# management
# ==========
2018-02-05 00:16:42 -06:00
bindsym $mod+Shift+q kill
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r restart
bindsym $mod+Shift+e exit
2017-10-15 19:39:06 -05:00
2018-02-05 00:16:42 -06:00
# programs
# ========
bindsym $mod+Return exec --no-startup-id ~/.local/bin/i3/terminal
bindsym $mod+d exec --no-startup-id ~/.local/bin/i3/menu
bindsym $mod+Shift+p exec --no-startup-id ~/.local/bin/i3/lock
bindsym XF86AudioMute exec --no-startup-id ~/.local/bin/i3/vol_mute
bindsym XF86AudioLowerVolume exec --no-startup-id ~/.local/bin/i3/vol_down
bindsym XF86AudioRaiseVolume exec --no-startup-id ~/.local/bin/i3/vol_up
2018-01-11 15:51:44 -06:00
2018-02-05 00:16:42 -06:00
# autostart
# =========
# host-specific init
exec --no-startup-id ~/.local/bin/i3/autostart
# automount
2018-01-11 15:51:44 -06:00
exec --no-startup-id udiskie &
2018-02-05 00:16:42 -06:00
# bar and notifications
2018-01-11 15:51:44 -06:00
exec --no-startup-id twmnd &
2018-02-05 00:16:42 -06:00
# appearance
exec --no-startup-id compton -b
exec --no-startup-id nitrogen --restore &