Advertisement
Guest User

~/.i3/config

a guest
Nov 5th, 2015
326
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.92 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout somewhen, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7.  
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11. set $mod Mod4
  12. workspace_layout tabbed
  13. new_window 1pixel
  14. # class border backgr. text indicator
  15. client.focused #B0B0B0 #B0B0B0 #0F0F0F #B0B0B0
  16. #client.focused #B0B0B0 #0F0F0F #87DDAF #687868
  17. client.focused_inactive #B0B0B0 #B0B0B0 #0F0F0F #B0B0B0
  18. #client.focused_inactive #B0B0B0 #0F0F0F #B0B0B0 #B0B0B0
  19. client.background #0F0F0F
  20.  
  21. force_focus_wrapping yes
  22. workspace_auto_back_and_forth no
  23.  
  24. client.unfocused #B0B0B0 #0F0F0F #B0B0B0 #B0B0B0
  25. client.urgent #B0B0B0 #0F0F0F #B0B0B0 #B0B0B0
  26. #client.urgent #B0B0B0 #485848 #87DDAF #B0B0B0
  27. #client.urgent #B0B0B0 #B0B0B0 #000000 #B0B0B0
  28.  
  29.  
  30. #client.focused #B0B0B0 #B0B0B0 #000000 #B0B0B0
  31. #client.focused_inactive #B0B0B0 #B0B0B0 #000000 #B0B0B0
  32. #client.background #0F0F0F
  33.  
  34.  
  35.  
  36. #client.unfocused #B0B0B0 #1B4D1A #B0B0B0 #B0B0B0
  37. #client.urgent #B0B0B0 #B0B0B0 #000000 #B0B0B0
  38. default_orientation horizontal
  39.  
  40.  
  41. font xft:PragmataPro 14
  42.  
  43. # Use Mouse+$mod to drag floating windows to their wanted position
  44. floating_modifier $mod
  45.  
  46. bindsym mod1+ctrl+f exec term
  47. bindsym Mod1+Ctrl+w exec rxvt -e wicd-curses
  48.  
  49. # kill focused window
  50. bindsym $mod+Q kill
  51.  
  52. # start dmenu (a program launcher)
  53. bindsym Mod1+grave exec dmenu_run -p 'Run:' -nb '#031003' -nf '#B0B0B0' -sb '#B0B0B0' -sf '#000000' -fn -elite-terminal-bold-r-normal--14-140-72-72-c-80-koi8-r
  54.  
  55. bindsym mod1+Escape exec invert
  56.  
  57.  
  58. bindsym Ctrl+k focus right
  59. bindsym Ctrl+m focus down
  60. bindsym Ctrl+i focus up
  61. bindsym Ctrl+j focus left
  62.  
  63. # alternatively, you can use the cursor keys:
  64. #bindsym $mod+Left focus left
  65. #bindsym $mod+Down focus down
  66. #bindsym $mod+Up focus up
  67. #bindsym $mod+Right focus right
  68.  
  69. # move focused window
  70. bindsym Ctrl+Shift+J move left
  71. bindsym Ctrl+Shift+M move down
  72. bindsym Ctrl+Shift+i move up
  73. bindsym Ctrl+Shift+K move right
  74.  
  75. #bindsym Ctrl+Shift+k focus right
  76. #bindsym Ctrl+Shift+m focus down
  77. #bindsym Ctrl+Shift+i focus up
  78. #bindsym Ctrl+Shift+j focus left
  79.  
  80.  
  81. # alternatively, you can use the cursor keys:
  82. bindsym $mod+Shift+Left move left
  83. bindsym $mod+Shift+Down move down
  84. bindsym $mod+Shift+Up move up
  85. bindsym $mod+Shift+Right move right
  86.  
  87. # split in horizontal orientation
  88. bindsym $mod+Shift+e split h
  89.  
  90. # split in vertical orientation
  91. bindsym $mod+Shift+d split v
  92.  
  93. # enter fullscreen mode for the focused container
  94. bindsym Mod1+Return fullscreen
  95.  
  96. # change containe layout (stacked, tabbed, default)
  97. bindsym Mod4+s layout stacking
  98. bindsym Mod4+w layout tabbed
  99. bindsym Mod4+d layout splitv
  100. bindsym Mod4+e layout splith
  101.  
  102. # toggle tiling / floating
  103. bindsym $mod+Shift+space floating toggle
  104.  
  105. #alt-tab
  106. bindsym Mod1+Tab workspace back_and_forth
  107.  
  108. # change focus between tiling / floating windows
  109. bindsym $mod+space focus mode_toggle
  110.  
  111. # focus the parent container
  112. #bindsym $mod+a focus parent
  113.  
  114. # focus the child container
  115. #bindcode $mod+d focus child
  116.  
  117. #monitor output
  118. workspace 1:term output LVDS1
  119. workspace 2:web output LVDS1
  120. workspace 3:mail output LVDS1
  121. workspace 4:misc1 output LVDS1
  122. workspace 5:misc2 output LVDS1
  123. workspace 6:misc3 output LVDS1
  124. workspace 7:draw output LVDS1
  125. workspace 8:sql output LVDS1
  126. workspace 9:rdp output LVDS1
  127. workspace 10:music output LVDS1
  128. #workspace vga output VGA1
  129.  
  130. # switch to workspace
  131. bindsym Mod1+1 workspace 1:term
  132. bindsym Mod1+2 workspace 2:web
  133. bindsym Mod1+3 workspace 3:mail
  134. bindsym Mod1+4 workspace 4:misc1
  135. bindsym Mod1+5 workspace 5:misc2
  136. bindsym Mod1+6 workspace 6:misc3
  137. bindsym Mod1+7 workspace 7:draw
  138. bindsym Mod1+8 workspace 8:sql
  139. bindsym Mod1+9 workspace 9:rdp
  140. bindsym Mod1+0 workspace 10:music
  141. #bindsym Mod4+v workspace vga
  142.  
  143. # move focused container to workspace
  144. bindsym Mod1+Shift+exclam move container to workspace 1:term
  145. bindsym Mod1+Shift+at move container to workspace 2:web
  146. bindsym Mod1+Shift+numbersign move container to workspace 3:mail
  147. bindsym Mod1+Shift+dollar move container to workspace 4:misc1
  148. bindsym Mod1+Shift+percent move container to workspace 5:misc2
  149. bindsym Mod1+Shift+asciicircum move container to workspace 6:misc3
  150. bindsym Mod1+Shift+ampersand move container to workspace 7:draw
  151. bindsym Mod1+Shift+asterisk move container to workspace 8:sql
  152. bindsym Mod1+Shift+parenleft move container to workspace 9:rdp
  153. bindsym Mod1+Shift+parenright move container to workspace 10:music
  154. #bindsym Mod1+Shift+v move container to workspace vga
  155.  
  156. bindsym Mod4+apostrophe exec xrandr --output LVDS1 --scale "1x1"
  157. bindsym Mod4+semicolon exec xrandr --output LVDS1 --scale "0.8x0.8"
  158.  
  159. bindsym Mod4+bracketleft exec xrandr --output VGA1 --scale "0.7x0.7"
  160. bindsym Mod4+bracketright exec xrandr --output VGA1 --scale "1x1"
  161.  
  162.  
  163. #assing windows to workspaces
  164. #assign [class="^Firefox$" instance="^Navigator$"] \u2192 8: web
  165. bindsym Mod4+k exec cmus-remote -u
  166. bindsym Mod4+l exec cmus-remote -n
  167. bindsym Mod4+j exec cmus-remote -r
  168. bindsym Mod4+o exec aumix -v +5
  169. bindsym XF86AudioLowerVolume exec aumix -v -5
  170. bindsym XF86AudioRaiseVolume exec aumix -v +5
  171. bindsym XF86AudioMute exec amixer sset Master toggle
  172. bindsym XF86AudioMicMute exec amixer sset Capture toggle
  173.  
  174. bindsym Mod4+m exec aumix -v -5
  175. bindsym Mod4+4 exec g 1
  176. bindsym Mod4+5 exec g 2
  177. bindsym Mod4+3 exec gamma3
  178. bindsym Mod4+2 exec gamma2
  179. bindsym Mod4+1 exec gamma1
  180.  
  181.  
  182. #bindsym Mod4+V [title=".*?VIM.*?"] focus
  183. #bindsym Mod4+F [title=".*?VIFM.*?"] focus
  184. #bindsym Mod4+B [title=".*?Vimperator$"] focus
  185.  
  186. for_window [class="^rdesktop$" instance="^rdesktop"] floating disable
  187. #for_window [class="^rdesktop$" instance="^rdesktop$"] move container to workspace 9:rdp
  188. for_window [class="^rdesktop$" instance="^rdesktop$"] move container to workspace 9:rdp
  189. #for_window [class="^Skype$" instance="^skype$"] move container to workspace 9:rdp
  190. #for_window [class="^Skype$" instance="^skype$"] floating enable
  191.  
  192.  
  193.  
  194. #for_window [class="^mpv$" instance="^gl$"] focus output VGA1
  195. #for_window [class="^mpv$" instance="^gl$"] move container to workspace 5:misc2
  196.  
  197.  
  198. for_window [class="^XVkbd$" instance="^xvkbd$"] floating enable
  199. #bindsym Mod4+Shift+K [class="^Skype$" instance="^skype$" window_role="Chats"] focus
  200. #bindsym Mod4+Shift+K [class="^Skype$" instance="^skype$" window_role="Chats"] focus
  201.  
  202. assign [class="^Dwb$" instance="^dwb$"] 2:web
  203.  
  204. assign [class="^dwb$" instance="^Dwb$"] 2:web
  205. assign [class="^Firefox$" instance="^Navigator$"] 2:web
  206. assign [class="^Iceweasel$" instance="^Navigator$"] 2:web
  207. assign [class="Gimp" instance="gimp"] 7:draw
  208. assign [class="MyPaint" instance="mypaint"] 7:draw
  209.  
  210. for_window [class="Gimp" instance="gimp" window_role="gimp-toolbox"] floating disable
  211. for_window [class="MyPaint" instance="mypaint" window_role="Brush selector"] floating disable
  212. for_window [title=".*?Pentadactyl.*?"] move container to workspace 2:web
  213. for_window [class="Wine" instance="SQLyog.exe"] move container to workspace 8:sql
  214. #for_window [title=".*?chat.*?"] move scratchpad
  215.  
  216. for_window [title="^jabber.*?" instance="rxvt"] floating enable, geometry {"x": 0, "y": 10, "width": 850, "height": 450}
  217. for_window [title="^jabber.*?" instance="xterm-256color"] floating enable, geometry {"x": 0, "y": 10, "width": 850, "height": 450}
  218. for_window [title="^jabber.*?" instance="rxvt"] move scratchpad
  219. for_window [title="^jabber.*?" instance="xterm-256color"] move scratchpad
  220.  
  221. for_window [title="^tox.*?" instance="rxvt"] floating enable, geometry {"x": 0, "y": 10, "width": 850, "height": 450}
  222. for_window [title="tox:.*?" instance="rxvt"] move scratchpad
  223. for_window [class="Pavucontrol" instance="pavucontrol"] move scratchpad
  224. #for_window [title="notes.txt.*?"] move scratchpad
  225. for_window [title="StarDict.*?"] move scratchpad
  226. #for_window [title="alsamixer"] move scratchpad
  227.  
  228. #scratchpads
  229. #bindsym Mod4+R sctarchpad show
  230. #bindsym Mod4+i [title=".*?chat.*?"] scratchpad show ;exec killall osd_cat
  231. bindsym Mod4+i [title="jabber:.*?"] scratchpad show ;exec killall osd_cat
  232. bindsym Mod4+u [title="^tox:.*?"] scratchpad show
  233. #bindsym Mod4+p [title="alsamixer"] scratchpad show
  234.  
  235.  
  236.  
  237. bindsym Mod1+space [title=".*?dmesg.*?"] scratchpad show
  238. bindsym Mod4+n [title="notes.txt.*?"] scratchpad show
  239. #bindsym Mod4+d [title="StarDict.*?"] scratchpad show
  240. #bindsym Mod4+c [title="wifi"] scratchpad show
  241. bindsym Mod4+c [class="MobilePartner.bin" instance="MobilePartner.bin"] scratchpad show
  242.  
  243.  
  244. bindsym Mod1+Shift+space scratchpad show
  245. #bindsym Mod4+i [title="chat"] scratchpad show
  246. bindsym Mod4+minus move scratchpad
  247. # reload the configuration file
  248. bindsym $mod+Shift+C reload
  249. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  250. bindsym $mod+Shift+R restart
  251. # exit i3 (logs you out of your X session)
  252. bindsym $mod+Shift+Q exit
  253.  
  254. #tray toggle
  255. bindsym Mod4+Shift+u exec tray_toggle
  256.  
  257. #lock screen
  258. bindsym Ctrl+Mod1+l exec lock
  259. bindsym Ctrl+Mod1+s exec shotwin
  260.  
  261. #bindsym Mod4+Shift+E exit
  262.  
  263. #bindsym XF86Launch1 exec /home/user/.i3/vga.sh
  264.  
  265. #bindsym Print exec /home/user/.i3/hibernate.sh
  266.  
  267. #rotate screen
  268. bindsym XF86Explorer exec rotate
  269.  
  270. #title toggle
  271. bindsym Mod4+t border normal
  272. bindsym Mod4+Shift+T border 1pixel
  273. #bindsym mod+u border primary
  274. #
  275. # resize window (you can also use the mouse for that)
  276. mode "resize" {
  277. # These bindings trigger as soon as you enter the resize mode
  278.  
  279. # Pressing left will shrink the window’s width.
  280. # Pressing right will grow the window’s width.
  281. # Pressing up will shrink the window’s height.
  282. # Pressing down will grow the window’s height.
  283. bindsym h resize shrink width 10 px or 10 ppt
  284. bindsym j resize grow height 10 px or 10 ppt
  285. bindsym k resize shrink height 10 px or 10 ppt
  286. bindsym l resize grow width 10 px or 10 ppt
  287.  
  288. # same bindings, but for the arrow keys
  289. bindsym 113 resize shrink width 10 px or 10 ppt
  290. bindsym 116 resize grow height 10 px or 10 ppt
  291. bindsym 111 resize shrink height 10 px or 10 ppt
  292. bindsym 114 resize grow width 10 px or 10 ppt
  293.  
  294. # back to normal: Enter or Escape
  295. bindsym Return mode "default"
  296. bindsym grave mode "default"
  297. }
  298.  
  299. bindsym $mod+r mode "resize"
  300.  
  301. # Start i3bar to display a workspace bar (plus the system information i3status
  302. bar {
  303. output VGA1
  304. workspace_buttons yes
  305. strip_workspace_numbers yes
  306. tray_output none
  307. #status_command i3status conky|dzen2
  308. status_command myi3status
  309. position bottom
  310.  
  311. #status_command i3status -c ~/.i3status.conf
  312. mode dock
  313.  
  314. colors {
  315. #background #005F00
  316. background #0F0F0F
  317. #background #000000
  318. statusline #B0B0B0
  319. #client.focused #B0B0B0 #B0B0B0 #000000 #B0B0B0
  320. #client.focused_inactive #B0B0B0 #000000 #B0B0B0 #B0B0B0
  321. #client.unfocused #B0B0B0 #000000 #87B07F #B0B0B0
  322.  
  323. focused_workspace #000000 #B0B0B0
  324. active_workspace #000000 #476F47
  325. inactive_workspace #B0B0B0 #0F0F0F
  326. urgent_workspace #B0B0B0 #0F0F0F
  327. }
  328. }
  329.  
  330. bar {
  331. output LVDS1
  332. workspace_buttons yes
  333. strip_workspace_numbers yes
  334. tray_output none
  335. #status_command i3status conky|dzen2
  336. status_command myi3status
  337. position bottom
  338.  
  339. #status_command i3status -c ~/.i3status.conf
  340. mode dock
  341.  
  342. colors {
  343. background #0F0F0F
  344. #background #000000
  345. statusline #B0B0B0
  346. #client.focused #B0B0B0 #B0B0B0 #000000 #B0B0B0
  347. #client.focused_inactive #B0B0B0 #000000 #B0B0B0 #B0B0B0
  348. #client.unfocused #B0B0B0 #000000 #87B07F #B0B0B0
  349.  
  350. focused_workspace #000000 #B0B0B0
  351. active_workspace #000000 #476F47
  352. inactive_workspace #B0B0B0 #0F0F0F
  353. urgent_workspace #B0B0B0 #0F0F0F
  354. }
  355. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement