Advertisement
Guest User

Untitled

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