Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. # i3 config file (v4)
  2. #
  3. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  4. set $mod Mod4
  5.  
  6. # Disable window titles
  7. for_window [class="^.*"] border pixel 0
  8.  
  9. # i3-gaps
  10. gaps inner 10
  11.  
  12. # Set transparency
  13. bindsym $mod+z exec --no-startup-id transset-df -a 0.85
  14. bindsym $mod+shift+z exec --no-startup-id transset-df -a 1
  15.  
  16. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  17. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  18. font pango:DejaVu Sans Mono 9
  19.  
  20. # start a terminal
  21. # bindsym $mod+Return exec i3-sensible-terminal
  22. bindsym $mod+Return exec /home/user/.i3-terminal
  23.  
  24. # Use Mouse+$mod to drag floating windows to their wanted position
  25. floating_modifier $mod
  26.  
  27. # kill focused window
  28. bindsym $mod+Shift+q kill
  29.  
  30. # start dmenu (a program launcher)
  31. bindsym $mod+d exec dmenu_run
  32. # There also is the (new) i3-dmenu-desktop which only displays applications
  33. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  34. # installed.
  35. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  36.  
  37. # change focus
  38. bindsym $mod+j focus left
  39. bindsym $mod+k focus down
  40. bindsym $mod+l focus up
  41. bindsym $mod+semicolon focus right
  42.  
  43. # alternatively, you can use the cursor keys:
  44. bindsym $mod+Left focus left
  45. bindsym $mod+Down focus down
  46. bindsym $mod+Up focus up
  47. bindsym $mod+Right focus right
  48.  
  49. # move focused window
  50. bindsym $mod+Shift+j move left
  51. bindsym $mod+Shift+k move down
  52. bindsym $mod+Shift+l move up
  53. bindsym $mod+Shift+semicolon move right
  54.  
  55. # alternatively, you can use the cursor keys:
  56. bindsym $mod+Shift+Left move left
  57. bindsym $mod+Shift+Down move down
  58. bindsym $mod+Shift+Up move up
  59. bindsym $mod+Shift+Right move right
  60.  
  61. # split in horizontal orientation
  62. bindsym $mod+h split h
  63.  
  64. # split in vertical orientation
  65. bindsym $mod+v split v
  66.  
  67. # enter fullscreen mode for the focused container
  68. bindsym $mod+f fullscreen toggle
  69.  
  70. # change container layout (stacked, tabbed, toggle split)
  71. bindsym $mod+s layout stacking
  72. bindsym $mod+w layout tabbed
  73. bindsym $mod+e layout toggle split
  74.  
  75. # toggle tiling / floating
  76. bindsym $mod+Shift+space floating toggle
  77.  
  78. # change focus between tiling / floating windows
  79. bindsym $mod+space focus mode_toggle
  80.  
  81. # focus the parent container
  82. bindsym $mod+a focus parent
  83.  
  84. # focus the child container
  85. #bindsym $mod+d focus child
  86.  
  87. # Define names for default workspaces for which we configure key bindings later on.
  88. # We use variables to avoid repeating the names in multiple places.
  89. set $ws1 "1"
  90. set $ws2 "2"
  91. set $ws3 "3"
  92. set $ws4 "4"
  93. set $ws5 "5"
  94. set $ws6 "6"
  95. set $ws7 "7"
  96. set $ws8 "8"
  97. set $ws9 "9"
  98. set $ws10 "10"
  99.  
  100. # switch to workspace
  101. bindsym $mod+1 workspace $ws1
  102. bindsym $mod+2 workspace $ws2
  103. bindsym $mod+3 workspace $ws3
  104. bindsym $mod+4 workspace $ws4
  105. bindsym $mod+5 workspace $ws5
  106. bindsym $mod+6 workspace $ws6
  107. bindsym $mod+7 workspace $ws7
  108. bindsym $mod+8 workspace $ws8
  109. bindsym $mod+9 workspace $ws9
  110. bindsym $mod+0 workspace $ws10
  111.  
  112. # move focused container to workspace
  113. bindsym $mod+Shift+1 move container to workspace $ws1
  114. bindsym $mod+Shift+2 move container to workspace $ws2
  115. bindsym $mod+Shift+3 move container to workspace $ws3
  116. bindsym $mod+Shift+4 move container to workspace $ws4
  117. bindsym $mod+Shift+5 move container to workspace $ws5
  118. bindsym $mod+Shift+6 move container to workspace $ws6
  119. bindsym $mod+Shift+7 move container to workspace $ws7
  120. bindsym $mod+Shift+8 move container to workspace $ws8
  121. bindsym $mod+Shift+9 move container to workspace $ws9
  122. bindsym $mod+Shift+0 move container to workspace $ws10
  123.  
  124. # reload the configuration file
  125. bindsym $mod+Shift+c reload
  126. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  127. bindsym $mod+Shift+r restart
  128. # exit i3 (logs you out of your X session)
  129. 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'"
  130.  
  131. # resize window (you can also use the mouse for that)
  132. mode "resize" {
  133. # These bindings trigger as soon as you enter the resize mode
  134.  
  135. # Pressing left will shrink the window’s width.
  136. # Pressing right will grow the window’s width.
  137. # Pressing up will shrink the window’s height.
  138. # Pressing down will grow the window’s height.
  139. bindsym j resize shrink width 10 px or 10 ppt
  140. bindsym k resize grow height 10 px or 10 ppt
  141. bindsym l resize shrink height 10 px or 10 ppt
  142. bindsym semicolon resize grow width 10 px or 10 ppt
  143.  
  144. # same bindings, but for the arrow keys
  145. bindsym Left resize shrink width 10 px or 10 ppt
  146. bindsym Down resize grow height 10 px or 10 ppt
  147. bindsym Up resize shrink height 10 px or 10 ppt
  148. bindsym Right resize grow width 10 px or 10 ppt
  149.  
  150. # back to normal: Enter or Escape or $mod+r
  151. bindsym Return mode "default"
  152. bindsym Escape mode "default"
  153. bindsym $mod+r mode "default"
  154. }
  155.  
  156. bindsym $mod+r mode "resize"
  157.  
  158. # Start i3bar to display a workspace bar (plus the system information i3status
  159. # finds out, if available)
  160. bar {
  161. status_command i3status
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement