Skip to content

Instantly share code, notes, and snippets.

@594727294
Created August 20, 2015 03:26
Show Gist options
  • Save 594727294/5c3b98ca5e27bde781c6 to your computer and use it in GitHub Desktop.
Save 594727294/5c3b98ca5e27bde781c6 to your computer and use it in GitHub Desktop.
laptop ~/.i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod1
font pango:Liberation Sans 8
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec urxvt
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym Mod1+d exec dmenu_run -i -b -nb '#202020' -nf '#9E9E9E' -sb '#292929' -fn 'Liberation Sans-8.3'
# 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
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+ntilde focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+ntilde move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen
bindsym $mod+F2 exec notify-send hey
bindsym $mod+F3 exec notify-send 'Hello Nicholas Currie!'
bindsym $mod+F4 exec /opt/google/chrome/google-chrome --app=https://voxpopteam.slack.com/messages/development/
bindsym $mod+F5 exec /usr/share/smartgit/bin/smartgit.sh
# 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
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym Mod1+1 workspace ヒフラ
bindsym Mod1+2 workspace dev
bindsym Mod1+3 workspace git
bindsym Mod1+4 workspace file
bindsym Mod1+5 workspace ~~~~
bindsym Mod1+6 workspace gideon
bindsym Mod1+7 workspace shit
bindsym Mod1+8 workspace cositas de mi tierra
bindsym Mod1+9 workspace ////
bindsym Mod1+0 workspace ( )
# move focused container to workspace
bindsym Mod1+Shift+1 move container to workspace ヒフラ
bindsym Mod1+Shift+2 move container to workspace dev
bindsym Mod1+Shift+3 move container to workspace git
bindsym Mod1+Shift+4 move container to workspace file
bindsym Mod1+Shift+5 move container to workspace ~~~~
bindsym Mod1+Shift+6 move container to workspace gideon
bindsym Mod1+Shift+7 move container to workspace shit
bindsym Mod1+Shift+8 move container to workspace cositas de mi tierra
bindsym Mod1+Shift+9 move container to workspace ////
bindsym Mod1+Shift+0 move container to workspace ( )
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
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 ntilde resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape
bindsym Return mode "default"
bindsym Escape mode "default"
}
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3blocks
tray_output none
position top
colors {
background #FFFFFF
statusline #3C3C3C
separator #3C3C3C
focused_workspace #FFFFFF #FFFFFF #005558
active_workspace #FFFFFF #FFFFFF #3C3C3C
inactive_workspace #FFFFFF #FFFFFF #6C6C6C
urgent_workspace #FFFFFF #FFFFFF #BEAE90
}
}
default_orientation horizontal
hide_edge_borders vertical
new_window normal
for_window [class="^.*"] border pixel 0
# Window Colors: border background text
client.focused #2020202 #2020202 #2020202 #2020202
client.focused_inactive #2020202 #2020202 #2020202 #2020202
client.unfocused #2020202 #2020202 #2020202 #2020202
client.urgent #2020202 #2020202 #2020202 #2020202
exec --no-startup-id nitrogen --restore
exec naturalscrolling
exec setxkbmap -option grp:alt_shift_toggle es
exec compton --config ~/compton.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment