jmieszkowski

Untitled

Oct 30th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 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 https://i3wm.org/docs/userguide.html for a complete reference!
  11. #setting mod key to windows key
  12. set $mod Mod4
  13. #setting default terminal
  14. set $term termite
  15. #setting default browser
  16. set $browser firefox
  17. # Font for window titles. Will also be used by the bar unless a different font
  18. # is used in the bar {} block below.
  19. font pango:monospace 9
  20.  
  21. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  22. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  23. #font pango:DejaVu Sans Mono 8
  24.  
  25. # Before i3 v4.8, we used to recommend this one as the default:
  26. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  27. # The font above is very space-efficient, that is, it looks good, sharp and
  28. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  29. # X core fonts rendering does not support right-to-left and this being a bitmap
  30. # font, it doesn’t scale on retina/hidpi displays.
  31.  
  32. #Setting wallpaper
  33. exec feh --bg-scale /home/arch/Documents/wallpaper2.jpg
  34. #Starting compton
  35. exec compton -b --paint-on-overlay --config ~/.compton.conf
  36.  
  37.  
  38. #gaps between windows
  39. gaps inner 10
  40. gaps outer 5
  41. smart_gaps on
  42. # Use Mouse+$mod to drag floating windows to their wanted position
  43. floating_modifier $mod
  44.  
  45. # start a terminal
  46. bindsym $mod+Return exec termite #i3-sensible-terminal
  47.  
  48. # kill focused window
  49. bindsym $mod+Shift+q kill
  50.  
  51. # start dmenu (a program launcher)
  52. bindsym $mod+d exec j4-dmenu-desktop
  53. #dmenu_run
  54. # There also is the (new) i3-dmenu-desktop which only displays applications
  55. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  56. # installed.
  57. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  58.  
  59. # change focus
  60. bindsym $mod+j focus left
  61. bindsym $mod+k focus down
  62. bindsym $mod+l focus up
  63. bindsym $mod+semicolon focus right
  64.  
  65. # alternatively, you can use the cursor keys:
  66. bindsym $mod+Left focus left
  67. bindsym $mod+Down focus down
  68. bindsym $mod+Up focus up
  69. bindsym $mod+Right focus right
  70.  
  71. # move focused window
  72. bindsym $mod+Shift+j move left
  73. bindsym $mod+Shift+k move down
  74. bindsym $mod+Shift+l move up
  75. bindsym $mod+Shift+semicolon move right
  76.  
  77. # alternatively, you can use the cursor keys:
  78. bindsym $mod+Shift+Left move left
  79. bindsym $mod+Shift+Down move down
  80. bindsym $mod+Shift+Up move up
  81. bindsym $mod+Shift+Right move right
  82.  
  83. # split in horizontal orientation
  84. bindsym $mod+h split h
  85.  
  86. # split in vertical orientation
  87. bindsym $mod+v split v
  88.  
  89. # enter fullscreen mode for the focused container
  90. bindsym $mod+f fullscreen toggle
  91.  
  92. # change container layout (stacked, tabbed, toggle split)
  93. bindsym $mod+s layout stacking
  94. bindsym $mod+w layout tabbed
  95. bindsym $mod+e layout toggle split
  96.  
  97. # toggle tiling / floating
  98. bindsym $mod+Shift+space floating toggle
  99.  
  100. # change focus between tiling / floating windows
  101. bindsym $mod+space focus mode_toggle
  102.  
  103. # focus the parent container
  104. bindsym $mod+a focus parent
  105.  
  106. # focus the child container
  107. #bindsym $mod+d focus child
  108.  
  109. # Define names for default workspaces for which we configure key bindings later on.
  110. # We use variables to avoid repeating the names in multiple places.
  111. set $ws1 "1"
  112. set $ws2 "2"
  113. set $ws3 "3"
  114. set $ws4 "4"
  115. set $ws5 "5"
  116. set $ws6 "6"
  117. set $ws7 "7"
  118. set $ws8 "8"
  119. set $ws9 "9"
  120. set $ws10 "10"
  121.  
  122. # switch to workspace
  123. bindsym $mod+1 workspace $ws1
  124. bindsym $mod+2 workspace $ws2
  125. bindsym $mod+3 workspace $ws3
  126. bindsym $mod+4 workspace $ws4
  127. bindsym $mod+5 workspace $ws5
  128. bindsym $mod+6 workspace $ws6
  129. bindsym $mod+7 workspace $ws7
  130. bindsym $mod+8 workspace $ws8
  131. bindsym $mod+9 workspace $ws9
  132. bindsym $mod+0 workspace $ws10
  133.  
  134. # move focused container to workspace
  135. bindsym $mod+Shift+1 move container to workspace $ws1
  136. bindsym $mod+Shift+2 move container to workspace $ws2
  137. bindsym $mod+Shift+3 move container to workspace $ws3
  138. bindsym $mod+Shift+4 move container to workspace $ws4
  139. bindsym $mod+Shift+5 move container to workspace $ws5
  140. bindsym $mod+Shift+6 move container to workspace $ws6
  141. bindsym $mod+Shift+7 move container to workspace $ws7
  142. bindsym $mod+Shift+8 move container to workspace $ws8
  143. bindsym $mod+Shift+9 move container to workspace $ws9
  144. bindsym $mod+Shift+0 move container to workspace $ws10
  145.  
  146. # reload the configuration file
  147. bindsym $mod+Shift+c reload
  148. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  149. bindsym $mod+Shift+r restart
  150. # exit i3 (logs you out of your X session)
  151. 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'"
  152.  
  153. #change gaps in real time
  154. bindsym $mod+Shift+z gaps outer current plus 5
  155. bindsym $mod+Shift+x gaps outer current minus 5
  156. #restore gaps to default
  157. bindsym $mod+Shift+d gaps inner all set 10; gaps outer all set 10
  158. #open browser
  159. bindsym $mod+i exec $browser
  160. #icreasing and decreasing brightness with xbacklight
  161. bindsym XF86MonBrightnessUp exec xbacklight -inc 10
  162. bindsym XF86MonBrightnessDown exec xbacklight -dec 10
  163. #increasing and decreasing volume with pamixer
  164. bindsym XF86AudioRaiseVolume exec pamixer -i 5
  165. bindsym XF86AudioLowerVolume exec pamixer -d 5
  166. #mute on or mute off with pamixer
  167. bindsym XF86AudioMute exec pamixer -t
  168. #resizing windows without resize mode
  169. bindsym $mod+Shift+y resize shrink width 10 px or 10 ppt
  170. bindsym $mod+Shift+u resize shrink height 10 px or 10 ppt
  171. bindsym $mod+Shift+i resize grow width 10 px or 10 ppt
  172. bindsym $mod+Shift+o resize grow height 10 px or 10 ppt
  173. #opening ranger - file manager
  174. bindsym $mod+Shift+f exec termite -e ranger
  175. # resize window (you can also use the mouse for that)
  176. mode "resize" {
  177. # These bindings trigger as soon as you enter the resize mode
  178.  
  179. # Pressing left will shrink the window’s width.
  180. # Pressing right will grow the window’s width.
  181. # Pressing up will shrink the window’s height.
  182. # Pressing down will grow the window’s height.
  183. bindsym j resize shrink width 10 px or 10 ppt
  184. bindsym k resize grow height 10 px or 10 ppt
  185. bindsym l resize shrink height 10 px or 10 ppt
  186. bindsym semicolon resize grow width 10 px or 10 ppt
  187.  
  188. # same bindings, but for the arrow keys
  189. bindsym Left resize shrink width 10 px or 10 ppt
  190. bindsym Down resize grow height 10 px or 10 ppt
  191. bindsym Up resize shrink height 10 px or 10 ppt
  192. bindsym Right resize grow width 10 px or 10 ppt
  193.  
  194. # back to normal: Enter or Escape or $mod+r
  195. bindsym Return mode "default"
  196. bindsym Escape mode "default"
  197. bindsym $mod+r mode "default"
  198. }
  199.  
  200. bindsym $mod+r mode "resize"
  201.  
  202. # Start i3bar to display a workspace bar (plus the system information i3status
  203. # finds out, if available)
  204. bar {
  205. status_command i3status
  206. }
Advertisement
Add Comment
Please, Sign In to add comment