Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.38 KB | None | 0 0
  1. # i3 config file (v4)
  2. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  3.  
  4. # Set mod key (Mod1=<Alt>, Mod4=<Super>)
  5. set $mod Mod4
  6.  
  7. # set default desktop layout (default is tiling)
  8. # workspace_layout tabbed <stacking|tabbed>
  9.  
  10. # Configure border style <normal|1pixel|pixel xx|none|pixel>
  11. new_window pixel 2
  12. new_float normal
  13.  
  14. # Hide borders
  15. hide_edge_borders none
  16.  
  17. # change borders
  18. bindsym $mod+u border none
  19. bindsym $mod+y border pixel 2
  20. bindsym $mod+n border normal
  21.  
  22. # Font for window titles. Will also be used by the bar unless a different font
  23. # is used in the bar {} block below.
  24. font pango:Cantarell 9
  25.  
  26. # Use Mouse+$mod to drag floating windows
  27. floating_modifier $mod
  28.  
  29. # start a terminal
  30. bindsym $mod+Return exec i3-sensible-terminal
  31.  
  32. # kill focused window
  33. bindsym $mod+Shift+q kill
  34.  
  35. # start program launcher
  36. bindsym $mod+d exec --no-startup-id dmenu_recency
  37.  
  38. # Screen brightness controls
  39. # bindsym XF86MonBrightnessUp exec xbacklight -inc 10 && exec notify-send 'brightness up'
  40. # bindsym XF86MonBrightnessDown exec xbacklight -dec 10 && exec notify-send 'brightness down'
  41.  
  42. # Start Applications
  43. bindsym $mod+F1 exec thunderbird
  44. bindsym $mod+F2 exec google-chrome-stable
  45. bindsym $mod+F3 exec pcmanfm
  46. bindsym $mod+Shift+F3 exec gksu pcmanfm
  47. bindsym $mod+F4 exec libreoffice
  48. bindsym $mod+t exec --no-startup-id pkill compton
  49. bindsym $mod+Ctrl+t exec --no-startup-id compton -b
  50. bindsym $mod+Ctrl+m exec i3-sensible-terminal -e 'alsamixer'
  51. bindsym $mod+Shift+d exec killall dunst && exec notify-send 'restart dunst'
  52. bindsym Print exec scrot -e 'mv $f ~/Screenshots' && sleep 1 && exec notify-send 'screenshot has been saved to ~/Screenshots'
  53. bindsym $mod+Print exec scrot -ue 'mv $f ~/Screenshots' && sleep 1 && exec notify-send 'screenshot has been saved to ~/Screenshots'
  54. bindsym $mod+Shift+Print exec notify-send 'selection will be saved to ~/Screenshots' & exec scrot -se 'mv $f ~/Screenshots' && sleep 1 && exec notify-send 'screenshot has been saved in ~/Screenshots'
  55. bindsym $mod+Shift+h exec qpdfview i3_help.pdf
  56. bindsym $mod+Ctrl+x exec xkill
  57.  
  58. # focus_follows_mouse no
  59.  
  60. # change focus
  61. bindsym $mod+j focus left
  62. bindsym $mod+k focus down
  63. bindsym $mod+l focus up
  64. bindsym $mod+odiaeresis focus right
  65.  
  66. # alternatively, you can use the cursor keys:
  67. bindsym $mod+Left focus left
  68. bindsym $mod+Down focus down
  69. bindsym $mod+Up focus up
  70. bindsym $mod+Right focus right
  71.  
  72. # move focused window
  73. bindsym $mod+Shift+j move left
  74. bindsym $mod+Shift+k move down
  75. bindsym $mod+Shift+l move up
  76. bindsym $mod+Shift+odiaeresis move right
  77.  
  78. # alternatively, you can use the cursor keys:
  79. bindsym $mod+Shift+Left move left
  80. bindsym $mod+Shift+Down move down
  81. bindsym $mod+Shift+Up move up
  82. bindsym $mod+Shift+Right move right
  83.  
  84. # workspace back and forth (with/without active container)
  85. workspace_auto_back_and_forth yes
  86. bindsym $mod+b workspace back_and_forth
  87. bindsym $mod+Shift+b move container to workspace back_and_forth; workspace back_and_forth
  88.  
  89. # split in horizontal orientation
  90. bindsym $mod+h split h;exec notify-send 'tile horizontally'
  91.  
  92. # split in vertical orientation
  93. bindsym $mod+v split v;exec notify-send 'tile vertically'
  94.  
  95. # toggle 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+a focus parent
  111.  
  112. # Workspace names
  113. set $WS1 1:
  114. set $WS2 2:
  115. set $WS3 3:
  116. set $WS4 4:
  117. set $WS5 5:
  118. set $WS6 6:
  119. set $WS7 7:
  120. set $WS8 8:
  121.  
  122. # switch to workspace
  123. bindsym Mod4+1 workspace $WS1
  124. bindsym Mod4+2 workspace $WS2
  125. bindsym Mod4+3 workspace $WS3
  126. bindsym Mod4+4 workspace $WS4
  127. bindsym Mod4+5 workspace $WS5
  128. bindsym Mod4+6 workspace $WS6
  129. bindsym Mod4+7 workspace $WS7
  130. bindsym Mod4+8 workspace $WS8
  131.  
  132. #navigate workspaces next / previous
  133. bindsym $mod+Ctrl+Right workspace next
  134. bindsym $mod+Ctrl+Left workspace prev
  135.  
  136. # Move focused container to workspace
  137. bindsym $mod+Ctrl+1 move container to workspace number $WS1
  138. bindsym $mod+Ctrl+2 move container to workspace number $WS2
  139. bindsym $mod+Ctrl+3 move container to workspace number $WS3
  140. bindsym $mod+Ctrl+4 move container to workspace number $WS4
  141. bindsym $mod+Ctrl+5 move container to workspace number $WS5
  142. bindsym $mod+Ctrl+6 move container to workspace number $WS6
  143. bindsym $mod+Ctrl+7 move container to workspace number $WS7
  144. bindsym $mod+Ctrl+8 move container to workspace number $WS8
  145.  
  146. # Move to workspace with focused container
  147. bindsym $mod+Shift+1 move container to workspace $WS1
  148. bindsym $mod+Shift+2 move container to workspace $WS2
  149. bindsym $mod+Shift+3 move container to workspace $WS3
  150. bindsym $mod+Shift+4 move container to workspace $WS4
  151. bindsym $mod+Shift+5 move container to workspace $WS5
  152. bindsym $mod+Shift+6 move container to workspace $WS6
  153. bindsym $mod+Shift+7 move container to workspace $WS7
  154. bindsym $mod+Shift+8 move container to workspace $WS8
  155.  
  156. # Open applications on specific workspaces
  157. assign [class="URxvt"] $WS1
  158. assign [class="Steam"] $WS3
  159. assign [class="Pcmanfm"] $WS4
  160. assign [class="Vlc"] $WS5
  161. assign [class="Mousepad"] $WS6
  162. assign [class="Qbittorrent"] $WS4
  163. assign [class="Skype"] $WS7
  164.  
  165. # Open specific applications in floating mode
  166. for_window [title="alsamixer"] floating enable border pixel 2
  167. for_window [class="Calamares"] floating enable border normal
  168. for_window [class="Clipgrab"] floating enable
  169. for_window [title="File Transfer*"] floating enable
  170. for_window [class="Galculator"] floating enable border pixel 2
  171. for_window [class="GParted"] floating enable border normal
  172. for_window [title="i3_help"] floating enable
  173. for_window [class="Lightdm-gtk-greeter-settings"] floating enable
  174. for_window [class="Lxappearance"] floating enable
  175. for_window [class="manjaro-settings-manager-gui"] floating enable border normal
  176. for_window [class="Manjaro Welcome"] floating enable
  177. for_window [title="MuseScore: Play Panel"] floating enable
  178. for_window [class="Nitrogen"] floating enable border normal
  179. for_window [class="Oblogout"] fullscreen enable
  180. for_window [class="octopi"] floating enable
  181. for_window [class="Pamac-manager"] floating enable
  182. for_window [class="Pavucontrol"] floating enable
  183. for_window [class="Qtconfig-qt4"] floating enable
  184. for_window [class="Thus"] floating enable border normal
  185. for_window [class="(?i)System-config-printer.py"] floating enable border normal
  186. for_window [class="Skype"] floating enable border normal
  187. for_window [class="Timeset-gui"] floating enable border normal
  188. for_window [class="(?i)virtualbox"] floating enable border normal
  189.  
  190. # switch to workspace with urgent window automatically
  191. for_window [urgent=latest] focus
  192.  
  193. # reload the configuration file
  194. bindsym $mod+Shift+c reload
  195.  
  196. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  197. bindsym $mod+Shift+r restart
  198.  
  199. # exit i3 (logs you out of your X session)
  200. 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'"
  201.  
  202. # Set shut down, restart and locking features
  203. bindsym $mod+0 mode "$mode_system"
  204. set $mode_system (l)ock, (e)xit, switch_(u)ser, (s)uspend, (h)ibernate, (r)eboot, (Shift+s)hutdown
  205. mode "$mode_system" {
  206. bindsym l exec --no-startup-id i3exit lock, mode "default"
  207. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  208. bindsym u exec --no-startup-id i3exit switch_user, mode "default"
  209. bindsym e exec --no-startup-id i3exit logout, mode "default"
  210. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  211. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  212. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  213.  
  214. # exit system mode: "Enter" or "Escape"
  215. bindsym Return mode "default"
  216. bindsym Escape mode "default"
  217. }
  218.  
  219. # Resize window (you can also use the mouse for that)
  220. bindsym $mod+r mode "resize"
  221. mode "resize" {
  222. # These bindings trigger as soon as you enter the resize mode
  223. # Pressing left will shrink the window’s width.
  224. # Pressing right will grow the window’s width.
  225. # Pressing up will shrink the window’s height.
  226. # Pressing down will grow the window’s height.
  227. bindsym j resize shrink width 5 px or 5 ppt
  228. bindsym k resize grow height 5 px or 5 ppt
  229. bindsym l resize shrink height 5 px or 5 ppt
  230. bindsym odiaeresis resize grow width 5 px or 5 ppt
  231.  
  232. # same bindings, but for the arrow keys
  233. bindsym Left resize shrink width 10 px or 10 ppt
  234. bindsym Down resize grow height 10 px or 10 ppt
  235. bindsym Up resize shrink height 10 px or 10 ppt
  236. bindsym Right resize grow width 10 px or 10 ppt
  237.  
  238. # exit resize mode: Enter or Escape
  239. bindsym Return mode "default"
  240. bindsym Escape mode "default"
  241. }
  242.  
  243. # Lock screen
  244. bindsym $mod+9 exec --no-startup-id blurlock
  245.  
  246. # Start i3bar to display a workspace bar (plus the system information i3status if available)
  247. bar {
  248. status_command i3status
  249. # wheel_up_cmd nop
  250. # wheel_down_cmd nop
  251. font pango:Cantarell,Icons 9
  252. colors {
  253. separator #2ECC71
  254. background #000000
  255. statusline #DDDDDD
  256. focused_workspace #FFFFFF #2ECC71 #000000
  257. active_workspace #000000 #A4A28D #FFFFFF
  258. inactive_workspace #A4A28D #000000 #DDDDDD
  259. urgent_workspace #2ECC71 #900000 #FFFFFF
  260. }
  261. }
  262.  
  263. # Autostart applications
  264. exec --no-startup-id /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
  265. exec --no-startup-id nitrogen --restore
  266. exec --no-startup-id nm-applet
  267. exec --no-startup-id volumeicon
  268. exec --no-startup-id xfce4-power-manager
  269. exec --no-startup-id qbittorrent
  270. # exec --no-startup-id blueman
  271. # exec_always --no-startup-id sbxkb
  272. exec --no-startup-id compton -b
  273. # exec --no-startup-id start_conky_grey
  274. exec --no-startup-id start_conky_green
  275. exec --no-startup-id xautolock -time 10 -locker blurlock
  276.  
  277. # Theme colors
  278. client.focused #2ECC71 #2ECC71 #000000 #FFFFFF
  279. client.unfocused #222222 #222222 #2ECC71 #222222
  280. client.urgent #274D01 #900000 #FFFFFF #900000
  281.  
  282. # Disable window titlebars entirely
  283. for_window [class="^.*"] border pixel 2
  284.  
  285. # Set inner/outer gaps
  286. gaps inner 10
  287. gaps outer 10
  288.  
  289. # Additionally, you can issue commands with the following syntax. This is useful to bind keys to changing the gap size.
  290. # gaps inner|outer current|all set|plus|minus <px>
  291. # gaps inner all set 10
  292. # gaps outer all plus 5
  293.  
  294. # Smart gaps (gaps used if only more than one container on the workspace)
  295. # smart_gaps on
  296.  
  297. # Smart borders (draw borders around container only if it is not the only container on this workspace)
  298. # on|no_gaps (on=always activate and no_gaps=only activate if the gap size to the edge of the screen is 0)
  299. smart_borders on
  300.  
  301. # Press $mod+Shift+g to enter the gap mode. Choose o or i for modifying outer/inner gaps. Press one of + / - (in-/decrement for current workspace) or 0 (remove gaps for current workspace). If you also press Shift with these keys, the change will be global for all workspaces.
  302. set $mode_gaps Gaps: (o) outer, (i) inner
  303. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  304. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  305. bindsym $mod+Shift+g mode "$mode_gaps"
  306.  
  307. mode "$mode_gaps" {
  308. bindsym o mode "$mode_gaps_outer"
  309. bindsym i mode "$mode_gaps_inner"
  310. bindsym Return mode "default"
  311. bindsym Escape mode "default"
  312. }
  313.  
  314. mode "$mode_gaps_inner" {
  315. bindsym plus gaps inner current plus 5
  316. bindsym minus gaps inner current minus 5
  317. bindsym 0 gaps inner current set 0
  318.  
  319. bindsym Shift+plus gaps inner all plus 5
  320. bindsym Shift+minus gaps inner all minus 5
  321. bindsym Shift+0 gaps inner all set 0
  322.  
  323. bindsym Return mode "default"
  324. bindsym Escape mode "default"
  325. }
  326. mode "$mode_gaps_outer" {
  327. bindsym plus gaps outer current plus 5
  328. bindsym minus gaps outer current minus 5
  329. bindsym 0 gaps outer current set 0
  330.  
  331. bindsym Shift+plus gaps outer all plus 5
  332. bindsym Shift+minus gaps outer all minus 5
  333. bindsym Shift+0 gaps outer all set 0
  334.  
  335. bindsym Return mode "default"
  336. bindsym Escape mode "default"
  337. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement