globetrotterdk

i3config

May 1st, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.07 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 somewhen, 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 Mod4
  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. ISO 10646 = Unicode
  16. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  17. # The font above is very space-efficient, that is, it looks good, sharp and
  18. # clear in small sizes. However, if you need a lot of unicode glyphs or
  19. # right-to-left text rendering, you should instead use pango for rendering and
  20. # chose a FreeType font, such as:
  21. # font pango:DejaVu Sans Mono 10
  22.  
  23. # Use Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25.  
  26. #floating always
  27. for_window [class="Gmrun"] floating enable
  28.  
  29.  
  30. # start a terminal
  31. bindsym $mod+Return exec mate-terminal
  32.  
  33. # kill focused window
  34. bindsym $mod+Shift+q kill
  35.  
  36. # start dmenu (a program launcher)
  37. bindsym $mod+d exec dmenu_run -fn '40x50' -i -nb '#000000' -nf '#FFFFFF' -sb '#8DC7E0' -sf '#000000'
  38. # There also is the (new) i3-dmenu-desktop which only displays applications
  39. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  40. # installed.
  41. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  42.  
  43. # Apps and settings
  44. bindsym $mod+b exec /usr/bin/vivaldi-stable
  45. bindsym $mod+l exec i3lock -c 111111
  46. bindsym $mod+f exec caja --no-desktop --browser
  47. bindsym $mod+Shift+f exec gksu caja --no-desktop --browser
  48. bindsym $mod+g exec gmrun
  49. bindsym $mod+F9 exec synclient TouchPadOff=1
  50. bindsym $mod+F10 exec synclient TouchPadOff=0
  51.  
  52.  
  53. #scratchpad
  54. bindsym $mod+Shift+minus move scratchpad
  55. bindsym $mod+minus scratchpad show
  56.  
  57.  
  58. # startup apps
  59. exec --no-startup-id nm-applet
  60. exec --no-startup-id tilda floating enable
  61. exec --no-startup-id clipit
  62. exec --no-startup-id synapse -s
  63. exec --no-startup-id caja-dropbox start -i
  64. exec --no-startup-id insync start
  65. exec --no-startup-id megasync start
  66. exec --no-startup-id feh --bg-scale /usr/share/backgrounds/mate/nature/Dune.jpg
  67. exec --no-startup-id xfce4-power-manager
  68.  
  69. # change focus
  70. # bindsym $mod+j focus left
  71. # bindsym $mod+k focus down
  72. # bindsym $mod+l focus up
  73. # bindsym $mod+semicolon focus right
  74.  
  75. # alternatively, you can use the cursor keys:
  76. bindsym $mod+Left focus left
  77. bindsym $mod+Down focus down
  78. bindsym $mod+Up focus up
  79. bindsym $mod+Right focus right
  80.  
  81. # move focused window
  82. bindsym $mod+Shift+j move left
  83. bindsym $mod+Shift+k move down
  84. bindsym $mod+Shift+l move up
  85. bindsym $mod+Shift+semicolon move right
  86.  
  87. # alternatively, you can use the cursor keys:
  88. bindsym $mod+Shift+Left move left
  89. bindsym $mod+Shift+Down move down
  90. bindsym $mod+Shift+Up move up
  91. bindsym $mod+Shift+Right move right
  92.  
  93. # split in horizontal orientation
  94. bindsym $mod+v split h
  95.  
  96. # split in vertical orientation
  97. bindsym $mod+h split v
  98.  
  99. # enter fullscreen mode for the focused container
  100. # bindsym $mod+f fullscreen
  101.  
  102. # change container layout (stacked, tabbed, toggle split)
  103. bindsym $mod+s layout stacking
  104. bindsym $mod+w layout tabbed
  105. bindsym $mod+e layout toggle split
  106.  
  107. # toggle tiling / floating
  108. bindsym $mod+Shift+space floating toggle
  109.  
  110. # change focus between tiling / floating windows
  111. bindsym $mod+space focus mode_toggle
  112.  
  113. # focus the parent container
  114. bindsym $mod+a focus parent
  115.  
  116. # focus the child container
  117. #bindsym $mod+d focus child
  118.  
  119. # switch to workspace
  120. bindsym $mod+1 workspace 1
  121. bindsym $mod+2 workspace 2
  122. bindsym $mod+3 workspace 3
  123. bindsym $mod+4 workspace 4
  124. bindsym $mod+5 workspace 5
  125. bindsym $mod+6 workspace 6
  126. bindsym $mod+7 workspace 7
  127. bindsym $mod+8 workspace 8
  128. bindsym $mod+9 workspace 9
  129. bindsym $mod+0 workspace 10
  130.  
  131. # move focused container to workspace
  132. bindsym $mod+Shift+1 move container to workspace 1
  133. bindsym $mod+Shift+2 move container to workspace 2
  134. bindsym $mod+Shift+3 move container to workspace 3
  135. bindsym $mod+Shift+4 move container to workspace 4
  136. bindsym $mod+Shift+5 move container to workspace 5
  137. bindsym $mod+Shift+6 move container to workspace 6
  138. bindsym $mod+Shift+7 move container to workspace 7
  139. bindsym $mod+Shift+8 move container to workspace 8
  140. bindsym $mod+Shift+9 move container to workspace 9
  141. bindsym $mod+Shift+0 move container to workspace 10
  142.  
  143. # reload the configuration file
  144. bindsym $mod+Shift+c reload
  145. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  146. bindsym $mod+Shift+r restart
  147. # exit i3 (logs you out of your X session)
  148. bindsym $mod+Shift+e exec i3-msg exit # "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'"
  149.  
  150. #shutdown immediately - no warnings...
  151. bindsym $mod+Shift+p exec systemctl poweroff
  152.  
  153. # resize window (you can also use the mouse for that)
  154. mode "resize" {
  155. # These bindings trigger as soon as you enter the resize mode
  156.  
  157. # Pressing left will shrink the window’s width.
  158. # Pressing right will grow the window’s width.
  159. # Pressing up will shrink the window’s height.
  160. # Pressing down will grow the window’s height.
  161. bindsym j resize shrink width 10 px or 10 ppt
  162. bindsym k resize grow height 10 px or 10 ppt
  163. bindsym l resize shrink height 10 px or 10 ppt
  164. bindsym semicolon resize grow width 10 px or 10 ppt
  165.  
  166. # same bindings, but for the arrow keys
  167. bindsym Left resize shrink width 10 px or 10 ppt
  168. bindsym Down resize grow height 10 px or 10 ppt
  169. bindsym Up resize shrink height 10 px or 10 ppt
  170. bindsym Right resize grow width 10 px or 10 ppt
  171.  
  172. # back to normal: Enter or Escape
  173. bindsym Return mode "default"
  174. bindsym Escape mode "default"
  175. }
  176.  
  177. bindsym $mod+r mode "resize"
  178.  
  179. # Start i3bar to display a workspace bar (plus the system information i3status
  180. # finds out, if available)
  181. bar {
  182. status_command i3blocks
  183. }
  184.  
  185. bindsym $mod+shift+x exec i3lock
Add Comment
Please, Sign In to add comment