Advertisement
okubax

i3_new

Sep 12th, 2013
1,455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.27 KB | None | 0 0
  1. ## dkeg 2013;i3 config file (v4) ##
  2.  
  3. set $mod Mod4
  4. #set $MOD MOD1
  5.  
  6. # SET MODE SWITCH
  7. #set Mode_switch $MOD5
  8.  
  9. #default, floating, tabbed
  10. #new container floating
  11.  
  12. # TOGGLE FLOATING / TILING
  13. #bindsym $MOD+SHIFT+t floating toggle
  14.  
  15. # new window default border
  16. #new_window 1pixel
  17. new_window pixel 2
  18. #new_float 1pixel
  19. new_float pixel 2
  20.  
  21. # HIDE EDGE BORDERS
  22. #hide_edge_borders <none|vertical|horizontal|both>
  23. #hide_edge_borders both
  24.  
  25. # font for window titles. ISO 10646 = Unicode
  26. #font fixed
  27. font pango:Droid Sans 10px
  28.  
  29. # Use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. # start a terminal
  33. #bindsym $mod+Return exec i3-sensible-terminal
  34.  
  35. # Back and Forth
  36. workspace_auto_back_and_forth yes
  37.  
  38. # kill focused window
  39. bindsym $mod+q kill
  40. #bindsym $mod+Shift+Q kill
  41.  
  42. # start dmenu (a program launcher)
  43. bindsym $mod+p exec --no-startup-id dmenu_run -b -fn '-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*' -nb '#111111' -nf '#555555' -sb '#111111' -sf '#aadb0f'
  44.  
  45. # CHANGING BORDER STYLE
  46. bindsym $mod+t border normal
  47. bindsym $mod+y border 1pixel
  48. bindsym $mod+u border none
  49.  
  50. # BORDERLESS CONTAINER
  51. #i3-msg border none
  52.  
  53. # browser pop-ups
  54. for_window [window_role="pop-up"] floating enable,move absolute center
  55.  
  56. # ASSIGN WORKSPACE VARIABLES
  57. set $WS1 »term
  58. set $WS2 »web
  59. set $WS3 »text
  60. set $WS4 »media
  61. set $WS5 »misc
  62. set $WS6 »system
  63. set $WS7 »office
  64. set $WS8 »mail
  65.  
  66. # WINDOW CONTROL
  67. ## Float everything
  68. #for_window [class="[.]*"] floating enable
  69. assign [class="mplayer2"] $WS4
  70. assign [class="VirtualBox"] $WS6
  71. assign [class="libreoffice*|Evince"] $WS7
  72. assign [class="Sylpheed"] $WS8
  73. assign [instance="VCLSalFrame"] $WS7
  74. for_window [class="mplayer2"] floating enable
  75. ## BROWSER ASSIGNMENT (Navigator=Iceape)
  76. assign [instance="Navigator|chromium|filezilla|transmission-gtk"] $WS2
  77. for_window [title="Skype"] floating enable
  78. for_window [class="Arandr"] floating enable
  79. #for_window [title="download"] floating enable
  80. for_window [title="TrueCrypt"] floating enable
  81. #for_window [title="Browser"] floating enable
  82. for_window [title="Catfish"] floating enable
  83. for_window [title="File Operation Progress" class="Thunar"] floating enable
  84. for_window [title="Share a link on Twitter - Mozilla Firefox" class="Firefox"] floating enable
  85. for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable
  86. for_window [title="Preferences"] floating enable
  87. for_window [class="Gsimplecal"] floating enable
  88. for_window [class="Alarm-clock"] floating enable
  89. for_window [class="Viewnior"] floating enable
  90. for_window [class="Lxappearance"] floating enable
  91. for_window [class="Nitrogen"] floating enable
  92. for_window [title="Xfce-notifyd"] floating enable
  93. #for_window [class="URxvt"] floating enable
  94. #for_window [class="URxvt"] border 1pixel
  95. assign [class="Thunar|Gimp|Eclipse|Pinta|Blender|Catfish|Galculator"] $WS5
  96. #for_window [class="Thunar"] floating enable
  97. for_window [class="mousepad"] floating enable
  98. assign [instance="mousepad|leafpad|geany"] $WS3
  99. assign [instance="terminator|urxvt"] $WS1
  100. assign [instance="shotwell|nitrogen|simple-scan|quodlibet|gnome-mplayer|brasero|devede|imagination|picard|wxcam|google-musicmanager|sound-juicer"] $WS4
  101. assign [instance="syncbackup|bleachbit|caffeine|gparted|hardinfo|truecrypt"] $WS6
  102. #for_window [class="Mousepad"] floating enable
  103. #assign [class="Turpial" ] $WS4
  104. #for_window [class="Turpial" ] floating enable
  105.  
  106. bindsym $MOD+Tab focus right
  107.  
  108. # SCRATCHPAD CREATE
  109. #bindsym $MOD+SHIFT+plus move scratchpad
  110.  
  111. # SCRATCHPAD SHOW
  112. #bindsym $MOD+plus scratchpad show
  113.  
  114. # OPEN TERMINAL HERE (not working yet)
  115. #bindsym $MOD+n exec $HOME/bin/shell.sh
  116.  
  117. # HANDLE POPUPS
  118. #popup_during_fullscreen smart
  119.  
  120. # change focus
  121. bindsym $mod+h focus left
  122. bindsym $mod+j focus down
  123. bindsym $mod+k focus up
  124. bindsym $mod+l focus right
  125.  
  126. # move focused window
  127. bindsym $mod+Shift+H move left
  128. bindsym $mod+Shift+J move down
  129. bindsym $mod+Shift+K move up
  130. bindsym $mod+Shift+L move right
  131.  
  132. # split in horizontal orientation
  133. bindsym $mod+bar split h
  134.  
  135. # split in vertical orientation
  136. bindsym $mod+underscore split v
  137.  
  138. # enter fullscreen mode for the focused container
  139. bindsym $mod+f fullscreen
  140.  
  141. # change container layout (stacked, tabbed, default)
  142. bindsym $mod+s layout stacking
  143. bindsym $mod+x layout tabbed
  144. bindsym $mod+z layout default
  145.  
  146. # toggle tiling / floating
  147. bindsym $mod+Shift+space floating toggle
  148.  
  149. # change focus between tiling / floating windows
  150. bindsym $mod+space focus mode_toggle
  151.  
  152. # focus the parent container
  153. bindsym $mod+a focus parent
  154.  
  155. # focus the child container
  156. bindsym $mod+d focus child
  157.  
  158. # switch to workspace
  159. bindsym $mod+1 workspace $WS1
  160. bindsym $mod+2 workspace $WS2
  161. bindsym $mod+3 workspace $WS3
  162. bindsym $mod+4 workspace $WS4
  163. bindsym $mod+5 workspace $WS5
  164. bindsym $mod+6 workspace $WS6
  165. bindsym $mod+7 workspace $WS7
  166. bindsym $mod+8 workspace $WS8
  167. bindsym $mod+9 workspace 9
  168. bindsym $mod+0 workspace 10
  169.  
  170. # move focused container to workspace
  171. bindsym $mod+Shift+exclam move container to workspace $WS1
  172. bindsym $mod+Shift+at move container to workspace $WS2
  173. bindsym $mod+Shift+numbersign move container to workspace $WS3
  174. bindsym $mod+Shift+dollar move container to workspace $WS4
  175. bindsym $mod+Shift+percent move container to workspace $WS5
  176. bindsym $mod+Shift+asciicircum move container to workspace $WS6
  177. bindsym $mod+Shift+ampersand move container to workspace $WS7
  178. bindsym $mod+Shift+asterisk move container to workspace $WS8
  179. bindsym $mod+Shift+parenleft move container to workspace 9
  180. bindsym $mod+Shift+parenright move container to workspace 10
  181.  
  182. # reload the configuration file
  183. bindsym $mod+Shift+C reload
  184. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  185. bindsym $mod+Shift+R restart
  186. # exit i3 (logs you out of your X session)
  187. bindsym $mod+Shift+E exit
  188.  
  189. # resize window (you can also use the mouse for that)
  190. mode "resize" {
  191. # These bindings trigger as soon as you enter the resize mode
  192.  
  193. bindsym h resize shrink width 10 px or 10 ppt
  194. bindsym j resize grow height 10 px or 10 ppt
  195. bindsym k resize shrink height 10 px or 10 ppt
  196. bindsym l resize grow width 10 px or 10 ppt
  197. # arrow keys #
  198. # bindsym 113 right
  199. # bindsym 116 up
  200. # bindsym 111 left
  201. # bindsym 114 down
  202.  
  203. # back to normal: Enter or Escape
  204. bindsym Return mode "default"
  205. bindsym Escape mode "default"
  206. }
  207.  
  208. bindsym $mod+r mode "resize"
  209.  
  210. #EXAMPLE USING THE i3 bar
  211. # Create Log out, Reboot, Poweroff bindings
  212. mode "Exit >> (L)ogout, (X)eboot, (P)oweroff (C)Reload (R)Restart" {
  213. bindsym Mod1+x exec systemctl reboot
  214. bindsym Mod1+l exit
  215. bindsym Mod1+p exec systemctl poweroff
  216. bindsym Mod1+c reload
  217. bindsym Mod1+r restart
  218.  
  219. # back to normal: Enter or Escape
  220. bindsym Return mode "default"
  221. bindsym Escape mode "default"
  222. }
  223.  
  224. bindsym Mod4+Control+q mode "Exit >> (L)ogout, (X)eboot, (P)oweroff (C)Reload (R)Restart"
  225.  
  226. # take screenshot
  227. # bindsym Print exec scrot '%Y-%m-%d-%t_$wx$h.png' -e 'mv $ $f ~/images/'
  228. #bindsym Print exec scrot 'Screenshot - %Y-%m-%d--%_$wx$h_scrot.png' -e 'mv $f ~/images/screenshots'
  229. bindsym Print exec $HOME/bin/screen.sh root
  230. bindsym Mod1+Print exec $HOME/bin/screen.sh active
  231.  
  232. # colors
  233.  
  234. # class border backgr. text
  235. ## LIME GREEN ACTIVE BORDER
  236. client.focused #9fbc00 #9fbc00 #111111
  237. ## BLUE ACTIVE BORDER
  238. #client.focused #2b6cc4 #2b6cc4 #111111
  239. ## RED ACTIVE BORDER
  240. #client.focused #bf3f34 #bf3f34 #111111
  241. ## LIGHTER RED ACTIVE BORDER
  242. #client.focused #cc5555 #cc5555 #111111
  243. client.unfocused #444444 #444444 #315858
  244. client.focused_inactive #444444 #444444 #2c2c2f
  245. client.urgent #383a3b #383a3b #ee0000
  246.  
  247.  
  248. ### ADDED KEY BINDINGS ###
  249. bindsym $MOD+SHIFT+f exec thunar
  250. bindsym $MOD+Return exec --no-startup-id urxvt -g 90x16+15+425
  251. #bindsym $MOD+Return exec --no-startup-id terminator
  252. bindsym $mod+w exec firefox
  253. bindsym $mod+b exec /home/ajibola/downloads/tor-browser_en-US/start-tor-browser
  254. bindsym $mod+e exec geany
  255. bindsym Mod1+e exec sylpheed
  256. bindsym $mod+i exec urxvt -e irssi
  257. bindsym $MOD+SHIFT+t exec urxvt -e htop
  258.  
  259.  
  260. # VOLUME ADJUSTMENT
  261. bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '3%+'"
  262. bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
  263. bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
  264. #bindsym $MOD+SHIFT+Up exec amixer set Master 5.0%+
  265. #bindsym $MOD+SHIFT+Down exec amixer set Master 5.0%-
  266.  
  267. bindsym XF86AudioPlay exec "mpc toggle"
  268. bindsym XF86AudioStop exec "mpc stop"
  269. bindsym XF86AudioNext exec "mpc next"
  270. bindsym XF86AudioPrev exec "mpc prev"
  271.  
  272.  
  273.  
  274. # Start i3bar to display a workspace bar (plus the system information i3status
  275. # finds out, if available)
  276. bar {
  277. status_command $HOME/bin/conky-i3bar
  278. tray_output none
  279. position top
  280. mode dock
  281. # font pango:fixed 6
  282. font pango:Convergence 9px
  283. colors {
  284. statusline #999999
  285. background #252525
  286.  
  287. # class border backgrd text
  288. focused_workspace #292929 #292929 #cccccc
  289. active_workspace #252525 #252525 #696f89
  290. inactive_workspace #252525 #252525 #6b6b6b
  291. urgent_workspace #252525 #252525 #c7a551
  292. }
  293.  
  294. }
  295. ## BACKGROUND OPTIONS (STARTED IN .XINITRC)
  296.  
  297. # AUTOSTART
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement