Advertisement
Guest User

Untitled

a guest
Dec 4th, 2018
1,015
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.23 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. 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.
  16. font pango:monospace 15
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # Use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. # start a terminal
  33. bindsym $mod+Return exec i3-sensible-terminal
  34.  
  35. # kill focused window
  36. bindsym $mod+Shift+q kill
  37.  
  38. # start rofi (a program launcher)
  39. bindsym $mod+d exec rofi -show run
  40. # There also is the (new) i3-dmenu-desktop which only displays applications
  41. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  42. # installed.
  43. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  44.  
  45. # change focus
  46. bindsym $mod+j focus left
  47. bindsym $mod+k focus down
  48. bindsym $mod+l focus up
  49. bindsym $mod+semicolon focus right
  50.  
  51. # alternatively, you can use the cursor keys:
  52. bindsym $mod+Left focus left
  53. bindsym $mod+Down focus down
  54. bindsym $mod+Up focus up
  55. bindsym $mod+Right focus right
  56.  
  57. # move focused window
  58. bindsym $mod+Shift+j move left
  59. bindsym $mod+Shift+k move down
  60. bindsym $mod+Shift+l move up
  61. bindsym $mod+Shift+semicolon move right
  62.  
  63. # alternatively, you can use the cursor keys:
  64. bindsym $mod+Shift+Left move left
  65. bindsym $mod+Shift+Down move down
  66. bindsym $mod+Shift+Up move up
  67. bindsym $mod+Shift+Right move right
  68.  
  69. # split in horizontal orientation
  70. bindsym $mod+h split h
  71.  
  72. # split in vertical orientation
  73. bindsym $mod+v split v
  74.  
  75. # enter fullscreen mode for the focused container
  76. bindsym $mod+f fullscreen toggle
  77.  
  78. # change container layout (stacked, tabbed, toggle split)
  79. bindsym $mod+s layout stacking
  80. bindsym $mod+w layout tabbed
  81. bindsym $mod+e layout toggle split
  82.  
  83. # toggle tiling / floating
  84. bindsym $mod+Shift+space floating toggle
  85.  
  86. # change focus between tiling / floating windows
  87. bindsym $mod+space focus mode_toggle
  88.  
  89. # focus the parent container
  90. bindsym $mod+a focus parent
  91.  
  92. # focus the child container
  93. #bindsym $mod+d focus child
  94.  
  95. # Define names for default workspaces for which we configure key bindings later on.
  96. # We use variables to avoid repeating the names in multiple places.
  97. set $ws1 "1"
  98. set $ws2 "2"
  99. set $ws3 "3"
  100. set $ws4 "4"
  101. set $ws5 "5"
  102. set $ws6 "6"
  103. set $ws7 "7"
  104. set $ws8 "8"
  105. set $ws9 "9"
  106. set $ws10 ""
  107.  
  108. # switch to workspace
  109. bindsym $mod+1 workspace $ws1
  110. bindsym $mod+2 workspace $ws2
  111. bindsym $mod+3 workspace $ws3
  112. bindsym $mod+4 workspace $ws4
  113. bindsym $mod+5 workspace $ws5
  114. bindsym $mod+6 workspace $ws6
  115. bindsym $mod+7 workspace $ws7
  116. bindsym $mod+8 workspace $ws8
  117. bindsym $mod+9 workspace $ws9
  118. bindsym $mod+0 workspace $ws10
  119.  
  120. # move focused container to workspace
  121. bindsym $mod+Shift+1 move container to workspace $ws1
  122. bindsym $mod+Shift+2 move container to workspace $ws2
  123. bindsym $mod+Shift+3 move container to workspace $ws3
  124. bindsym $mod+Shift+4 move container to workspace $ws4
  125. bindsym $mod+Shift+5 move container to workspace $ws5
  126. bindsym $mod+Shift+6 move container to workspace $ws6
  127. bindsym $mod+Shift+7 move container to workspace $ws7
  128. bindsym $mod+Shift+8 move container to workspace $ws8
  129. bindsym $mod+Shift+9 move container to workspace $ws9
  130. bindsym $mod+Shift+0 move container to workspace $ws10
  131.  
  132. # reload the configuration file
  133. bindsym $mod+Shift+c reload
  134. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  135. bindsym $mod+Shift+r restart
  136. # exit i3 (logs you out of your X session)
  137. 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'"
  138.  
  139. # resize window (you can also use the mouse for that)
  140. mode "resize" {
  141. # These bindings trigger as soon as you enter the resize mode
  142.  
  143. # Pressing left will shrink the window’s width.
  144. # Pressing right will grow the window’s width.
  145. # Pressing up will shrink the window’s height.
  146. # Pressing down will grow the window’s height.
  147. bindsym j resize shrink width 10 px or 10 ppt
  148. bindsym k resize grow height 10 px or 10 ppt
  149. bindsym l resize shrink height 10 px or 10 ppt
  150. bindsym semicolon resize grow width 10 px or 10 ppt
  151.  
  152. # same bindings, but for the arrow keys
  153. bindsym Left resize shrink width 10 px or 10 ppt
  154. bindsym Down resize grow height 10 px or 10 ppt
  155. bindsym Up resize shrink height 10 px or 10 ppt
  156. bindsym Right resize grow width 10 px or 10 ppt
  157.  
  158. # back to normal: Enter or Escape or $mod+r
  159. bindsym Return mode "default"
  160. bindsym Escape mode "default"
  161. bindsym $mod+r mode "default"
  162. }
  163.  
  164. bindsym $mod+r mode "resize"
  165.  
  166. # Start i3bar to display a workspace bar (plus the system information i3status
  167. # finds out, if available)
  168. bar {
  169. status_command i3blocks
  170. colors {
  171. background #005073
  172. }
  173. font pango:FontAwesome 13
  174. }
  175.  
  176. # import urxvt settings
  177. exec_always xrdb ~/.Xresources
  178.  
  179. # configure touchpad settings
  180. exec xinput set-prop "pointer:SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
  181.  
  182. # focus follows mouse
  183. focus_follows_mouse no
  184.  
  185. # wallpaper
  186. exec_always feh --bg-scale ~/Pictures/wallpaper.jpg
  187.  
  188. # Pulse Audio controls
  189. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume
  190. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume
  191.  
  192. # Sreen brightness controls
  193. bindsym XF86MonBrightnessUp exec light -A 5 # increase screen brightness
  194. bindsym XF86MonBrightnessDown exec light -U 5 # decrease screen brightness
  195.  
  196. # i3gaps
  197. gaps inner 8
  198. gaps outer 8
  199. new_window pixel 2
  200. new_float pixel 2
  201. workspace $ws10 gaps inner 0
  202. workspace $ws10 gaps outer 0
  203. ## i3gaps on-the-go settings
  204. set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
  205. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  206. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  207. set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
  208. set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
  209. set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
  210. set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
  211. set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
  212. set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
  213. bindsym $mod+Shift+g mode "$mode_gaps"
  214.  
  215. mode "$mode_gaps" {
  216. bindsym o mode "$mode_gaps_outer"
  217. bindsym i mode "$mode_gaps_inner"
  218. bindsym h mode "$mode_gaps_horiz"
  219. bindsym v mode "$mode_gaps_verti"
  220. bindsym t mode "$mode_gaps_top"
  221. bindsym r mode "$mode_gaps_right"
  222. bindsym b mode "$mode_gaps_bottom"
  223. bindsym l mode "$mode_gaps_left"
  224. bindsym Return mode "$mode_gaps"
  225. bindsym Escape mode "default"
  226. }
  227.  
  228. mode "$mode_gaps_outer" {
  229. bindsym plus gaps outer current plus 5
  230. bindsym minus gaps outer current minus 5
  231. bindsym 0 gaps outer current set 0
  232.  
  233. bindsym Shift+plus gaps outer all plus 5
  234. bindsym Shift+minus gaps outer all minus 5
  235. bindsym Shift+0 gaps outer all set 0
  236.  
  237. bindsym Return mode "$mode_gaps"
  238. bindsym Escape mode "default"
  239. }
  240. mode "$mode_gaps_inner" {
  241. bindsym plus gaps inner current plus 5
  242. bindsym minus gaps inner current minus 5
  243. bindsym 0 gaps inner current set 0
  244.  
  245. bindsym Shift+plus gaps inner all plus 5
  246. bindsym Shift+minus gaps inner all minus 5
  247. bindsym Shift+0 gaps inner all set 0
  248.  
  249. bindsym Return mode "$mode_gaps"
  250. bindsym Escape mode "default"
  251. }
  252. mode "$mode_gaps_horiz" {
  253. bindsym plus gaps horizontal current plus 5
  254. bindsym minus gaps horizontal current minus 5
  255. bindsym 0 gaps horizontal current set 0
  256.  
  257. bindsym Shift+plus gaps horizontal all plus 5
  258. bindsym Shift+minus gaps horizontal all minus 5
  259. bindsym Shift+0 gaps horizontal all set 0
  260.  
  261. bindsym Return mode "$mode_gaps"
  262. bindsym Escape mode "default"
  263. }
  264. mode "$mode_gaps_verti" {
  265. bindsym plus gaps vertical current plus 5
  266. bindsym minus gaps vertical current minus 5
  267. bindsym 0 gaps vertical current set 0
  268.  
  269. bindsym Shift+plus gaps vertical all plus 5
  270. bindsym Shift+minus gaps vertical all minus 5
  271. bindsym Shift+0 gaps vertical all set 0
  272.  
  273. bindsym Return mode "$mode_gaps"
  274. bindsym Escape mode "default"
  275. }
  276. mode "$mode_gaps_top" {
  277. bindsym plus gaps top current plus 5
  278. bindsym minus gaps top current minus 5
  279. bindsym 0 gaps top current set 0
  280.  
  281. bindsym Shift+plus gaps top all plus 5
  282. bindsym Shift+minus gaps top all minus 5
  283. bindsym Shift+0 gaps top all set 0
  284.  
  285. bindsym Return mode "$mode_gaps"
  286. bindsym Escape mode "default"
  287. }
  288. mode "$mode_gaps_right" {
  289. bindsym plus gaps right current plus 5
  290. bindsym minus gaps right current minus 5
  291. bindsym 0 gaps right current set 0
  292.  
  293. bindsym Shift+plus gaps right all plus 5
  294. bindsym Shift+minus gaps right all minus 5
  295. bindsym Shift+0 gaps right all set 0
  296.  
  297. bindsym Return mode "$mode_gaps"
  298. bindsym Escape mode "default"
  299. }
  300. mode "$mode_gaps_bottom" {
  301. bindsym plus gaps bottom current plus 5
  302. bindsym minus gaps bottom current minus 5
  303. bindsym 0 gaps bottom current set 0
  304.  
  305. bindsym Shift+plus gaps bottom all plus 5
  306. bindsym Shift+minus gaps bottom all minus 5
  307. bindsym Shift+0 gaps bottom all set 0
  308.  
  309. bindsym Return mode "$mode_gaps"
  310. bindsym Escape mode "default"
  311. }
  312. mode "$mode_gaps_left" {
  313. bindsym plus gaps left current plus 5
  314. bindsym minus gaps left current minus 5
  315. bindsym 0 gaps left current set 0
  316.  
  317. bindsym Shift+plus gaps left all plus 5
  318. bindsym Shift+minus gaps left all minus 5
  319. bindsym Shift+0 gaps left all set 0
  320.  
  321. bindsym Return mode "$mode_gaps"
  322. bindsym Escape mode "default"
  323. }
  324.  
  325. #assign spotify to $ws 10 & start spotify on startup
  326. #assign [class="spotify"] $ws10
  327. for_window [class="Spotify"] move to workspace $ws10
  328. exec spotify
  329.  
  330. #start network_manager applet
  331. exec nm-applet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement