yacuken

.i3/config

Feb 19th, 2014
194
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #.......
  2. # font
  3. #.......
  4.  
  5. font pango: Terminus 9
  6.  
  7. #..........
  8. # windows
  9. #..........
  10.  
  11. new_window 1pixel
  12. new_float 1pixel
  13.  
  14. #..........
  15. # colors
  16. #..........
  17.  
  18. #class                  border   backgr.  text
  19. client.focused          #C9B5BD #C9B5BD #825969
  20. client.focused_inactive #191919 #191919 #999999
  21. client.unfocused        #191919 #191919 #999999
  22. client.urgent           #cd989a #cd989a #2e3436
  23. client.background       #121212
  24.  
  25.  
  26. set $mod Mod4
  27. # Use Mouse+$mod to drag floating windows to their wanted position
  28. floating_modifier $mod
  29.  
  30. #...........
  31. # Keybinds
  32. #...........
  33.  
  34. # start a terminal
  35. bindsym $mod+Return exec terminator
  36.  
  37. # kill focused window
  38. bindsym $mod+q kill
  39. # start dmenu (a program launcher)
  40. bindsym Mod4+p exec dmenu_run -fn  "Terminus-9" -nb "#101010" -nf "#5f5f5f" -sb "#191919" -sf "#b72f62" -b
  41.  
  42. # change focus
  43. bindsym $mod+j focus left
  44. bindsym $mod+k focus down
  45. bindsym $mod+i focus up
  46. bindsym $mod+l focus right
  47.  
  48. # alternatively, you can use the cursor keys:
  49. bindsym $mod+Left focus left
  50. bindsym $mod+Down focus down
  51. bindsym $mod+Up focus up
  52. bindsym $mod+Right focus right
  53.  
  54. # move focused window
  55. bindsym $mod+Shift+j move left
  56. bindsym $mod+Shift+k move down
  57. bindsym $mod+Shift+l move up
  58. bindsym $mod+Shift+i move right
  59.  
  60. # alternatively, you can use the cursor keys:
  61. bindsym $mod+Shift+Left move left
  62. bindsym $mod+Shift+Down move down
  63. bindsym $mod+Shift+Up move up
  64. bindsym $mod+Shift+Right move right
  65.  
  66. # split in horizontal orientation
  67. bindsym $mod+h split h
  68.  
  69. # split in vertical orientation
  70. bindsym $mod+v split v
  71.  
  72. # enter fullscreen mode for the focused container
  73. bindsym $mod+f fullscreen
  74.  
  75. # change container layout (stacked, tabbed, toggle split)
  76. bindsym $mod+s layout stacking
  77. bindsym $mod+w layout tabbed
  78. bindsym $mod+e layout toggle split
  79.  
  80. # toggle tiling / floating
  81. bindsym $mod+Shift+space floating toggle
  82.  
  83. # change focus between tiling / floating windows
  84. bindsym $mod+space focus mode_toggle
  85.  
  86. # focus the parent container
  87. bindsym $mod+a focus parent
  88.  
  89. # focus the child container
  90. #bindsym $mod+d exec dmenu_run
  91.  
  92. # workspaces
  93. workspace "1: web" output VGA1
  94. workspace "2: media" output VGA1
  95. workspace "3: games" output VGA1
  96. workspace "1: term" output LVDS1
  97. workspace "2: ide" output LVDS1
  98. workspace "3: misc" output LVDS1
  99.  
  100. # switch to workspace
  101. bindsym $mod+1 workspace 1: web
  102. bindsym $mod+2 workspace 2: media
  103. bindsym $mod+3 workspace 3: games
  104. bindsym $mod+4 workspace 1: term
  105. bindsym $mod+5 workspace 2: ide
  106. bindsym $mod+6 workspace 3: misc
  107.  
  108. # move focused container to workspace
  109. bindsym $mod+Shift+1 move container to workspace 1: web
  110. bindsym $mod+Shift+2 move container to workspace 2: media
  111. bindsym $mod+Shift+3 move container to workspace 3: games
  112. bindsym $mod+Shift+4 move container to workspace 1: term
  113. bindsym $mod+Shift+5 move container to workspace 2: ide
  114. bindsym $mod+Shift+6 move container to workspace 3: misc
  115.  
  116. # reload the configuration file
  117. bindsym $mod+Shift+c reload
  118. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  119. bindsym $mod+Shift+r restart
  120. # exit i3 (logs you out of your X session)
  121. bindsym $mod+Shift+q 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'"
  122.  
  123.  
  124. #Screenshot
  125. bindsym --release Print exec scrot  ~/Screenshots/screenshot_%Y_%m_%d_%H_%M_%S.png
  126.  
  127. # resize window (you can also use the mouse for that)
  128. mode "resize" {
  129.         # These bindings trigger as soon as you enter the resize mode
  130.  
  131.         # Pressing left will shrink the window’s width.
  132.         # Pressing right will grow the window’s width.
  133.         # Pressing up will shrink the window’s height.
  134.         # Pressing down will grow the window’s height.
  135.         bindsym j resize shrink width 10 px or 10 ppt
  136.         bindsym k resize grow height 10 px or 10 ppt
  137.         bindsym i resize shrink height 10 px or 10 ppt
  138.         bindsym l resize grow width 10 px or 10 ppt
  139.  
  140.         # same bindings, but for the arrow keys
  141.         bindsym Left resize shrink width 10 px or 10 ppt
  142.         bindsym Down resize grow height 10 px or 10 ppt
  143.         bindsym Up resize shrink height 10 px or 10 ppt
  144.         bindsym Right resize grow width 10 px or 10 ppt
  145.  
  146.         # back to normal: Enter or Escape
  147.         bindsym Return mode "default"
  148.         bindsym Escape mode "default"
  149. }
  150.  
  151. bindsym $mod+r mode "resize"
  152.  
  153. #Status bar
  154.  
  155. bar {
  156.     mode dock
  157.     position top
  158.     font pango: Terminus 9
  159.     workspace_buttons yes
  160.     status_command ~/.i3/conky.sh
  161.     output LVDS1
  162.     tray_output none
  163.     colors {
  164.         background #101010
  165.         statusline #605c5a
  166.         focused_workspace #101010 #101010 #b72f62
  167.         active_workspace #5f5f5f #101010 #605c5a
  168.         inactive_workspace #101010 #101010 #5f5f5f
  169.         urgent_workspace #2e3436 #9a878f
  170.     }
  171. }
  172.  
  173. bar {
  174.     mode dock
  175.     position top
  176.     font pango: Terminus 9
  177.     workspace_buttons yes
  178.     output VGA1
  179.     tray_output none
  180.     colors {
  181.         background #101010
  182.         statusline #605c5a
  183.         focused_workspace #101010 #101010 #b72f62
  184.         active_workspace #5f5f5f #101010 #605c5a
  185.         inactive_workspace #101010 #101010 #5f5f5f
  186.         urgent_workspace #2e3436 #9a878f
  187.     }
  188.  
  189. }
  190.  
  191. #assign application to workspace
  192.  
  193. assign [class="Chromium"]1: web
  194. assign [class="^URxvt$" instance="^ncmpcpp$"]1: term
  195. assign [class="MPlayer"]2: media
  196. assign [class="Vlc"]2: media
  197. assign [class="Gimp"]3: misc
  198. assign [class="Virtualbox"]3: misc
RAW Paste Data