2019-09-17 00:40:20 +00:00
|
|
|
# i3 config file (v4)
|
|
|
|
#
|
|
|
|
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
|
|
|
|
|
|
|
|
set $mod Mod4
|
2020-09-23 22:19:23 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
font pango:monospace 6
|
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
set $CONFIG /home/w0ryn/.config/wryn
|
2020-09-23 22:19:23 +00:00
|
|
|
set $UTILS /home/w0ryn/.config/wryn/i3utils
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-30 17:21:59 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
set $SLACK_CLIENT_CLASS ^Slack$
|
|
|
|
set $MESSAGE_CLIENT_CLASS ^android-messages-desktop$
|
|
|
|
set $MEDIA_CLIENT_CLASS ^youtubemusic-nativefier-.*$
|
|
|
|
set $DISCORD_CLIENT_CLASS ^discord$
|
|
|
|
|
|
|
|
set $EMAIL_CLIENT_INSTANCE ^Mail$
|
|
|
|
|
|
|
|
set $GAMES_CLIENT_CLASSES ^(Steam)|(dolphin-emu)|(Visualboyadvance-m)$
|
|
|
|
set $TERMINAL_EMULATOR_CLASSES ^(kitty)$
|
|
|
|
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-23 22:19:23 +00:00
|
|
|
# for use after any command which should refresh the statusbar
|
|
|
|
set $refresh_statusbar killall -SIGUSR1 i3status
|
|
|
|
|
|
|
|
bar {
|
|
|
|
status_command i3status
|
|
|
|
}
|
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
################################################################################
|
|
|
|
## Media Keys ##################################################################
|
|
|
|
################################################################################
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
# Audio
|
2020-09-23 22:19:23 +00:00
|
|
|
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
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
# Screen brightness
|
2020-09-23 22:19:23 +00:00
|
|
|
bindsym XF86MonBrightnessUp exec --no-startup-id $UTILS backlightup
|
|
|
|
bindsym XF86MonBrightnessDown exec --no-startup-id $UTILS backlightdown
|
2020-09-18 04:12:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
## Window Management and Navigation ############################################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
bindsym $mod+q kill
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2019-09-26 16:13:45 +00:00
|
|
|
bindsym $mod+h focus left
|
|
|
|
bindsym $mod+j focus down
|
|
|
|
bindsym $mod+k focus up
|
|
|
|
bindsym $mod+l focus right
|
2020-09-18 04:12:05 +00:00
|
|
|
|
2019-09-26 16:13:45 +00:00
|
|
|
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
|
2019-09-17 00:40:20 +00:00
|
|
|
bindsym $mod+v split v
|
|
|
|
|
|
|
|
bindsym $mod+f fullscreen toggle
|
2020-09-18 04:12:05 +00:00
|
|
|
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"
|
|
|
|
|
2019-09-17 00:40:20 +00:00
|
|
|
bindsym $mod+s layout stacking
|
|
|
|
bindsym $mod+w layout tabbed
|
|
|
|
bindsym $mod+e layout toggle split
|
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
|
2020-09-30 21:57:15 +00:00
|
|
|
################################################################################
|
|
|
|
## Floating / Scratchpad Management and Navigation #############################
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
bindsym $mod+Shift+space floating toggle
|
|
|
|
bindsym $mod+d focus mode_toggle
|
|
|
|
floating_modifier $mod
|
|
|
|
|
2020-09-30 00:51:00 +00:00
|
|
|
bindsym $mod+Shift+Tab move scratchpad
|
|
|
|
bindsym $mod+Tab scratchpad show
|
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
bindsym $mod+Shift+d [class=$DISCORD_CLIENT_CLASS] scratchpad show
|
|
|
|
for_window [class=$DISCORD_CLIENT_CLASS] move scratchpad;
|
2020-09-30 17:21:59 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
bindsym $mod+Shift+m [class=$MESSAGE_CLIENT_CLASS] scratchpad show
|
|
|
|
for_window [class=$MESSAGE_CLIENT_CLASS] move scratchpad;
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
bindsym $mod+m [class=$MEDIA_CLIENT_CLASS] scratchpad show
|
|
|
|
for_window [class=$MEDIA_CLIENT_CLASS] move scratchpad;
|
2020-09-18 04:12:05 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
bindsym $mod+Shift+t [instance=$EMAIL_CLIENT_INSTANCE] scratchpad show
|
|
|
|
for_window [instance=$EMAIL_CLIENT_INSTANCE] move scratchpad;
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
bindsym $mod+Shift+s [class=$SLACK_CLIENT_CLASS] scratchpad show;
|
|
|
|
bindsym $mod+Shift+x [class=$GAMES_CLIENT_CLASSES] scratchpad show;
|
|
|
|
bindsym $mod+x [class=$TERMINAL_EMULATOR_CLASSES] scratchpad show;
|
2020-10-27 21:13:26 +00:00
|
|
|
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
################################################################################
|
|
|
|
## Workspace Management and Navigation #########################################
|
|
|
|
################################################################################
|
2019-09-17 00:40:20 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
################################################################################
|
|
|
|
## i3 Settings #################################################################
|
|
|
|
################################################################################
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-23 22:19:23 +00:00
|
|
|
bindsym $mod+Shift+e exec $UTILS logout
|
2020-09-18 04:12:05 +00:00
|
|
|
bindsym $mod+Shift+r restart
|
|
|
|
bindsym $mod+Shift+c reload
|
2019-09-17 00:40:20 +00:00
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
# i3-gaps settings
|
|
|
|
for_window [class="^.*"] border pixel 2
|
|
|
|
gaps inner 5
|
|
|
|
gaps outer 5
|
2019-11-25 22:57:20 +00:00
|
|
|
|
2020-11-11 22:49:50 +00:00
|
|
|
bindsym $mod+z gaps outer current plus 1; gaps inner current plus 1;
|
|
|
|
bindsym $mod+shift+z gaps outer current minus 1; gaps inner current minus 1;
|
|
|
|
|
2020-09-18 04:12:05 +00:00
|
|
|
# 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 ###############################################################
|
|
|
|
################################################################################
|
|
|
|
|
2020-09-22 04:52:26 +00:00
|
|
|
# exec --no-startup-id nm-applet # network-manager-applet
|
2020-09-18 04:12:05 +00:00
|
|
|
exec --no-startup-id compton # composite
|
|
|
|
|
2020-09-23 22:19:23 +00:00
|
|
|
bindsym $mod+p exec --no-startup-id $UTILS bgrandomize
|
|
|
|
bindsym $mod+Shift+minus exec --no-startup-id $UTILS lock
|