Guest User

Untitled

a guest
Jun 24th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. font pango:monospace 8
  4.  
  5. floating_modifier $mod
  6.  
  7. for_window [class="^.*$"] border pixel 0
  8. new_window pixel 0
  9. gaps inner 14
  10.  
  11. # start a terminal
  12. bindsym $mod+Return exec alacritty
  13.  
  14. # kill focused window
  15. bindsym $mod+Shift+q kill
  16.  
  17. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  18.  
  19. # change focus
  20. bindsym $mod+j focus left
  21. bindsym $mod+k focus down
  22. bindsym $mod+l focus up
  23. bindsym $mod+semicolon focus right
  24.  
  25. # alternatively, you can use the cursor keys:
  26. bindsym $mod+Left focus left
  27. bindsym $mod+Down focus down
  28. bindsym $mod+Up focus up
  29. bindsym $mod+Right focus right
  30.  
  31. # move focused window
  32. bindsym $mod+Shift+j move left
  33. bindsym $mod+Shift+k move down
  34. bindsym $mod+Shift+l move up
  35. bindsym $mod+Shift+semicolon move right
  36.  
  37. # alternatively, you can use the cursor keys:
  38. bindsym $mod+Shift+Left move left
  39. bindsym $mod+Shift+Down move down
  40. bindsym $mod+Shift+Up move up
  41. bindsym $mod+Shift+Right move right
  42.  
  43. # split in horizontal orientation
  44. bindsym $mod+h split h
  45.  
  46. # split in vertical orientation
  47. bindsym $mod+v split v
  48.  
  49. # enter fullscreen mode for the focused container
  50. bindsym $mod+f fullscreen toggle
  51.  
  52. # change container layout (stacked, tabbed, toggle split)
  53. bindsym $mod+s layout stacking
  54. bindsym $mod+w layout tabbed
  55. bindsym $mod+e layout toggle split
  56.  
  57. # toggle tiling / floating
  58. bindsym $mod+Shift+space floating toggle
  59.  
  60. # change focus between tiling / floating windows
  61. bindsym $mod+space focus mode_toggle
  62.  
  63. # focus the parent container
  64. bindsym $mod+a focus parent
  65.  
  66. # focus the child container
  67. #bindsym $mod+d focus child
  68.  
  69. # Define names for default workspaces for which we configure key bindings later on.
  70. # We use variables to avoid repeating the names in multiple places.
  71. set $ws1 "1"
  72. set $ws2 "2"
  73. set $ws3 "3"
  74. set $ws4 "4"
  75. set $ws5 "5"
  76. set $ws6 "6"
  77. set $ws7 "7"
  78. set $ws8 "8"
  79. set $ws9 "9"
  80. set $ws10 "10"
  81.  
  82. # switch to workspace
  83. bindsym $mod+1 workspace $ws1
  84. bindsym $mod+2 workspace $ws2
  85. bindsym $mod+3 workspace $ws3
  86. bindsym $mod+4 workspace $ws4
  87. bindsym $mod+5 workspace $ws5
  88. bindsym $mod+6 workspace $ws6
  89. bindsym $mod+7 workspace $ws7
  90. bindsym $mod+8 workspace $ws8
  91. bindsym $mod+9 workspace $ws9
  92. bindsym $mod+0 workspace $ws10
  93.  
  94. # move focused container to workspace
  95. bindsym $mod+Shift+1 move container to workspace $ws1
  96. bindsym $mod+Shift+2 move container to workspace $ws2
  97. bindsym $mod+Shift+3 move container to workspace $ws3
  98. bindsym $mod+Shift+4 move container to workspace $ws4
  99. bindsym $mod+Shift+5 move container to workspace $ws5
  100. bindsym $mod+Shift+6 move container to workspace $ws6
  101. bindsym $mod+Shift+7 move container to workspace $ws7
  102. bindsym $mod+Shift+8 move container to workspace $ws8
  103. bindsym $mod+Shift+9 move container to workspace $ws9
  104. bindsym $mod+Shift+0 move container to workspace $ws10
  105.  
  106. # reload the configuration file
  107. bindsym $mod+Shift+c reload
  108. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  109. bindsym $mod+Shift+r restart
  110. # exit i3 (logs you out of your X session)
  111. bindsym $mod+Shift+e exec "mate-session-save --logout-dialog"
  112.  
  113. # resize window (you can also use the mouse for that)
  114. mode "resize" {
  115. # These bindings trigger as soon as you enter the resize mode
  116.  
  117. # Pressing left will shrink the window’s width.
  118. # Pressing right will grow the window’s width.
  119. # Pressing up will shrink the window’s height.
  120. # Pressing down will grow the window’s height.
  121. bindsym j resize shrink width 10 px or 10 ppt
  122. bindsym k resize grow height 10 px or 10 ppt
  123. bindsym l resize shrink height 10 px or 10 ppt
  124. bindsym semicolon resize grow width 10 px or 10 ppt
  125.  
  126. # same bindings, but for the arrow keys
  127. bindsym Left resize shrink width 10 px or 10 ppt
  128. bindsym Down resize grow height 10 px or 10 ppt
  129. bindsym Up resize shrink height 10 px or 10 ppt
  130. bindsym Right resize grow width 10 px or 10 ppt
  131.  
  132. # back to normal: Enter or Escape or $mod+r
  133. bindsym Return mode "default"
  134. bindsym Escape mode "default"
  135. bindsym $mod+r mode "default"
  136. }
  137.  
  138. bindsym $mod+r mode "resize"
  139.  
  140. # Start i3bar to display a workspace bar (plus the system information i3status
  141. # finds out, if available)
  142. bar {
  143. status_command i3status
  144. position top
  145. }
Add Comment
Please, Sign In to add comment