Guest User

Untitled

a guest
May 27th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
autoconf 10.52 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 http://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod3
  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:Iosevka 8
  17.  
  18. # i3-gaps
  19. for_window [class="^.*"] border pixel 2
  20. # smart_gaps on
  21. smart_borders on
  22. # gaps inner 20
  23. # gaps outer 10
  24.  
  25. bindsym $mod+b floating toggle
  26. # bindsym $mod+b floating toggle; [floating] border normal 2; [tiling] border pixel 2
  27. # bindsym $mod+b gaps inner 0
  28. bindsym $mod+g floating toggle
  29.  
  30. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  31. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  32. #font pango:DejaVu Sans Mono 8
  33.  
  34. # Before i3 v4.8, we used to recommend this one as the default:
  35. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  36. # The font above is very space-efficient, that is, it looks good, sharp and
  37. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  38. # X core fonts rendering does not support right-to-left and this being a bitmap
  39. # font, it doesn’t scale on retina/hidpi displays.
  40.  
  41. # Use Mouse+$mod to drag floating windows to their wanted position
  42. floating_modifier $mod
  43.  
  44. # start a terminal
  45. # bindsym $mod+Return exec terminator
  46. # bindsym $mod+Shift+Return exec terminator -T assistant -r sticky
  47.  
  48. # kill focused window
  49. bindsym $mod+Shift+q kill
  50.  
  51. # start dmenu (a program launcher)
  52. # bindsym $mod+d exec dmenu_run -f
  53. bindsym $mod+d exec "rofi-combi"
  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+h focus left
  61. bindsym $mod+j focus down
  62. bindsym $mod+k focus up
  63. bindsym $mod+l focus right
  64.  
  65. # Default
  66. # bindsym $mod+j focus left
  67. # bindsym $mod+k focus down
  68. # bindsym $mod+l focus up
  69. # bindsym $mod+semicolon focus right
  70.  
  71. # alternatively, you can use the cursor keys:
  72. # bindsym $mod+Left focus left
  73. # bindsym $mod+Down focus down
  74. # bindsym $mod+Up focus up
  75. # bindsym $mod+Right focus right
  76.  
  77. # move focused window
  78. bindsym $mod+Shift+h move left
  79. bindsym $mod+Shift+j move down
  80. bindsym $mod+Shift+k move up
  81. bindsym $mod+Shift+l move right
  82.  
  83. # alternatively, you can use the cursor keys:
  84. bindsym $mod+Shift+Left move left
  85. bindsym $mod+Shift+Down move down
  86. bindsym $mod+Shift+Up move up
  87. bindsym $mod+Shift+Right move right
  88.  
  89. # split in horizontal orientation
  90. bindsym $mod+comma split h
  91.  
  92. # split in vertical orientation
  93. bindsym $mod+period split v
  94.  
  95. # enter fullscreen mode for the focused container
  96. bindsym $mod+f fullscreen toggle
  97.  
  98. # change container layout (stacked, tabbed, toggle split)
  99. bindsym $mod+s layout stacking
  100. bindsym $mod+w layout tabbed
  101. bindsym $mod+e layout toggle split
  102.  
  103. # toggle tiling / floating
  104. bindsym $mod+Shift+space floating toggle
  105.  
  106. # change focus between tiling / floating windows
  107. bindsym $mod+space focus mode_toggle
  108.  
  109. # focus the parent container
  110. bindsym $mod+q focus parent
  111.  
  112. # focus the child container
  113. bindsym $mod+a focus child
  114.  
  115. # switch to workspace
  116. bindsym $mod+1 workspace 1
  117. bindsym $mod+2 workspace 2
  118. bindsym $mod+3 workspace 3
  119. bindsym $mod+4 workspace 4
  120. bindsym $mod+5 workspace 5
  121. bindsym $mod+6 workspace 6
  122. bindsym $mod+7 workspace 7
  123. bindsym $mod+8 workspace 8
  124. bindsym $mod+9 workspace 9
  125. bindsym $mod+0 workspace 10
  126.  
  127. # switch to extra workspace
  128. bindsym $mod+F1 workspace 11
  129. bindsym $mod+F2 workspace 12
  130. bindsym $mod+F3 workspace 13
  131. bindsym $mod+F4 workspace 14
  132. bindsym $mod+F5 workspace 15
  133. bindsym $mod+F6 workspace 16
  134. bindsym $mod+F7 workspace 17
  135. bindsym $mod+F8 workspace 18
  136. bindsym $mod+F9 workspace 19
  137. bindsym $mod+F10 workspace 20
  138. bindsym $mod+F11 workspace 21
  139. bindsym $mod+F12 workspace 22
  140.  
  141. # move focused container to workspace
  142. bindsym $mod+Shift+1 move container to workspace 1
  143. bindsym $mod+Shift+2 move container to workspace 2
  144. bindsym $mod+Shift+3 move container to workspace 3
  145. bindsym $mod+Shift+4 move container to workspace 4
  146. bindsym $mod+Shift+5 move container to workspace 5
  147. bindsym $mod+Shift+6 move container to workspace 6
  148. bindsym $mod+Shift+7 move container to workspace 7
  149. bindsym $mod+Shift+8 move container to workspace 8
  150. bindsym $mod+Shift+9 move container to workspace 9
  151. bindsym $mod+Shift+0 move container to workspace 10
  152.  
  153. # move focused container to extra workspace
  154. bindsym $mod+Shift+F1 move container to workspace 11
  155. bindsym $mod+Shift+F2 move container to workspace 12
  156. bindsym $mod+Shift+F3 move container to workspace 13
  157. bindsym $mod+Shift+F4 move container to workspace 14
  158. bindsym $mod+Shift+F5 move container to workspace 15
  159. bindsym $mod+Shift+F6 move container to workspace 16
  160. bindsym $mod+Shift+F7 move container to workspace 17
  161. bindsym $mod+Shift+F8 move container to workspace 18
  162. bindsym $mod+Shift+F9 move container to workspace 19
  163. bindsym $mod+Shift+F10 move container to workspace 20
  164. bindsym $mod+Shift+F11 move container to workspace 21
  165. bindsym $mod+Shift+F12 move container to workspace 22
  166.  
  167. # reload the configuration file
  168. bindsym $mod+Shift+c reload
  169. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  170. bindsym $mod+Shift+r restart
  171. # exit i3 (logs you out of your X session)
  172. # 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'"
  173. bindsym $mod+Shift+e  exec i3-msg exit
  174.  
  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 h resize shrink width 10 px or 10 ppt
  184.         bindsym j resize grow height 10 px or 10 ppt
  185.         bindsym k resize shrink height 10 px or 10 ppt
  186.         bindsym l 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
  195.         bindsym Return mode "default"
  196.         bindsym Escape mode "default"
  197. }
  198.  
  199. bindsym $mod+r mode "resize"
  200.  
  201. bar {
  202.         # status_command i3status
  203.     status_command i3blocks -c ~/.config/i3/i3blocks.conf
  204.     tray_output primary
  205.     # tray_output none
  206.     tray_padding 2
  207.     height 40
  208.     position bottom
  209.     # tray_output none
  210.     font pango:Iosevka 8
  211.     # font pango:Linux Libertine 8
  212.     colors {
  213.            background #111111
  214.            separator #00A5FF
  215.            statusline #999999
  216.            focused_workspace  #4c7899 #285577 #ffffff
  217.                active_workspace   #333333 #5f676a #ffffff
  218.                inactive_workspace #333333 #222222 #888888
  219.                urgent_workspace   #2f343a #900000 #ffffff          
  220.     }
  221. }
  222.  
  223. # Colours               border  backgr. text    indicator child_border
  224. client.focused          #4c7899 #285577 #ffffff #2e9ef4   #285577
  225. client.focused_inactive #333333 #5f676a #ffffff #484e50   #5f676a
  226. client.unfocused        #333333 #222222 #888888 #292d2e   #222222
  227. client.urgent           #2f343a #900000 #ffffff #900000   #900000
  228. client.placeholder      #000000 #0c0c0c #ffffff #000000   #0c0c0c
  229.  
  230. client.background       #000000
  231.  
  232.  
  233.  
  234. # Custom
  235. focus_on_window_activation focus
  236. bindsym $mod+p [urgent=latest] focus
  237. workspace_auto_back_and_forth yes
  238. bindsym $mod+u workspace prev
  239. bindsym $mod+i workspace next
  240. bindsym $mod+o workspace back_and_forth
  241. bindsym $mod+Shift+o move container to workspace back_and_forth; workspace back_and_forth
  242.  
  243. # bindsym $mod+Left workspace --no-auto-back-and-forth prev
  244. # bindsym $mod+Down focus down
  245. # bindsym $mod+Up focus up
  246. # bindsym $mod+Right workspace --no-auto-back-and-forth next
  247.  
  248. bindsym $mod+t exec thunar
  249.  
  250. # Default layout
  251. exec --no-startup-id (sleep 0.5; i3-msg "workspace 1; append_layout /home/zaeph/.config/i3/workspaces/workspace-1.json")
  252. exec --no-startup-id (sleep 1.0; i3-msg "workspace 2; append_layout /home/zaeph/.config/i3/workspaces/workspace-2.json")
  253. exec --no-startup-id (sleep 1.5; i3-msg "workspace 3; append_layout /home/zaeph/.config/i3/workspaces/workspace-3.json")
  254. # exec --no-startup-id i3-msg "workspace 4; append_layout /home/zaeph/.config/i3/workspaces/workspace-4.json"
  255. # exec i3-msg "workspace 4; append_layout /home/zaeph/.i3/workspace-4.json"
  256.  
  257. exec feh --bg-fill $WALLPAPER
  258.  
  259. exec (sleep 2; terminator -r htop -x htop)
  260. exec (sleep 2; terminator -r system)
  261. # exec terminator -r alsamixer -x alsamixer #Removed because switch to pulseaudio
  262.  
  263. # exec compton -b --backend glx --vsync opengl-swc --no-fading-openclose
  264.  
  265. # dunst is launched in .xprofile to avoid system scripts to launch it first
  266.  
  267. # exec (sleep 10; dunst)
  268. exec (sleep 2; copyq)
  269.  
  270. # exec emacs            #Doesn't work well when starting fcitx before
  271.  
  272. exec (sleep 0.5; fcitx && sleep 1; setxkb-default)
  273. exec (sleep 2; emacs)
  274. # exec (sleep 1; thunderbird)
  275. exec (sleep 2; firefox)
  276. exec i3-msg "restart"       #Necessary since i3-gaps seems to break containers
  277.  
  278. # MPD daemon start (if no other user instance exists)
  279. exec ([ ! -s ~/.config/mpd/pid ] && mpd)
  280.  
  281. # exec calibre
  282.  
  283. # Starting terminals
  284. bindsym $mod+Return exec terminator
  285. bindsym $mod+Shift+Return exec terminator -T assistant -r sticky
  286. exec (sleep 1; terminator -T assistant -r sticky)
  287.  
  288. bindsym $mod+m move scratchpad
  289. bindsym $mod+n [class="Terminator" title="assistant"] scratchpad show
  290. bindsym $mod+Shift+n [class="^(?!Terminator$)" title="^(?!assistant$)"] scratchpad show
  291.  
  292. bindsym $mod+equal [class="Keepassx2"] scratchpad show
  293.  
  294. for_window [class="mplayer-audio"] floating enable
  295. for_window [class="Pavucontrol"] floating enable
  296. for_window [class="Keepassx2"] floating enable
  297. for_window [title="edit-in-emacs.txt"] floating enable
  298. for_window [title="edit-in-emacs.html"] floating enable
  299. for_window [class="Terminator" title="assistant"] floating enable, sticky enable, move window to scratchpad, scratchpad show
  300. # for_window [class="Terminator" window_role="sticky"] sticky enable
  301.  
  302. # for_window [title="Skype"] sticky enable
Advertisement
Add Comment
Please, Sign In to add comment