Advertisement
okubax

i3-config

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