Advertisement
rootdigga

i3config

Oct 18th, 2013
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.71 KB | None | 0 0
  1. # Mod key (win key)
  2. set $mod Mod4
  3.  
  4. # Font
  5. #font -xos4-fixed-medium-r-normal-*-12-120-72-72-c-60-iso10646-1
  6. #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  7. #font xft:Inconsolata-dz for Powerline 8
  8. font xft:Liberation Mono for Powerline 9
  9.  
  10. # Wallpaper
  11. exec --no-startup-id nitrogen --restore
  12.  
  13. # load xresources
  14. exec --no-startup-id xrdb ~/.Xresources
  15.  
  16. # turn off screen after 10 minutes
  17. exec --no-startup-id xset dpms 600
  18.  
  19. # compositing
  20. exec --no-startup-id xcompmgr
  21.  
  22. # music server
  23. exec --no-startup-id mpd /home/rdg/.mpd/mpd.conf
  24.  
  25. # gnome bindings
  26. exec --no-startup-id gnome-settings-daemon
  27. exec --no-startup-id gnome-keyring-daemon
  28. exec --no-startup-id gnome-do
  29.  
  30. # systray apps
  31. exec --no-startup-id nm-applet
  32. exec --no-startup-id volti
  33. exec --no-startup-id classicmenu-indicator
  34.  
  35. # additional apps
  36. exec --no-startup-id owncloud
  37.  
  38. # application bindings
  39. bindsym $mod+Return exec x-terminal-emulator && transset -a 0.8
  40. #bindsym $mod+u exec urxvt
  41. bindsym $mod+g exec gvim
  42. bindsym $mod+Shift+b exec chromium-browser
  43. bindsym $mod+b exec firefox
  44. bindsym $mod+t exec pcmanfm
  45. #bindsym $mod+t exec nautilus
  46. #bindsym $mod+t exec thunar
  47. bindsym $mod+o exec subl
  48.  
  49. # Start dmenu
  50. bindsym $mod+d exec dmenu_run
  51.  
  52. # Scratchpad
  53. bindsym $mod+minus scratchpad show
  54. bindsym $mod+Shift+minus move scratchpad
  55.  
  56. # Workspace names
  57. workspace "☊ subbass" output DVI-I-1
  58. workspace "☣ Web" output DVI-I-1
  59. workspace "⚙ etc" output DVI-I-1
  60. workspace "☝ touch" output DVI-D-0
  61.  
  62. # Window colors
  63. client.focused #2c2c2c #2c2c2c #ececec #2099c2
  64. client.focused_inactive #2c2c2c #2c2c2c #bcbcbc #2c2c2c
  65. client.unfocused #2c2c2c #2c2c2c #6c6c6c #2c2c2c
  66. client.urgent #ff7a00 #ff7a00 #000000 #2c2c2c
  67.  
  68. # window border
  69. new_window pixel 9
  70. hide_edge_borders none
  71.  
  72. # window behaviour
  73. popup_during_fullscreen smart
  74. force_focus_wrapping no
  75. workspace_auto_back_and_forth yes
  76. force_display_urgency_hint 500 ms
  77.  
  78. # Float special windows
  79. for_window [window_role="pop-up"] floating enable; border normal
  80. for_window [class="XFontsel"] floating enable; border normal
  81. for_window [class="Nitrogen"] floating enable; border normal
  82. for_window [class="Thunar" title="File Operation Progress"] floating enable; border normal
  83. for_window [class="Xmessage"] floating enable; border normal
  84. for_window [class="Sublime_text" window_role="GtkFileChooserDialog"] floating enable; border normal
  85. for_window [class="VirtualBox"] floating enable; border normal
  86. for_window [class="Steam"] floating enable; border normal
  87. for_window [title="exe"] floating enable; border none
  88. for_window [class="Firefox" window_role="Manager"] floating enable; border normal
  89. for_window [class="Firefox" title="Add Downloads"] floating enable; border normal
  90. for_window [class="Firefox" title="DownThemAll! - Make Your Selection"] floating enable; border normal
  91. for_window [class="defcon.bin.x86_64"] floating enable; border none
  92. for_window [class="Gcr-prompter"] floating enable; border normal
  93. for_window [class="X3AP_config"] floating enable; border normal
  94. for_window [class="Vidalia"] floating enable; border normal
  95. for_window [class="SRRemote.pyc"] floating enable; border normal
  96. for_window [title="https://pinboard.in - Pinboard - Save a Bookmark - Mozilla Firefox"] floating enable; border normal
  97. for_window [class="Wine" instance="winecfg.exe"] floating enable; border normal
  98. for_window [class="Qjackctl"] floating enable; border normal
  99.  
  100. # Change focused window
  101. bindsym $mod+Left focus left
  102. bindsym $mod+Right focus right
  103. bindsym $mod+Up focus up
  104. bindsym $mod+Down focus down
  105.  
  106. # Kill focused window
  107. bindsym $mod+Shift+q kill
  108.  
  109. # Move focused window
  110. bindsym $mod+Shift+Left move left
  111. bindsym $mod+Shift+Right move right
  112. bindsym $mod+Shift+Up move up
  113. bindsym $mod+Shift+Down move down
  114.  
  115. # Resize focused window
  116. bindsym $mod+Ctrl+Left resize shrink width 5px or 5 ppt
  117. bindsym $mod+Ctrl+Right resize grow width 5px or 5 ppt
  118. bindsym $mod+Ctrl+Down resize shrink height 5px or 5 ppt
  119. bindsym $mod+Ctrl+Up resize grow height 5px or 5 ppt
  120.  
  121. # Change container layout
  122. bindsym $mod+s layout stacking
  123. bindsym $mod+w layout tabbed
  124. bindsym $mod+e layout default
  125.  
  126. # Change parent container
  127. bindsym $mod+a focus parent
  128.  
  129. # Switch workspces
  130. bindsym $mod+1 workspace "☊ subbass"
  131. bindsym $mod+2 workspace "☣ Web"
  132. bindsym $mod+3 workspace "⚙ etc"
  133. bindsym $mod+4 workspace "☝ touch"
  134.  
  135. # Move focused containers
  136. bindsym $mod+Shift+1 move container to workspace "☊ subbass"; workspace "☊ subbass"
  137. bindsym $mod+Shift+2 move container to workspace "☣ Web"; workspace "☣ Web"
  138. bindsym $mod+Shift+3 move container to workspace "⚙ etc"; workspace "⚙ etc"
  139. bindsym $mod+Shift+4 move container to workspace "☝ touch"; workspace "☝ touch"
  140.  
  141. # Toggle tiling / floating
  142. bindsym $mod+Shift+space floating toggle
  143.  
  144. # Floating modifier for mouse use
  145. floating_modifier $mod
  146.  
  147. # Split orientation
  148. bindsym $mod+v split v
  149. bindsym $mod+h split h
  150.  
  151. # Toggle fullscreen
  152. bindsym $mod+f fullscreen
  153.  
  154. # Multimedia keys
  155. bindsym XF86AudioPrev exec mpc prev
  156. bindsym XF86AudioNext exec mpc next
  157. bindsym XF86AudioPlay exec mpc_toggle
  158. bindsym XF86AudioMute exec alsamute
  159.  
  160. # Toggle resize
  161. bindsym $mod+r mode "layout"
  162. bindsym $mod+Shift+Return mode "layout"
  163. floating_minimum_size 120 x 80
  164.  
  165. # resize windows
  166. mode "layout" {
  167. bindsym Shift+Left resize shrink width 5px or 5 ppt
  168. bindsym Shift+Up resize grow height 5px or 5 ppt
  169. bindsym Shift+Down resize shrink height 5px or 5 ppt
  170. bindsym Shift+Right resize grow width 5px or 5 ppt
  171. bindsym Ctrl+Shift+Left resize shrink width 10px or 10 ppt
  172. bindsym Ctrl+Shift+Up resize grow height 10px or 10 ppt
  173. bindsym Ctrl+Shift+Down resize shrink height 10px or 10 ppt
  174. bindsym Ctrl+Shift+Right resize grow width 10px or 10 ppt
  175. bindsym Left move left
  176. bindsym Up move up
  177. bindsym Right move right
  178. bindsym Down move down
  179. bindsym Shift+1 move container to workspace "☊ subbass"; workspace "☊ subbass"
  180. bindsym Shift+2 move container to workspace "☣ Web"; workspace "☣ Web"
  181. bindsym Shift+3 move container to workspace "⚙ etc"; workspace "⚙ etc"
  182. bindsym Shift+4 move container to workspace "☝ touch"; workspace "☝ touch"
  183.  
  184. bindsym 1 exec --no-startup-id transset -a 1
  185. bindsym 2 exec --no-startup-id transset -a 0.95
  186. bindsym 3 exec --no-startup-id transset -a 0.9
  187. bindsym 4 exec --no-startup-id transset -a 0.8
  188. bindsym 5 exec --no-startup-id transset -a 0.65
  189. bindsym 6 exec --no-startup-id transset -a 0.5
  190. bindsym 7 exec --no-startup-id transset -a 0.4
  191. bindsym 8 exec --no-startup-id transset -a 0.3
  192. bindsym 9 exec --no-startup-id transset -a 0.2
  193. bindsym 0 exec --no-startup-id transset -a 0.1
  194.  
  195. # exit resize mode
  196. bindsym Escape mode "default"
  197. bindsym Return mode "default"
  198. }
  199.  
  200. # Reload, restart, ext
  201. bindsym $mod+Shift+C reload
  202. bindsym $mod+Shift+R exec --no-startup-id killall conky; restart
  203. # bindsym $mod+Shift+E exit
  204.  
  205. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  206. mode "$mode_system" {
  207. bindsym l exec --no-startup-id /home/rdg/bin/i3exit lock, mode "default"
  208. bindsym e exec --no-startup-id /home/rdg/bin/i3exit logout, mode "default"
  209. bindsym s exec --no-startup-id /home/rdg/bin/i3exit suspend, mode "default"
  210. bindsym h exec --no-startup-id /home/rdg/bin/i3exit hibernate, mode "default"
  211. bindsym r exec --no-startup-id /home/rdg/bin/i3exit reboot, mode "default"
  212. bindsym Shift+s exec --no-startup-id /home/rdg/bin/i3exit shutdown, mode "default"
  213.  
  214. # back to normal: Enter or Escape
  215. bindsym Return mode "default"
  216. bindsym Escape mode "default"
  217. }
  218. bindsym $mod+Pause mode "$mode_system"
  219.  
  220. # configure bar
  221. bar {
  222. mode dock
  223. status_command ~/.i3/conky.sh
  224. position bottom
  225. workspace_buttons yes
  226. output DVI-I-1
  227. tray_output none
  228.  
  229. #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  230. #font xft:Inconsolata-dz for Powerline 8
  231.  
  232. colors {
  233. background #1c1c1c
  234. statusline #2099c2
  235.  
  236. focused_workspace #1c1c1c #1c1c1c #ff9422
  237. active_workspace #1c1c1c #1c1c1c #2099c2
  238. inactive_workspace #1c1c1c #1c1c1c #2099c2
  239. urgent_workspace #1c1c1c #ff9422 #000000
  240. }
  241. }
  242.  
  243. bar {
  244. mode dock
  245. output DVI-D-0
  246. tray_output DVI-D-0
  247. workspace_buttons yes
  248. position bottom
  249.  
  250. colors {
  251. background #1c1c1c
  252. statusline #cc9797
  253.  
  254. focused_workspace #1c1c1c #1c1c1c #ff9422
  255. active_workspace #1c1c1c #1c1c1c #2099c2
  256. inactive_workspace #1c1c1c #1c1c1c #2099c2
  257. urgent_workspace #1c1c1c #ff9422 #000000
  258. }
  259. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement