Advertisement
Artran

i3_config

Jul 1st, 2013
1,166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.91 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 Mod1
  13.  
  14. # exec on startup
  15. exec_always --no-startup-id setxkbmap cz # setting czech keyboard layout
  16. exec --no-startup-id nitrogen --restore # setting wallpaper
  17. exec --no-startup-id volti # starting volume control
  18. exec --no-startup-id clipit # starting clipboard manager
  19. exec --no-startup-id dropboxd
  20. exec --no-startup-id thunderbird
  21. exec --no-startup-id deluge
  22. exec --no-startup-id xset -dpms # turn off display power managemant
  23. exec --no-startup-id xset s off # turn off screen saver
  24. exec --no-startup-id compton --config .config/compton/compton.conf -b # starting compositor
  25.  
  26. # Assigns
  27. assign [class="Thunderbird"]3: mail
  28. assign [class="Deluge"]4: p2p
  29. assign [title="PlayOnLinux"]5: steam
  30. assign [class="Steam"]5: steam
  31. assign [title="Steam"]5: steam
  32. assign [class="FrozenSynapse"]6: games
  33. assign [title="Super Hexagon"]6: games
  34.  
  35. # Aplications
  36. for_window [class="Nitrogen"] floating enable
  37. for_window [class="Dropbox"] floating enable
  38. for_window [class="Gimp"] floating enable
  39. for_window [class="Skype"] floating enable
  40. for_window [class="Lxappearance"] floating enable
  41. for_window [class="Klavaro"] floating enable
  42. for_window [class="Wine"] floating enable
  43. for_window [class="Anki"] floating enable
  44. for_window [class="Vlc"] floating enable
  45. for_window [class="Smplayer"] floating enable
  46. for_window [title="PlayOnLinux"] floating enable
  47. for_window [class="FrozenSynapse"] floating enable
  48. for_window [title="Super Hexagon"] floating enable
  49.  
  50. # Thunderbird
  51. for_window [title="(?i)psaní zprávy:"] floating enable
  52. for_window [title="(?i)adresář"] floating enable
  53. for_window [title="(?i)předvolby aplikace thunderbird"] floating enable
  54. for_window [title="(?i)FireTray preferences"] floating enable
  55.  
  56. # Firefox
  57. for_window [title="Library"] floating enable
  58. for_window [title="Firefox Preferences"] floating enable
  59.  
  60. # Steam
  61. for_window [class="Steam"] border none
  62. for_window [class="Steam.exe"] border none
  63. for_window [title="Steam"] border none
  64. for_window [class="Steam"] floating enable
  65.  
  66. # Font for window titles. Will also be used by the bar unless a different font
  67. # is used in the bar {} block below. ISO 10646 = Unicode
  68. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  69. # The font above is very space-efficient, that is, it looks good, sharp and
  70. # clear in small sizes. However, if you need a lot of unicode glyphs or
  71. # right-to-left text rendering, you should instead use pango for rendering and
  72. # chose a FreeType font, such as:
  73. # font pango:DejaVu Sans Mono 10
  74. font pango:inconsolata medium 10
  75.  
  76. # Use Mouse+$mod to drag floating windows to their wanted position
  77. floating_modifier $mod
  78.  
  79. # start a terminal
  80. bindsym $mod+Return exec i3-sensible-terminal
  81.  
  82. # kill focused window
  83. bindsym $mod+Shift+q kill
  84.  
  85. # start dmenu (a program launcher)
  86. bindsym mod1+F2 exec --no-startup-id dmenu_run -b -fn 'Inconsolata bold-9' -nb '#AAC1DE' -nf '#222222' -sb '#C84065'
  87. # There also is the (new) i3-dmenu-desktop which only displays applications
  88. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  89. # installed.
  90. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  91.  
  92. # change focus
  93. bindsym $mod+j focus left
  94. bindsym $mod+k focus down
  95. bindsym $mod+l focus up
  96. bindsym $mod+semicolon focus right
  97.  
  98. # alternatively, you can use the cursor keys:
  99. bindsym $mod+Left focus left
  100. bindsym $mod+Down focus down
  101. bindsym $mod+Up focus up
  102. bindsym $mod+Right focus right
  103.  
  104. # move focused window
  105. bindsym $mod+Shift+j move left
  106. bindsym $mod+Shift+k move down
  107. bindsym $mod+Shift+l move up
  108. bindsym $mod+Shift+semicolon move right
  109.  
  110. # alternatively, you can use the cursor keys:
  111. bindsym $mod+Shift+Left move left
  112. bindsym $mod+Shift+Down move down
  113. bindsym $mod+Shift+Up move up
  114. bindsym $mod+Shift+Right move right
  115.  
  116. # split in horizontal orientation
  117. bindsym $mod+h split h
  118.  
  119. # split in vertical orientation
  120. bindsym $mod+v split v
  121.  
  122. # enter fullscreen mode for the focused container
  123. bindsym $mod+f fullscreen
  124.  
  125. # change container layout (stacked, tabbed, toggle split)
  126. bindsym $mod+s layout stacking
  127. bindsym $mod+w layout tabbed
  128. bindsym $mod+e layout toggle split
  129.  
  130. # toggle tiling / floating
  131. bindsym $mod+Shift+space floating toggle
  132.  
  133. # change focus between tiling / floating windows
  134. bindsym $mod+space focus mode_toggle
  135.  
  136. # focus the parent container
  137. bindsym $mod+a focus parent
  138.  
  139. # focus the child container
  140. #bindsym $mod+d focus child
  141.  
  142. # switch to workspace
  143. bindsym $mod+1 workspace 1: ~
  144. bindsym $mod+2 workspace 2: www
  145. bindsym $mod+3 workspace 3: mail
  146. bindsym $mod+4 workspace 4: p2p
  147. bindsym $mod+5 workspace 5: steam
  148. bindsym $mod+6 workspace 6: games
  149. bindsym $mod+7 workspace 7: rss
  150. bindsym $mod+8 workspace 8: talk
  151. bindsym $mod+9 workspace 9: etc.
  152. bindsym $mod+0 workspace 10: onionland
  153.  
  154. # move focused container to workspace
  155. bindsym $mod+Shift+1 move container to workspace 1: ~
  156. bindsym $mod+Shift+2 move container to workspace 2: www
  157. bindsym $mod+Shift+3 move container to workspace 3: mail
  158. bindsym $mod+Shift+4 move container to workspace 4: p2p
  159. bindsym $mod+Shift+5 move container to workspace 5: steam
  160. bindsym $mod+Shift+6 move container to workspace 6: games
  161. bindsym $mod+Shift+7 move container to workspace 7: rss
  162. bindsym $mod+Shift+8 move container to workspace 8: talk
  163. bindsym $mod+Shift+9 move container to workspace 9: etc.
  164. bindsym $mod+Shift+0 move container to workspace 10: onionland
  165.  
  166. # reload the configuration file
  167. bindsym $mod+Shift+c reload
  168. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  169. bindsym $mod+Shift+r restart
  170. # exit i3 (logs you out of your X session)
  171. 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'"
  172. # resize window (you can also use the mouse for that)
  173. mode "resize" {
  174.         # These bindings trigger as soon as you enter the resize mode
  175.  
  176.         # Pressing left will shrink the window’s width.
  177.         # Pressing right will grow the window’s width.
  178.         # Pressing up will shrink the window’s height.
  179.         # Pressing down will grow the window’s height.
  180.         bindsym j resize shrink width 10 px or 10 ppt
  181.         bindsym k resize grow height 10 px or 10 ppt
  182.         bindsym l resize shrink height 10 px or 10 ppt
  183.         bindsym semicolon resize grow width 10 px or 10 ppt
  184.  
  185.         # same bindings, but for the arrow keys
  186.         bindsym Left resize shrink width 10 px or 10 ppt
  187.         bindsym Down resize grow height 10 px or 10 ppt
  188.         bindsym Up resize shrink height 10 px or 10 ppt
  189.         bindsym Right resize grow width 10 px or 10 ppt
  190.  
  191.         # back to normal: Enter or Escape
  192.         bindsym Return mode "default"
  193.         bindsym Escape mode "default"
  194. }
  195.  
  196. bindsym $mod+r mode "resize"
  197.  
  198. # Border style
  199. new_window pixel 3
  200. new_float pixel 3
  201. hide_edge_borders vertical
  202.  
  203. # global colors
  204. client.focused      #AAC1DE #7A9ECD #FFFFFF
  205. client.focused_inactive #222222 #555753 #E4F8FF
  206. client.unfocused        #222222 #555753 #FFFFFF
  207. client.urgent       #C84065 #C84065 #FFFFFF
  208.  
  209. # Start i3bar to display a workspace bar (plus the system information i3status
  210. # finds out, if available)
  211. bar {
  212.     position top
  213.     status_command ~/conky-i3bar
  214.     tray_output DVI-I-0
  215.         colors {
  216.                 statusline #FFFFFF
  217.                 background #222222
  218.             separator #222222
  219.                 focused_workspace #222222 #222222 #F26C91
  220.                 active_workspace #222222 #222222 #F26C91
  221.                 inactive_workspace #222222 #222222 #FFFFFF
  222.                 urgent_workspace #222222 #222222 #FFFFFF
  223.         }
  224.  
  225. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement