Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add basic i3 config

  • Loading branch information...
commit 38ba1c1c6504dc7eff911515bc2ba460ef5f9375 1 parent 1ece703
Caio Romão authored

Showing 2 changed files with 131 additions and 0 deletions. Show diff stats Hide diff stats

  1. +121 0 config/i3/config
  2. +10 0 config/i3status/config
121 config/i3/config
... ... @@ -0,0 +1,121 @@
  1 +set $mod Mod4
  2 +
  3 +exec ~/etc/Dropbox/autostart
  4 +
  5 +# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  6 +font pango:DejaVu Sans Mono 8
  7 +
  8 +# Use Mouse+$mod to drag floating windows to their wanted position
  9 +floating_modifier $mod
  10 +
  11 +bindsym $mod+Return exec i3-sensible-terminal
  12 +bindsym $mod+Control+l exec i3lock -c 000000
  13 +
  14 +# kill focused window
  15 +bindsym $mod+Shift+c kill
  16 +
  17 +# start dmenu (a program launcher)
  18 +bindsym $mod+r exec dmenu_run
  19 +bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  20 +
  21 +# change focus
  22 +bindsym $mod+h focus left
  23 +bindsym $mod+j focus down
  24 +bindsym $mod+k focus up
  25 +bindsym $mod+l focus right
  26 +
  27 +# alternatively, you can use the cursor keys:
  28 +bindsym $mod+Left focus left
  29 +bindsym $mod+Down focus down
  30 +bindsym $mod+Up focus up
  31 +bindsym $mod+Right focus right
  32 +
  33 +# move focused window
  34 +bindsym $mod+Shift+h move left
  35 +bindsym $mod+Shift+j move down
  36 +bindsym $mod+Shift+k move up
  37 +bindsym $mod+Shift+l move right
  38 +
  39 +bindsym $mod+Shift+Left move left
  40 +bindsym $mod+Shift+Down move down
  41 +bindsym $mod+Shift+Up move up
  42 +bindsym $mod+Shift+Right move right
  43 +
  44 +# splits
  45 +bindsym $mod+Control+h split h
  46 +bindsym $mod+Control+v split v
  47 +
  48 +# enter fullscreen mode for the focused container
  49 +bindsym $mod+f fullscreen
  50 +
  51 +# change container layout
  52 +bindsym $mod+s layout stacking
  53 +bindsym $mod+w layout tabbed
  54 +bindsym $mod+e layout toggle split
  55 +
  56 +# toggle tiling / floating
  57 +bindsym $mod+Shift+space floating toggle
  58 +
  59 +# change focus between tiling / floating windows
  60 +bindsym $mod+space focus mode_toggle
  61 +
  62 +# focus the parent container
  63 +bindsym $mod+a focus parent
  64 +
  65 +# focus the child container
  66 +#bindsym $mod+d focus child
  67 +
  68 +# switch to workspace
  69 +bindsym $mod+1 workspace 1
  70 +bindsym $mod+2 workspace 2
  71 +bindsym $mod+3 workspace 3
  72 +bindsym $mod+4 workspace 4
  73 +bindsym $mod+5 workspace 5
  74 +bindsym $mod+6 workspace 6
  75 +bindsym $mod+7 workspace 7
  76 +bindsym $mod+8 workspace 8
  77 +bindsym $mod+9 workspace 9
  78 +bindsym $mod+0 workspace 10
  79 +
  80 +# move focused container to workspace
  81 +bindsym $mod+Shift+1 move container to workspace 1
  82 +bindsym $mod+Shift+2 move container to workspace 2
  83 +bindsym $mod+Shift+3 move container to workspace 3
  84 +bindsym $mod+Shift+4 move container to workspace 4
  85 +bindsym $mod+Shift+5 move container to workspace 5
  86 +bindsym $mod+Shift+6 move container to workspace 6
  87 +bindsym $mod+Shift+7 move container to workspace 7
  88 +bindsym $mod+Shift+8 move container to workspace 8
  89 +bindsym $mod+Shift+9 move container to workspace 9
  90 +bindsym $mod+Shift+0 move container to workspace 10
  91 +
  92 +# reload the configuration file
  93 +bindsym $mod+Shift+r reload
  94 +# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  95 +bindsym $mod+Shift+Control+r restart
  96 +# exit i3 (logs you out of your X session)
  97 +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Exit i3?' -b 'Yes' 'i3-msg exit'"
  98 +
  99 +# resize window (you can also use the mouse for that)
  100 +mode "resize" {
  101 +
  102 + bindsym h resize shrink width 10 px or 10 ppt
  103 + bindsym j resize grow height 10 px or 10 ppt
  104 + bindsym k resize shrink height 10 px or 10 ppt
  105 + bindsym l resize grow width 10 px or 10 ppt
  106 +
  107 + bindsym Left resize shrink width 10 px or 10 ppt
  108 + bindsym Down resize grow height 10 px or 10 ppt
  109 + bindsym Up resize shrink height 10 px or 10 ppt
  110 + bindsym Right resize grow width 10 px or 10 ppt
  111 +
  112 + bindsym Return mode "default"
  113 + bindsym Escape mode "default"
  114 +}
  115 +
  116 +bindsym $mod+Control+r mode "resize"
  117 +
  118 +bar {
  119 + status_command i3status
  120 + tray_output primary
  121 +}
10 config/i3status/config
... ... @@ -0,0 +1,10 @@
  1 +general {
  2 + colors = true
  3 + interval = 5
  4 +}
  5 +
  6 +order += "time"
  7 +
  8 +time {
  9 + format = "%Y-%m-%d %H:%M"
  10 +}

0 comments on commit 38ba1c1

Please sign in to comment.
Something went wrong with that request. Please try again.