dotwryn/config/i3/config
2020-09-23 16:19:23 -06:00

158 lines
5.1 KiB
Plaintext

# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod4
set $CONFIG /home/w0ryn/.config/wryn
set $UTILS /home/w0ryn/.config/wryn/i3utils
font pango:monospace 6
# for use after any command which should refresh the statusbar
set $refresh_statusbar killall -SIGUSR1 i3status
bar {
status_command i3status
}
################################################################################
## Media Keys ##################################################################
################################################################################
# Audio
bindsym XF86AudioRewind exec --no-startup-id $UTILS prev
bindsym XF86AudioPrev exec --no-startup-id $UTILS prev
bindsym XF86AudioForward exec --no-startup-id $UTILS next
bindsym XF86AudioNext exec --no-startup-id $UTILS next
bindsym XF86AudioPlay exec --no-startup-id $UTILS playpause
bindsym XF86AudioRaiseVolume exec --no-startup-id $UTILS volumeraise
bindsym XF86AudioLowerVolume exec --no-startup-id $UTILS volumelower
bindsym XF86AudioMute exec --no-startup-id $UTILS mute
bindsym XF86AudioMicMute exec --no-startup-id $UTILS micmute
bindsym $mod+backslash exec --no-startup-id $UTILS micmute
# Screen brightness
bindsym XF86MonBrightnessUp exec --no-startup-id $UTILS backlightup
bindsym XF86MonBrightnessDown exec --no-startup-id $UTILS backlightdown
################################################################################
## Window Management and Navigation ############################################
################################################################################
bindsym $mod+q kill
bindsym $mod+h focus left
bindsym $mod+j focus down
bindsym $mod+k focus up
bindsym $mod+l focus right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
bindsym $mod+b split h
bindsym $mod+v split v
bindsym $mod+f fullscreen toggle
bindsym $mod+Shift+f focus parent; fullscreen; focus child
mode "resize" {
bindsym h resize grow width 10 px or 10 ppt
bindsym j resize shrink height 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink width 10 px or 10 ppt
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
bindsym $mod+r mode "resize"
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# change focus between tiling / floating windows
bindsym $mod+d focus mode_toggle
################################################################################
## Workspace Management and Navigation #########################################
################################################################################
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
################################################################################
## i3 Settings #################################################################
################################################################################
bindsym $mod+Shift+e exec $UTILS logout
bindsym $mod+Shift+r restart
bindsym $mod+Shift+c reload
# i3-gaps settings
for_window [class="^.*"] border pixel 2
gaps inner 5
gaps outer 5
# Terminal / Application Launcher
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+space exec --no-startup-id dmenu_run -fn 'DejaVu Sans Mono-25'
################################################################################
## Miscellaneous ###############################################################
################################################################################
# exec --no-startup-id nm-applet # network-manager-applet
exec --no-startup-id compton # composite
bindsym $mod+p exec --no-startup-id $UTILS bgrandomize
bindsym $mod+Shift+minus exec --no-startup-id $UTILS lock