Advertisement
Cthulu201

i3 Config

Dec 5th, 2014
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.31 KB | None | 0 0
  1. # Set mod key
  2. set $mod Mod4
  3.  
  4. # Font for window titles. Will also be used by the bar unless a different font
  5. font xft:Terminux, FontAwesome 8
  6. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  7.  
  8. # Use Mouse+$mod to drag floating windows to their wanted position
  9. floating_modifier $mod
  10.  
  11. # start a terminal
  12. bindsym $mod+Return exec terminator
  13.  
  14. # kill focused window
  15. bindsym $mod+Shift+q kill
  16.  
  17. # start dmenu (a program launcher)
  18. bindsym $mod+d exec --no-startup-id dmenu_run
  19.  
  20. # change focus
  21. bindsym $mod+j focus left
  22. bindsym $mod+k focus down
  23. bindsym $mod+l focus up
  24. bindsym $mod+semicolon focus right
  25.  
  26. # alternatively, you can use the cursor keys:
  27. bindsym $mod+Left focus left
  28. bindsym $mod+Down focus down
  29. bindsym $mod+Up focus up
  30. bindsym $mod+Right focus right
  31.  
  32. # move focused window
  33. bindsym $mod+Shift+j move left
  34. bindsym $mod+Shift+k move down
  35. bindsym $mod+Shift+l move up
  36. bindsym $mod+Shift+semicolon move right
  37.  
  38. # alternatively, you can use the cursor keys:
  39. bindsym $mod+Shift+Left move left
  40. bindsym $mod+Shift+Down move down
  41. bindsym $mod+Shift+Up move up
  42. bindsym $mod+Shift+Right move right
  43.  
  44. # split in horizontal orientation
  45. bindsym $mod+h split h
  46.  
  47. # split in vertical orientation
  48. bindsym $mod+v split v
  49.  
  50. # enter fullscreen mode for the focused container
  51. bindsym $mod+f fullscreen
  52.  
  53. # change container layout (stacked, tabbed, toggle split)
  54. bindsym $mod+s layout stacking
  55. bindsym $mod+w layout tabbed
  56. bindsym $mod+e layout toggle split
  57.  
  58. # toggle tiling / floating
  59. bindsym $mod+Shift+space floating toggle
  60.  
  61. # change focus between tiling / floating windows
  62. bindsym $mod+space focus mode_toggle
  63.  
  64. # focus the parent container
  65. bindsym $mod+a focus parent
  66.  
  67. # workspace names
  68. set $WS1 "[ Term ]"
  69. set $WS2 "[ Web ]"
  70. set $WS3 "[ Misc ]"
  71. set $WS4 "[ Games ]"
  72. set $WS5 5
  73. set $WS6 6
  74. set $WS7 7
  75. set $WS8 8
  76. set $WS9 9
  77. set $WS0 10
  78.  
  79. # switch to workspace
  80. bindsym $mod+1 workspace $WS1
  81. bindsym $mod+2 workspace $WS2
  82. bindsym $mod+3 workspace $WS3
  83. bindsym $mod+4 workspace $WS4
  84. bindsym $mod+5 workspace $WS5
  85. bindsym $mod+6 workspace $WS6
  86. bindsym $mod+7 workspace $WS7
  87. bindsym $mod+8 workspace $WS8
  88. bindsym $mod+9 workspace $WS9
  89. bindsym $mod+0 workspace $WS0
  90.  
  91. # move focused container to workspace
  92. bindsym $mod+Shift+1 move container to workspace $WS1
  93. bindsym $mod+Shift+2 move container to workspace $WS2
  94. bindsym $mod+Shift+3 move container to workspace $WS3
  95. bindsym $mod+Shift+4 move container to workspace $WS4
  96. bindsym $mod+Shift+5 move container to workspace $WS5
  97. bindsym $mod+Shift+6 move container to workspace $WS6
  98. bindsym $mod+Shift+7 move container to workspace $WS7
  99. bindsym $mod+Shift+8 move container to workspace $WS8
  100. bindsym $mod+Shift+9 move container to workspace $WS9
  101. bindsym $mod+Shift+0 move container to workspace $WS0
  102.  
  103. # Reload config file, restart i3, exit i3
  104. bindsym $mod+Shift+c reload
  105. bindsym $mod+Shift+r restart
  106. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'Do you really want to exit i3?' -b 'Yes' 'i3-msg exit'"
  107.  
  108. # resize window (you can also use the mouse for that)
  109. mode "resize" {
  110. # These bindings trigger as soon as you enter the resize mode
  111.  
  112. # Pressing left will shrink the window’s width.
  113. # Pressing right will grow the window’s width.
  114. # Pressing up will shrink the window’s height.
  115. # Pressing down will grow the window’s height.
  116. bindsym j resize shrink width 10 px or 10 ppt
  117. bindsym k resize grow height 10 px or 10 ppt
  118. bindsym l resize shrink height 10 px or 10 ppt
  119. bindsym semicolon resize grow width 10 px or 10 ppt
  120.  
  121. # same bindings, but for the arrow keys
  122. bindsym Left resize shrink width 10 px or 10 ppt
  123. bindsym Down resize grow height 10 px or 10 ppt
  124. bindsym Up resize shrink height 10 px or 10 ppt
  125. bindsym Right resize grow width 10 px or 10 ppt
  126.  
  127. # back to normal: Enter or Escape
  128. bindsym Return mode "default"
  129. bindsym Escape mode "default"
  130. }
  131.  
  132. bindsym $mod+r mode "resize"
  133.  
  134. # Start i3bar to display a workspace bar (plus the system information i3status
  135. # finds out, if available)
  136. bar {
  137. colors {
  138. background #242424
  139. statusline #5A7060
  140. separator #706565
  141.  
  142. # Class Border Background Text
  143. focused_workspace #191919 #191919 #6b6b6b
  144. active_workspace #191919 #191919 #6b6b6b
  145. inactive_workspace #191919 #191919 #423e32
  146. urgent_workspace #191919 #191919 #c7a551
  147. }
  148. position top
  149. tray_output primary
  150. status_command i3status
  151. }
  152.  
  153. # My key modifiers #
  154. bindsym --release Print exec --no-startup-id maim
  155. bindsym --release Shift+Print exec --no-startup-id maim -s
  156. # bindsym $mod+b exec --no-startup-id
  157. bindsym $mod+c exec --no-startup-id "systemctl poweroff"
  158. # bindsym $mod+g exec --no-startup-id
  159. # bindsym $mod+i exec --no-startup-id
  160. # bindsym $mod+m exec --no-startup-id
  161. # bindsym $mod+n exec --no-startup-id
  162. # bindsym $mod+o exec --no-startup-id
  163. # bindsym $mod+p exec --no-startup-id
  164. # bindsym $mod+q exec --no-startup-id
  165. # bindsym $mod+t exec --no-startup-id
  166. # bindsym $mod+u exec --no-startup-id
  167. bindsym $mod+x exec --no-startup-id "systemctl reboot"
  168. # bindsym $mod+y exec --no-startup-id
  169. bindsym $mod+z exec --no-startup-id "xautolock -locknow -locker 'xlock -mode blank'"
  170.  
  171. # Application settings #
  172. workspace_layout tabbed
  173. hide_edge_borders both
  174. new_window pixel 1
  175. new_float none
  176. for_window [window_role="pop-up"] floating enable
  177. for_window [window_role="task_dialog"] floating enable
  178.  
  179. # Application workspaces #
  180. assign [class="URxvt"] $WS1
  181. assign [class="Liferea|Firefox|Meld|libreoffice-calc|Calligrasheets"] $WS2
  182. assign [class="Geany|Pcmanfm|^Gimp$|Inkscape|URxvt"] $WS3
  183. assign [window_role="^gimp$"] $WS3
  184. assign [instance="Steam"] $WS4
  185.  
  186. # Autostart
  187. exec --no-startup-id sh ~/.fehbg
  188. exec --no-startup-id conky
  189. exec --no-startup-id volumeicon
  190. exec --no-startup-id dropboxd
  191. # exec --no-startup-id "i3-msg 'workspace \"[ Term ]\"; append_layout /home/mike/.i3/main.json'"
  192. # exec --no-startup-id urxvt -name "WeeChat" -e 'weechat'
  193. # exec --no-startup-id urxvt -name "Mutt" -e 'mutt'
  194. # exec --no-startup-id myurxvt
  195. exec --no-startup-id i3-msg 'workspace $WS1; exec terminator -l Term; workspace $WS2'
  196. exec --no-startup-id firefox
  197. exec --no-startup-id liferea
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement