Advertisement
okubax

i3config_v2

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