Advertisement
okubax

i3_new

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