Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.56 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.  
  12.  
  13. set $mod Mod4
  14.  
  15. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  16. new_window pixel 0
  17. new_float normal
  18.  
  19. #border_radius 1
  20. #border_radius 20
  21.  
  22. #for_window [class="^.*"] border pixel 0
  23.  
  24. # Hide borders
  25. hide_edge_borders none
  26.  
  27. # Font for window titles. Will also be used by the bar unless a different font
  28. # is used in the bar {} block below.
  29. font xft:URWGothic-Book 11
  30.  
  31. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  32. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  33. #font pango:DejaVu Sans Mono 8
  34.  
  35. # Before i3 v4.8, we used to recommend this one as the default:
  36. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  37. # The font above is very space-efficient, that is, it looks good, sharp and
  38. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  39. # X core fonts rendering does not support right-to-left and this being a bitmap
  40. # font, it doesn’t scale on retina/hidpi displays.
  41.  
  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
  47.  
  48. # kill focused window
  49. bindsym $mod+Shift+q kill
  50.  
  51. # start dmenu (a program launcher)
  52. bindsym $mod+d exec rofi -show run -show-icons -sidebar-mode -lines 3 -eh 2 -width 20 -opacity "85" -padding 10 -bw 0 -bc "#261F3E" -bg "#261F3E" -fg "$text-color" -hlbg "#261F3E" -hlfg "#9575cd" -font "System San Francisco Display 18"
  53. # There also is the (new) i3-dmenu-desktop which only displays applications
  54. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  55. # installed.
  56. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  57.  
  58. # Start Applications
  59. bindsym $mod+F2 exec chromium
  60. bindsym $mod+F3 exec pcmanfm
  61. bindsym $mod+t exec --no-startup-id pkill compton
  62. bindsym $mod+Ctrl+t exec --no-startup-id compton -b
  63. bindsym $mod+Shift+s --release exec --no-startup-id gnome-screenshot -a
  64. bindsym Print exec --no-startup-id i3-scrot
  65. bindsym $mod+Print --release exec --no-startup-id scrot -s -e 'mv $f /tmp/ && feh $wx$h /tmp/$f && rm /tmp/$f'
  66. bindsym $mod+Shift+Print --release exec --no-startup-id i3-scrot -s
  67.  
  68. # change focus
  69. bindsym $mod+j focus left
  70. bindsym $mod+k focus down
  71. bindsym $mod+l focus up
  72. bindsym $mod+semicolon focus right
  73.  
  74. # alternatively, you can use the cursor keys:
  75. bindsym $mod+Left focus left
  76. bindsym $mod+Down focus down
  77. bindsym $mod+Up focus up
  78. bindsym $mod+Right focus right
  79.  
  80. # move focused window
  81. bindsym $mod+Shift+j move left
  82. bindsym $mod+Shift+k move down
  83. bindsym $mod+Shift+l move up
  84. bindsym $mod+Shift+semicolon move right
  85.  
  86. # alternatively, you can use the cursor keys:
  87. bindsym $mod+Shift+Left move left
  88. bindsym $mod+Shift+Down move down
  89. bindsym $mod+Shift+Up move up
  90. bindsym $mod+Shift+Right move right
  91.  
  92. # split in horizontal orientation
  93. bindsym $mod+h split h
  94.  
  95. # split in vertical orientation
  96. bindsym $mod+v split v
  97.  
  98. # enter fullscreen mode for the focused container
  99. bindsym $mod+f fullscreen toggle
  100.  
  101. # change container layout (stacked, tabbed, toggle split)
  102. bindsym $mod+s layout stacking
  103. bindsym $mod+w layout tabbed
  104. bindsym $mod+e layout toggle split
  105.  
  106. # toggle tiling / floating
  107. bindsym $mod+Shift+space floating toggle
  108.  
  109. # change focus between tiling / floating windows
  110. bindsym $mod+space focus mode_toggle
  111.  
  112. # focus the parent container
  113. bindsym $mod+a focus parent
  114.  
  115. # focus the child container
  116. #bindsym $mod+d focus child
  117.  
  118. #navigate workspaces next / previous
  119. bindsym $mod+Ctrl+Right workspace next
  120. bindsym $mod+Ctrl+Left workspace prev
  121.  
  122. # Define names for default workspaces for which we configure key bindings later on.
  123. # We use variables to avoid repeating the names in multiple places.
  124. set $ws1 "1"
  125. set $ws2 "2"
  126. set $ws3 "3"
  127. set $ws4 "4"
  128. set $ws5 "5"
  129. set $ws6 "6"
  130. set $ws7 "7"
  131. set $ws8 "8"
  132. set $ws9 "9"
  133. set $ws10 "10"
  134.  
  135. # switch to workspace
  136. bindsym $mod+1 workspace $ws1
  137. bindsym $mod+2 workspace $ws2
  138. bindsym $mod+3 workspace $ws3
  139. bindsym $mod+4 workspace $ws4
  140. bindsym $mod+5 workspace $ws5
  141. bindsym $mod+6 workspace $ws6
  142. bindsym $mod+7 workspace $ws7
  143. bindsym $mod+8 workspace $ws8
  144. bindsym $mod+9 workspace $ws9
  145.  
  146. # move focused container to workspace
  147. bindsym $mod+Ctrl+1 move container to workspace $ws1
  148. bindsym $mod+Ctrl+2 move container to workspace $ws2
  149. bindsym $mod+Ctrl+3 move container to workspace $ws3
  150. bindsym $mod+Ctrl+4 move container to workspace $ws4
  151. bindsym $mod+Ctrl+5 move container to workspace $ws5
  152. bindsym $mod+Ctrl+6 move container to workspace $ws6
  153. bindsym $mod+Ctrl+7 move container to workspace $ws7
  154. bindsym $mod+Ctrl+8 move container to workspace $ws8
  155. bindsym $mod+Ctrl+9 move container to workspace $ws9
  156.  
  157. # Move to workspace with focused container
  158. bindsym $mod+Shift+1 move container to workspace $ws1; workspace $ws1
  159. bindsym $mod+Shift+2 move container to workspace $ws2; workspace $ws2
  160. bindsym $mod+Shift+3 move container to workspace $ws3; workspace $ws3
  161. bindsym $mod+Shift+4 move container to workspace $ws4; workspace $ws4
  162. bindsym $mod+Shift+5 move container to workspace $ws5; workspace $ws5
  163. bindsym $mod+Shift+6 move container to workspace $ws6; workspace $ws6
  164. bindsym $mod+Shift+7 move container to workspace $ws7; workspace $ws7
  165. bindsym $mod+Shift+8 move container to workspace $ws8; workspace $ws8
  166.  
  167. # Open specific applications in floating mode
  168. for_window [class="feh"] floating enable border pixel 1
  169. for_window [class="termite"] floating enable border pixel 1
  170.  
  171. # reload the configuration file
  172. bindsym $mod+Shift+c reload
  173. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  174. bindsym $mod+Shift+r restart
  175. # exit i3 (logs you out of your X session)
  176. 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'"
  177.  
  178. # Set shut down, restart and locking features
  179. # bindsym $mod+0 mode "$mode_system"
  180. # set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  181. # mode "$mode_system" {
  182. # bindsym l exec --no-startup-id i3exit lock, mode "default"
  183. # bindsym s exec --no-startup-id i3exit suspend, mode "default"
  184. # bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  185. # bindsym e exec --no-startup-id i3exit logout, mode "default"
  186. # bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  187. # bindsym r exec --no-startup-id i3exit reboot, mode "default"
  188. # bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  189.  
  190. # # exit system mode: "Enter" or "Escape"
  191. # bindsym Return mode "default"
  192. # bindsym Escape mode "default"
  193. # }
  194.  
  195. # resize window (you can also use the mouse for that)
  196. mode "resize" {
  197. # These bindings trigger as soon as you enter the resize mode
  198.  
  199. # Pressing left will shrink the window’s width.
  200. # Pressing right will grow the window’s width.
  201. # Pressing up will shrink the window’s height.
  202. # Pressing down will grow the window’s height.
  203. bindsym j resize shrink width 10 px or 10 ppt
  204. bindsym k resize grow height 10 px or 10 ppt
  205. bindsym l resize shrink height 10 px or 10 ppt
  206. bindsym semicolon resize grow width 10 px or 10 ppt
  207.  
  208. # same bindings, but for the arrow keys
  209. bindsym Left resize shrink width 10 px or 10 ppt
  210. bindsym Down resize grow height 10 px or 10 ppt
  211. bindsym Up resize shrink height 10 px or 10 ppt
  212. bindsym Right resize grow width 10 px or 10 ppt
  213.  
  214. # back to normal: Enter or Escape or $mod+r
  215. bindsym Return mode "default"
  216. bindsym Escape mode "default"
  217. bindsym $mod+r mode "default"
  218. }
  219.  
  220.  
  221. # Autostart applications
  222. exec --no-startup-id compton
  223. exec --no-startup-id xbanish
  224. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  225. exec --no-startup-id ~/Scripts/feh-blur -d
  226.  
  227. bindsym $mod+r mode "resize"
  228.  
  229. # Start i3bar to display a workspace bar (plus the system information i3status
  230. # finds out, if available)
  231.  
  232. # hide/unhide i3status bar
  233. bindsym $mod+m bar mode toggle
  234.  
  235. #############################
  236. ### settings for i3-gaps: ###
  237. #############################
  238.  
  239. # Set inner/outer gaps
  240. #gaps inner 14
  241. #gaps outer -2
  242. gaps inner 30
  243. gaps outer -10
  244.  
  245. # smart_gaps on
  246. smart_borders on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement