Advertisement
Guest User

i3-config

a guest
Jun 28th, 2014
904
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.30 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout somewhen, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below. ISO 10646 = Unicode
  16. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  17. # The font above is very space-efficient, that is, it looks good, sharp and
  18. # clear in small sizes. However, if you need a lot of unicode glyphs or
  19. # right-to-left text rendering, you should instead use pango for rendering and
  20. # chose a FreeType font, such as:
  21. # font pango:DejaVu Sans Mono 10
  22.  
  23. # Use Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25.  
  26. # start a terminal
  27. #bindsym $mod+Return exec i3-sensible-terminal
  28. bindsym $mod+Return exec urxvt
  29.  
  30. # kill focused window
  31. bindsym $mod+Shift+q kill
  32.  
  33. # start dmenu (a program launcher)
  34. bindsym $mod+d exec dmenu_run
  35. # There also is the (new) i3-dmenu-desktop which only displays applications
  36. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  37. # installed.
  38. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  39.  
  40. # change focus
  41. bindsym $mod+h focus left
  42. bindsym $mod+j focus down
  43. bindsym $mod+k focus up
  44. bindsym $mod+l focus right
  45.  
  46. # alternatively, you can use the cursor keys:
  47. bindsym $mod+Left focus left
  48. bindsym $mod+Down focus down
  49. bindsym $mod+Up focus up
  50. bindsym $mod+Right focus right
  51.  
  52. # move focused window
  53. bindsym $mod+Shift+h move left
  54. bindsym $mod+Shift+j move down
  55. bindsym $mod+Shift+k move up
  56. bindsym $mod+Shift+l move right
  57.  
  58. # alternatively, you can use the cursor keys:
  59. bindsym $mod+Shift+Left move left
  60. bindsym $mod+Shift+Down move down
  61. bindsym $mod+Shift+Up move up
  62. bindsym $mod+Shift+Right move right
  63.  
  64. # split in horizontal orientation
  65. bindsym $mod+g split h
  66.  
  67. # split in vertical orientation
  68. bindsym $mod+v split v
  69.  
  70. # enter fullscreen mode for the focused container
  71. bindsym $mod+f fullscreen
  72.  
  73. # change container layout (stacked, tabbed, toggle split)
  74. bindsym $mod+s layout stacking
  75. bindsym $mod+w layout tabbed
  76. bindsym $mod+e layout toggle split
  77.  
  78. # toggle tiling / floating
  79. bindsym $mod+Shift+space floating toggle
  80.  
  81. # change focus between tiling / floating windows
  82. bindsym $mod+space focus mode_toggle
  83.  
  84. # focus the parent container
  85. bindsym $mod+a focus parent
  86.  
  87. # focus the child container
  88. #bindsym $mod+d focus child
  89.  
  90. # switch to workspace
  91. # for dual monitors
  92. bindsym $mod+1 workspace 2; workspace 1
  93. bindsym $mod+2 workspace 1; workspace 2
  94.  
  95. bindsym $mod+3 workspace 4; workspace 3
  96. bindsym $mod+4 workspace 3; workspace 4
  97.  
  98. bindsym $mod+5 workspace 6; workspace 5
  99. bindsym $mod+6 workspace 5; workspace 6
  100.  
  101. bindsym $mod+7 workspace 8; workspace 7
  102. bindsym $mod+8 workspace 7; workspace 8
  103.  
  104. bindsym $mod+9 workspace 0; workspace 9
  105. bindsym $mod+0 workspace 9; workspace 0
  106.  
  107. # move focused container to workspace
  108. bindsym $mod+Shift+1 move container to workspace 1; workspace 1
  109. bindsym $mod+Shift+2 move container to workspace 2; workspace 2
  110. bindsym $mod+Shift+3 move container to workspace 3; workspace 3
  111. bindsym $mod+Shift+4 move container to workspace 4; workspace 4
  112. bindsym $mod+Shift+5 move container to workspace 5; workspace 5
  113. bindsym $mod+Shift+6 move container to workspace 6; workspace 6
  114. bindsym $mod+Shift+7 move container to workspace 7; workspace 7
  115. bindsym $mod+Shift+8 move container to workspace 8; workspace 8
  116. bindsym $mod+Shift+9 move container to workspace 9; workspace 9
  117. bindsym $mod+Shift+0 move container to workspace 10; workspace 10
  118.  
  119.  
  120. # switch focus to next/prev workspace
  121. bindsym $mod+Mod1+h workspace prev
  122. bindsym $mod+Mod1+l workspace next
  123.  
  124. # for dual monitor
  125. workspace 1 output DVI-I-2
  126. workspace 2 output DVI-I-3
  127.  
  128. workspace 3 output DVI-I-2
  129. workspace 4 output DVI-I-3
  130.  
  131. workspace 5 output DVI-I-2
  132. workspace 6 output DVI-I-3
  133.  
  134. workspace 7 output DVI-I-2
  135. workspace 8 output DVI-I-3
  136.  
  137. workspace 9 output DVI-I-2
  138. workspace 0 output DVI-I-3
  139.  
  140.  
  141. # reload the configuration file
  142. bindsym $mod+Shift+c reload
  143. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  144. bindsym $mod+Shift+r restart
  145. # exit i3 (logs you out of your X session)
  146. 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'"
  147.  
  148. # resize window (you can also use the mouse for that)
  149. mode "resize" {
  150.         # These bindings trigger as soon as you enter the resize mode
  151.  
  152.         # Pressing left will shrink the window’s width.
  153.         # Pressing right will grow the window’s width.
  154.         # Pressing up will shrink the window’s height.
  155.         # Pressing down will grow the window’s height.
  156.         bindsym h resize shrink width 10 px or 10 ppt
  157.         bindsym j resize grow height 10 px or 10 ppt
  158.         bindsym k resize shrink height 10 px or 10 ppt
  159.         bindsym l resize grow width 10 px or 10 ppt
  160.  
  161.         # same bindings, but for the arrow keys
  162.         bindsym Left resize shrink width 10 px or 10 ppt
  163.         bindsym Down resize grow height 10 px or 10 ppt
  164.         bindsym Up resize shrink height 10 px or 10 ppt
  165.         bindsym Right resize grow width 10 px or 10 ppt
  166.  
  167.         # back to normal: Enter or Escape
  168.         bindsym Return mode "default"
  169.         bindsym Escape mode "default"
  170. }
  171.  
  172. bindsym $mod+r mode "resize"
  173.  
  174. # Window Colors
  175. # class                         border      backgr.     text        indicator
  176. client.focused                  #d0d0d0     #477995     #eeeeee     #75b5aa    
  177. client.focused_inactive         #151515     #151515     #eeeeee     #75b5aa        
  178. client.unfocused                #151515     #151515     #eeeeee     #75b5aa    
  179. client.urgent                   #994444     #994444     #eeeeee     #75b5aa    
  180. #bar.focused                    #0000ff     #cccccc     #eeeeee     #75b5aa    
  181. #bar.unfocused                  #00ff00     #cccccc     #eeeeee     #75b5aa    
  182. #bar.urgent                     #999999     #cccccc     #eeeeee     #75b5aa    
  183.  
  184. # You can also specify the color to be used to paint the background of the client windows. This color will be used to paint the window on top of which the client will be rendered.
  185. client.background #151515
  186.  
  187. focus_follows_mouse no
  188.  
  189. #borders for new windows
  190. #new_window pixel 5
  191. new_window 1pixel
  192. new_float normal
  193.  
  194. # Autostart applications like this " exec [--no-startup-id] command "
  195. ##exec [--no-startup-id] tint2 &
  196. ##exec [--no-startup-id] sh /home/ry/.fehbg &
  197. #exec [--no-startup-id] parcellite -n -d &
  198. #exec [--no-startup-id] gnome-settings-daemon &
  199. #exec [--no-startup-id] eval $(gnome-keyring-daemon --start) &
  200. ##exec [--no-startup-id] ssh-agent &
  201. #exec [--no-startup-id] sleep 5s && ssh-add &
  202. ##exec [--no-startup-id] xrandr --auto --output DVI-I-2 --right-of DVI-I-1 &    #desktop
  203. #exec [--no-startup-id] xrdb -merge /home/ry/.Xresources &
  204. #exec [--no-startup-id] bitlbee -c /home/ry/.bitlbee/bitlbee.conf -d /home/ry/.bitlbee/ &
  205. #exec [--no-startup-id] offlineimap &
  206.  
  207. #       #exec tint2 &
  208. #       #exec sh /home/ry/.fehbg &
  209. #       exec parcellite -n -d &
  210. #       exec gnome-settings-daemon &
  211. #       exec eval $(gnome-keyring-daemon --start) &
  212. #       #exec ssh-agent &
  213. #       #exec xrandr --auto --output DVI-I-2 --right-of DVI-I-1 &   #desktop
  214. #       #exec sleep 5s && ssh-add &
  215. #       exec xrdb -merge /home/ry/.Xresources &
  216. #       exec bitlbee -c /home/ry/.bitlbee/bitlbee.conf -d /home/ry/.bitlbee/ &
  217. #       exec offlineimap &
  218.  
  219.  
  220.  
  221.  
  222. # commented out below to remove bar
  223.  
  224. # Start i3bar to display a workspace bar (plus the system information i3status
  225. # finds out, if available)
  226. #           bar {
  227. #               status_command i3status
  228. #               mode            hide
  229. #               hidden_state    hide
  230. #           #   modifier        Mod1
  231. #               #output         LVDS1
  232. #               tray_output     none
  233. #               position        top
  234. #               font pango:DejaVu Sans Mono 9
  235. #               colors {
  236. #                   background #505050
  237. #                   statusline #d0d0d0
  238. #                                       #text   #bg
  239. #                   focused_workspace  #505050 #d0d0d0
  240. #                   active_workspace   #d0d0d0 #505050
  241. #                   inactive_workspace #d0d0d0 #505050
  242. #                   urgent_workspace   #ff0000 #505050
  243. #               }
  244. #           }
  245.  
  246. # use this for syntax highlighting in vim
  247. # vim:filetype=i3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement