Created
September 30, 2018 12:13
-
-
Save skystar-p/ccfec5b24daa9bafa6390bb501f17e78 to your computer and use it in GitHub Desktop.
My i3 config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set mod key as super (windows) key | |
set $mod Mod4 | |
# font for window titles. | |
font pango:monospace 8 | |
# use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec xfce4-terminal | |
# kill focused window | |
bindsym $mod+q kill | |
# start dmenu (a program launcher) | |
# bindsym $mod+d exec dmenu_run | |
# For use with xfce4 whisker popup menu in Mint XFCE: | |
# bindsym $mod+Shift+d exec dmenu_run | |
# bindsym $mod+d exec --no-startup-id xfce4-popup-whiskermenu | |
# There also is the (new) i3-dmenu-desktop which only displays applications | |
# shipping a .desktop file. It is a wrapper around dmenu, so you need that | |
# installed. | |
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | |
# do not change focus on mouse move | |
focus_follows_mouse no | |
# change focus. same as vim cursor move | |
bindsym $mod+h focus left | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+l focus right | |
# move between workspaces | |
bindsym $mod+Left workspace prev | |
bindsym $mod+Right workspace next | |
# move focused window. same as vim cursor move | |
bindsym $mod+Shift+h move left | |
bindsym $mod+Shift+j move down | |
bindsym $mod+Shift+k move up | |
bindsym $mod+Shift+l move right | |
# split orientation | |
bindsym $mod+semicolon splitv | |
bindsym $mod+v splith | |
# enter fullscreen mode for the focused container | |
bindsym $mod+f fullscreen toggle | |
# 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 | |
# change focus between tiling / floating windows | |
bindsym $mod+space focus mode_toggle | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# switch to specific workspace | |
bindsym $mod+1 workspace 1 | |
bindsym $mod+2 workspace 2 | |
bindsym $mod+3 workspace 3 | |
bindsym $mod+4 workspace 4 | |
bindsym $mod+5 workspace 5 | |
bindsym $mod+6 workspace 6 | |
bindsym $mod+7 workspace 7 | |
bindsym $mod+8 workspace 8 | |
bindsym $mod+9 workspace 9 | |
bindsym $mod+0 workspace 10 | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace 1 | |
bindsym $mod+Shift+2 move container to workspace 2 | |
bindsym $mod+Shift+3 move container to workspace 3 | |
bindsym $mod+Shift+4 move container to workspace 4 | |
bindsym $mod+Shift+5 move container to workspace 5 | |
bindsym $mod+Shift+6 move container to workspace 6 | |
bindsym $mod+Shift+7 move container to workspace 7 | |
bindsym $mod+Shift+8 move container to workspace 8 | |
bindsym $mod+Shift+9 move container to workspace 9 | |
bindsym $mod+Shift+0 move container to workspace 10 | |
# i3 restart and xfce logout | |
bindsym $mod+Shift+r restart | |
bindsym $mod+Shift+q exec xfce4-session-logout | |
# mode for resize window | |
mode "resize" { | |
bindsym h resize shrink width 10 px or 10 ppt | |
bindsym j resize grow height 10 px or 10 ppt | |
bindsym k resize shrink height 10 px or 10 ppt | |
bindsym l resize grow width 10 px or 10 ppt | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
bindsym $mod+r mode "resize" | |
exec --no-startup-id nitrogen --restore | |
exec --no-startup-id synergy | |
exec --no-startup-id nm-applet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment