Guest User

Untitled

a guest
Oct 4th, 2015
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.01 KB | None | 0 0
  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3.  
  4. set $mod Mod4
  5.  
  6. # Font for window titles. Will also be used by the bar unless a different font
  7. # is used in the bar {} block below.
  8. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  9. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  10. font pango:DejaVu Sans Mono 8
  11.  
  12. # Use Mouse+$mod to drag floating windows to their wanted position
  13. floating_modifier $mod
  14.  
  15. # start a terminal
  16. bindsym $mod+Return exec urxvt
  17.  
  18. # kill focused window
  19. bindsym $mod+Shift+w kill
  20.  
  21. # start dmenu (a program launcher)
  22. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  23.  
  24. # change focus
  25. bindsym $mod+h focus left
  26. bindsym $mod+j focus down
  27. bindsym $mod+k focus up
  28. bindsym $mod+l focus right
  29.  
  30. # move focused window
  31. bindsym $mod+Shift+h move left
  32. bindsym $mod+Shift+j move down
  33. bindsym $mod+Shift+k move up
  34. bindsym $mod+Shift+l move right
  35.  
  36. # split in horizontal orientation
  37. bindsym $mod+n split h
  38.  
  39. # split in vertical orientation
  40. bindsym $mod+v split v
  41.  
  42. # enter fullscreen mode for the focused container
  43. bindsym $mod+f fullscreen
  44.  
  45. # change container layout (stacked, tabbed, toggle split)
  46. bindsym $mod+s layout stacking
  47. bindsym $mod+w layout tabbed
  48. bindsym $mod+e layout toggle split
  49.  
  50. # toggle tiling / floating
  51. bindsym $mod+Shift+space floating toggle
  52.  
  53. # change focus between tiling / floating windows
  54. bindsym $mod+space focus mode_toggle
  55.  
  56. # border changing
  57. bindsym $mod+b border toggle
  58.  
  59. # switch to workspace
  60. bindsym $mod+1 workspace 1
  61. bindsym $mod+2 workspace 2
  62. bindsym $mod+3 workspace 3
  63. bindsym $mod+4 workspace 4
  64. bindsym $mod+5 workspace 5
  65. bindsym $mod+6 workspace 6
  66. bindsym $mod+7 workspace 7
  67. bindsym $mod+8 workspace 8
  68. bindsym $mod+9 workspace 9
  69. bindsym $mod+0 workspace 10
  70. bindsym $mod+m workspace m
  71. bindsym $mod+q workspace q
  72. bindsym $mod+a workspace a
  73. bindsym $mod+z workspace z
  74.  
  75. # workspaces from 11-20
  76. bindsym $mod+Control+1 workspace 11
  77. bindsym $mod+Control+2 workspace 12
  78. bindsym $mod+Control+3 workspace 13
  79. bindsym $mod+Control+4 workspace 14
  80. bindsym $mod+Control+5 workspace 15
  81. bindsym $mod+Control+6 workspace 16
  82. bindsym $mod+Control+7 workspace 17
  83. bindsym $mod+Control+8 workspace 18
  84. bindsym $mod+Control+9 workspace 19
  85. bindsym $mod+Control+0 workspace 20
  86.  
  87. # move focused container to workspace
  88. bindsym $mod+Shift+1 move container to workspace 1
  89. bindsym $mod+Shift+2 move container to workspace 2
  90. bindsym $mod+Shift+3 move container to workspace 3
  91. bindsym $mod+Shift+4 move container to workspace 4
  92. bindsym $mod+Shift+5 move container to workspace 5
  93. bindsym $mod+Shift+6 move container to workspace 6
  94. bindsym $mod+Shift+7 move container to workspace 7
  95. bindsym $mod+Shift+8 move container to workspace 8
  96. bindsym $mod+Shift+9 move container to workspace 9
  97. bindsym $mod+Shift+0 move container to workspace 10
  98. bindsym $mod+Shift+m move container to workspace m
  99. bindsym $mod+Shift+q move container to workspace q
  100. bindsym $mod+Shift+a move container to workspace a
  101. bindsym $mod+Shift+z move container to workspace z
  102.  
  103. bindsym $mod+Control+Shift+1 move container to workspace 11
  104. bindsym $mod+Control+Shift+2 move container to workspace 12
  105. bindsym $mod+Control+Shift+3 move container to workspace 13
  106. bindsym $mod+Control+Shift+4 move container to workspace 14
  107. bindsym $mod+Control+Shift+5 move container to workspace 15
  108. bindsym $mod+Control+Shift+6 move container to workspace 16
  109. bindsym $mod+Control+Shift+7 move container to workspace 17
  110. bindsym $mod+Control+Shift+8 move container to workspace 18
  111. bindsym $mod+Control+Shift+9 move container to workspace 19
  112. bindsym $mod+Control+Shift+0 move container to workspace 20
  113.  
  114. bindsym $mod+Tab workspace back_and_forth
  115. workspace_auto_back_and_forth yes
  116.  
  117. # reload the configuration file
  118. bindsym $mod+Shift+c reload
  119. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  120. bindsym $mod+Shift+r restart
  121. # exit i3 (logs you out of your X session)
  122. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  123.  
  124. # Start i3bar to display a workspace bar (plus the system information i3status
  125. # finds out, if available)
  126. bar {
  127. status_command i3status
  128. }
  129.  
  130. #borders
  131. #hide_edge_borders both
  132.  
  133. bindsym $mod+g border normal 0
  134.  
  135. for_window [class="urxvt"] border normal 0
  136. #for_window [class="urxvt"] title_format "haha"
  137. #for_window [class="writer"] normal 0 px
  138. #for_window [class="firefox"] border none
  139.  
  140. # Use keyboard volume change buttons to change volume with nice popup
  141. bindsym XF86AudioLowerVolume exec --no-startup-id volume_change down; exec --no-startup-id killall -USR1 i3status
  142. bindsym XF86AudioRaiseVolume exec --no-startup-id volume_change up; exec --no-startup-id killall -USR1 i3status
  143. bindsym XF86AudioMute exec --no-startup-id volume_change mute; exec --no-startup-id killall -USR1 i3status
  144.  
  145. # autostarts
  146. exec --no-startup-id nm-applet
  147. exec --no-startup-id volnoti
Advertisement
Add Comment
Please, Sign In to add comment