Advertisement
Guest User

i3config

a guest
Jan 11th, 2016
788
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.27 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 some time, 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.  
  12. set $mod Mod1
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16.  
  17. #font xft:Droid Sans Mono:size 10
  18.  
  19. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  20. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  21. #font pango:DejaVu Sans Mono 8
  22.  
  23. # Before i3 v4.8, we used to recommend this one as the default:
  24. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  25. # The font above is very space-efficient, that is, it looks good, sharp and
  26. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  27. # X core fonts rendering does not support right-to-left and this being a bitmap
  28. # font, it doesn’t scale on retina/hidpi displays.
  29.  
  30.  
  31. # <-- APPEARANCE -->
  32.  
  33. # disable borders
  34. for_window [class="^.*"] border pixel 0
  35.  
  36. #force_xinerama no
  37.  
  38. # gaps mod configuration
  39. set $default_gaps_inner 5
  40. set $default_gaps_outer 2
  41. gaps inner $default_gaps_inner
  42. gaps outer $default_gaps_outer
  43.  
  44. smart_gaps on
  45. smart_borders on
  46.  
  47. workspace_auto_back_and_forth yes
  48.  
  49. force_display_urgency_hint 0 ms
  50. focus_on_window_activation urgent
  51. floating_minimum_size -1 x -1
  52. floating_maximum_size -1 x -1
  53.  
  54. font pango:Tewi, Icons 9
  55.  
  56. set $black #2c2836
  57. set $darkblack #73707e
  58. set $red #bb7473
  59. set $darkred #cf9fa4
  60. set $green #68b782
  61. set $darkgreen #9acbad
  62. set $yellow #abb773
  63. set $darkyellow #c5cba4
  64. set $blue #7865c5
  65. set $darkblue #a396d9
  66. set $magenta #bb65b6
  67. set $darkmagenta #cf96cf
  68. set $cyan #68a8c5
  69. set $darkcyan #9ac1d9
  70. set $white #f1edfb
  71. set $darkwhite #f1edfb
  72. set $background #283D48
  73.  
  74. # BORDER BACKGROUND TEXT INDICATOR
  75. client.focused $cyan $cyan $white $cyan
  76. client.unfocused $darkcyan $darkcyan $white $darkcyan
  77. client.focused_inactive $darkcyan $darkcyan $white $darkcyan
  78. client.urgent $red $red $white $red
  79.  
  80. set $ws1 "1:"
  81. set $ws2 "2:"
  82. set $ws3 "3:"
  83. set $ws4 "4:"
  84. set $ws5 "5:"
  85. set $ws6 "6:"
  86. set $ws7 "7:"
  87. set $ws8 "8:"
  88. set $ws9 "9:"
  89. set $ws10 "10:"
  90.  
  91. # <-- BINDINGS AND STARTUP -->
  92.  
  93. # Use Mouse+$mod to drag floating windows to their wanted position
  94. floating_modifier $mod
  95.  
  96. # start a terminal
  97. bindsym $mod+Shift+Return exec urxvtc -e fish
  98.  
  99. # kill focused window
  100. bindsym $mod+F4 kill
  101.  
  102. # start dmenu (a program launcher)
  103. #bindsym $mod+p exec dmenu_run
  104. # There also is the (new) i3-dmenu-desktop which only displays applications
  105. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  106. # installed.
  107. bindsym $mod+p exec i3-dmenu-desktop --dmenu='dmenu -p "\$" -nb "$background" -nf "$cyan" -sb "$background" -sf "$white"'
  108.  
  109. # change focus
  110. bindsym $mod+j focus left
  111. bindsym $mod+k focus down
  112. bindsym $mod+l focus up
  113. bindsym $mod+semicolon focus right
  114.  
  115. # alternatively, you can use the cursor keys:
  116. bindsym $mod+Left focus left
  117. bindsym $mod+Down focus down
  118. bindsym $mod+Up focus up
  119. bindsym $mod+Right focus right
  120.  
  121. # move focused window
  122. bindsym $mod+Return move left
  123. bindsym $mod+Shift+j move left
  124. bindsym $mod+Shift+k move down
  125. bindsym $mod+Shift+l move up
  126. bindsym $mod+Shift+colon move right
  127.  
  128. # alternatively, you can use the cursor keys:
  129. bindsym $mod+Shift+Left move left
  130. bindsym $mod+Shift+Down move down
  131. bindsym $mod+Shift+Up move up
  132. bindsym $mod+Shift+Right move right
  133.  
  134. # split in horizontal orientation
  135. bindsym $mod+h split h
  136.  
  137. # split in vertical orientation
  138. bindsym $mod+v split v
  139.  
  140. # enter fullscreen mode for the focused container
  141. bindsym $mod+m fullscreen toggle
  142.  
  143. # change container layout (stacked, tabbed, toggle split)
  144. bindsym $mod+f layout stacking
  145. bindsym $mod+t layout tabbed
  146. bindsym $mod+e layout toggle split
  147.  
  148. # toggle tiling / floating
  149. bindsym $mod+Shift+space floating toggle
  150.  
  151. # change focus between tiling / floating windows
  152. bindsym $mod+space focus mode_toggle
  153.  
  154. # focus the parent container
  155. bindsym $mod+a focus parent
  156.  
  157. # focus the child container
  158. bindsym $mod+d focus child
  159.  
  160. # switch to workspace
  161. bindsym $mod+1 workspace $ws1
  162. bindsym $mod+2 workspace $ws2
  163. bindsym $mod+3 workspace $ws3
  164. bindsym $mod+4 workspace $ws4
  165. bindsym $mod+5 workspace $ws5
  166. bindsym $mod+6 workspace $ws6
  167. bindsym $mod+7 workspace $ws7
  168. bindsym $mod+8 workspace $ws8
  169. bindsym $mod+9 workspace $ws9
  170. bindsym $mod+0 workspace $ws10
  171. bindsym $mod+Tab workspace back_and_forth
  172. bindcode $mod+49 workspace next
  173.  
  174. # move focused container to workspace
  175. bindsym $mod+Shift+1 move container to workspace $ws1
  176. bindsym $mod+Shift+2 move container to workspace $ws2
  177. bindsym $mod+Shift+3 move container to workspace $ws3
  178. bindsym $mod+Shift+4 move container to workspace $ws4
  179. bindsym $mod+Shift+5 move container to workspace $ws5
  180. bindsym $mod+Shift+6 move container to workspace $ws6
  181. bindsym $mod+Shift+7 move container to workspace $ws7
  182. bindsym $mod+Shift+8 move container to workspace $ws8
  183. bindsym $mod+Shift+9 move container to workspace $ws9
  184. bindsym $mod+Shift+0 move container to workspace $ws10
  185.  
  186. # reload the configuration file
  187. bindsym $mod+Shift+c reload
  188. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  189. bindsym $mod+Shift+r restart
  190. # exit i3 (logs you out of your X session)
  191. bindsym $mod+Shift+e exec i3-msg exit
  192.  
  193.  
  194. bindsym XF86AudioRaiseVolume exec amixer set Master '5%+'
  195. bindsym XF86AudioLowerVolume exec amixer set Master '5%-'
  196. bindsym XF86AudioMute exec amixer set Master toggle
  197.  
  198. # fix graphics glitch
  199. new_window none
  200.  
  201. #for_window [instance="sun-awt-X11-XFramePeer"] floating enable
  202.  
  203. for_window [window_role="pop-up"] floating enable
  204. for_window [window_role="bubble"] floating enable
  205. for_window [window_role="task_dialog"] floating enable
  206. for_window [window_role="Preferences"] floating enable
  207.  
  208. for_window [window_type="dialog"] floating enable
  209. for_window [window_type="menu"] floating enable
  210.  
  211. for_window [class="(?i)gsimplecal"] floating enable
  212. for_window [class="(?i)qemu-system"] floating enable
  213. for_window [class="(?i)VirtualBox"] floating enable
  214.  
  215. for_window [class="(?i)pavucontrol"] floating enable, move position mouse
  216. for_window [title="(?i)qtcreator_process_stub"] floating enable, move position mouse
  217. for_window [title="(?i)server??"] floating enable, move position mouse
  218. for_window [title="(?i)client??"] floating enable, move position mouse
  219.  
  220. assign [class="(?i)qtcreator" window_type="normal"] $ws3
  221. assign [class="(?i)libreoffice" window_type="normal"] $ws6
  222. assign [class="(?i)subl" window_type="normal"] $ws6
  223. assign [class="(?i)firefox" window_type="normal"] $ws4
  224. assign [class="(?i)thunderbird" window_type="normal"] $ws9
  225.  
  226. set $mode_gaps <span> </span><span background='#bb7473' foreground='white'> gaps </span> <span foreground='white'>i</span>nner <span foreground='white'>o</span>uter <span foreground='white'>0 d</span>
  227. set $mode_gaps_outer <span> </span><span background='#bb7473' foreground='white'> outer gaps </span> <span foreground='white'>+ - 0 d</span>
  228. set $mode_gaps_inner <span> </span><span background='#bb7473' foreground='white'> inner gaps </span> <span foreground='white'>+ - 0 d</span>
  229.  
  230. bindsym $mod+Shift+g mode "$mode_gaps"
  231. mode "$mode_gaps" {
  232. bindsym o mode "$mode_gaps_outer"
  233. bindsym i mode "$mode_gaps_inner"
  234.  
  235. bindsym 0 mode "default", exec --no-startup-id i3-msg "gaps inner current set 0" && i3-msg "gaps outer current set 0"
  236. bindsym d mode "default", exec --no-startup-id i3-msg "gaps inner current set $default_gaps_inner" && i3-msg "gaps outer current set $default_gaps_outer"
  237.  
  238. bindsym Return mode "default"
  239. bindsym Escape mode "default"
  240. }
  241.  
  242. mode "$mode_gaps_inner" {
  243. bindsym plus gaps inner current plus 5
  244. bindsym minus gaps inner current minus 5
  245. bindsym 0 mode "default", gaps inner current set 0
  246. bindsym d mode "default", gaps inner current set $default_gaps_inner
  247.  
  248. bindsym Shift+plus gaps inner all plus 5
  249. bindsym Shift+minus gaps inner all minus 5
  250. bindsym Shift+0 mode "default", gaps inner all set 0
  251. bindsym Shift+d mode "default", gaps inner all set $default_gaps_inner
  252.  
  253. bindsym Return mode "default"
  254. bindsym Escape mode "default"
  255. }
  256.  
  257. mode "$mode_gaps_outer" {
  258. bindsym plus gaps outer current plus 5
  259. bindsym minus gaps outer current minus 5
  260. bindsym 0 mode "default", gaps outer current set 0
  261. bindsym d mode "default", gaps outer current set $default_gaps_outer
  262.  
  263. bindsym Shift+plus gaps outer all plus 5
  264. bindsym Shift+minus gaps outer all minus 5
  265. bindsym Shift+0 mode "default", gaps outer all set 0
  266. bindsym Shift+d mode "default", gaps outer all set $default_gaps_outer
  267.  
  268. bindsym Return mode "default"
  269. bindsym Escape mode "default"
  270. }
  271.  
  272.  
  273. # resize window (you can also use the mouse for that)
  274. mode "resize" {
  275. # These bindings trigger as soon as you enter the resize mode
  276.  
  277. # Pressing left will shrink the window’s width.
  278. # Pressing right will grow the window’s width.
  279. # Pressing up will shrink the window’s height.
  280. # Pressing down will grow the window’s height.
  281. bindsym j resize shrink width 10 px or 10 ppt
  282. bindsym k resize grow height 10 px or 10 ppt
  283. bindsym l resize shrink height 10 px or 10 ppt
  284. bindsym semicolon resize grow width 10 px or 10 ppt
  285.  
  286. # same bindings, but for the arrow keys
  287. bindsym Left resize grow width 2 px or 2 ppt
  288. bindsym Down resize grow height 2 px or 2 ppt
  289. bindsym Up resize shrink height 2 px or 2 ppt
  290. bindsym Right resize shrink width 2 px or 2 ppt
  291.  
  292. # back to normal: Enter or Escape
  293. bindsym Return mode "default"
  294. bindsym Escape mode "default"
  295. }
  296.  
  297. #bindsym $mod+r mode "resize"
  298.  
  299. # Start i3bar to display a workspace bar (plus the system information i3status
  300. # finds out, if available)
  301.  
  302. bindsym Print exec --no-startup-id gnome-screenshot
  303. bindsym $mod+Shift+Pause exec --no-startup-id gnome-screenshot -a
  304. bindsym Mod4+Pause exec --no-startup-id gnome-screenshot -w
  305.  
  306. bar {
  307. status_command i3status
  308. position top
  309. font pango: Fira Mono, Icons 8
  310. strip_workspace_numbers no
  311. bindsym button4 nop
  312. bindsym button5 no
  313. separator_symbol 
  314.  
  315. height 18
  316.  
  317. colors {
  318. statusline $white
  319. background $background
  320. separator $cyan
  321. # BORDER BACKGROUND TEXT
  322. focused_workspace $background $background $white
  323. inactive_workspace $background $background $darkcyan
  324. active_workspace $background $background $white
  325. urgent_workspace $darkcyan $darkcyan $background
  326. binding_mode $background $background $darkcyan
  327. }
  328. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement