Advertisement
MikhailWilson

i3wm Config

Apr 5th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.65 KB | None | 0 0
  1. # i3 config file (v4)
  2. # Font for window titles.
  3. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  4. # FreeType Font
  5. font pango:Monaco 8
  6.  
  7. # Set Modifier Variables
  8. set $mod Mod1
  9. set $con Control
  10.  
  11. # Set Environment Colour Variables
  12. set $bg #000000
  13. set $fg #EFEFEF
  14. set $ur #D64937
  15. set $in #888888
  16.  
  17. # Set Background
  18. set $Background */*/*.png
  19.  
  20. # Set UI Colors
  21. # class border backgr. text indicator
  22. client.focused $bg $bg $fg $ur
  23. client.focused_inactive $bg $bg $in $ur
  24. client.unfocused $bg $bg $in $ur
  25. client.urgent $ur $bg $ur $bg
  26.  
  27. # use Mouse+$mod to drag floating windows to their wanted position
  28. floating_modifier $mod
  29.  
  30. # start a terminal
  31. bindsym $mod+Return exec terminator
  32.  
  33. # kill focused window
  34. bindsym $mod+q kill
  35.  
  36. # start dmenu (a program launcher)
  37. bindsym $mod+Tab exec --no-startup-id i3-dmenu-desktop
  38.  
  39. # change focus
  40. bindsym $mod+h focus left
  41. bindsym $mod+j focus down
  42. bindsym $mod+k focus up
  43. bindsym $mod+l focus right
  44.  
  45. # move focused window
  46. bindsym $mod+Shift+h move left
  47. bindsym $mod+Shift+j move down
  48. bindsym $mod+Shift+k move up
  49. bindsym $mod+Shift+l move right
  50.  
  51. # split in horizontal orientation
  52. bindsym $mod+v split h
  53.  
  54. # split in vertical orientation
  55. bindsym $mod+b split v
  56.  
  57. # enter fullscreen mode for the focused container
  58. bindsym $mod+f fullscreen
  59.  
  60. # change container layout (stacked, tabbed, toggle split)
  61. bindsym $mod+s layout stacking
  62. bindsym $mod+w layout tabbed
  63. bindsym $mod+e layout toggle split
  64.  
  65. # toggle tiling / floating
  66. bindsym $mod+Shift+space floating toggle
  67.  
  68. # change focus between tiling / floating windows
  69. bindsym $mod+space focus mode_toggle
  70.  
  71. # move the currently focused window to the scratchpad
  72. bindsym $mod+Shift+p move scratchpad
  73.  
  74. # Show the next scratchpad window or hide the focused scratchpad window.
  75. # If there are multiple scratchpad windows, this command will cycle through them
  76. bindsym $mod+p scratchpad show
  77.  
  78. # switch to workspace
  79. bindsym $mod+1 workspace 1
  80. bindsym $mod+2 workspace 2
  81. bindsym $mod+3 workspace 3
  82. bindsym $mod+4 workspace 4
  83. bindsym $mod+5 workspace 5
  84. bindsym $mod+6 workspace 6
  85. bindsym $mod+7 workspace 7
  86. bindsym $mod+8 workspace 8
  87. bindsym $mod+9 workspace 9
  88. bindsym $mod+0 workspace 10
  89. bindsym $mod+minus workspace 11
  90. bindsym $mod+equal workspace 12
  91.  
  92. # move focused container to workspace
  93. bindsym $mod+Shift+1 move container to workspace 1
  94. bindsym $mod+Shift+2 move container to workspace 2
  95. bindsym $mod+Shift+3 move container to workspace 3
  96. bindsym $mod+Shift+4 move container to workspace 4
  97. bindsym $mod+Shift+5 move container to workspace 5
  98. bindsym $mod+Shift+6 move container to workspace 6
  99. bindsym $mod+Shift+7 move container to workspace 7
  100. bindsym $mod+Shift+8 move container to workspace 8
  101. bindsym $mod+Shift+9 move container to workspace 9
  102. bindsym $mod+Shift+0 move container to workspace 10
  103. bindsym $mod+Shift+minus move container to workspace 11
  104. bindsym $mod+Shift+equal move container to workspace 12
  105.  
  106. # switch windows between monitors
  107. bindsym $mod+Shift+s move workspace to output right
  108.  
  109. # reload the configuration file
  110. bindsym $mod+Shift+c reload
  111.  
  112. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  113. bindsym $mod+Shift+r restart
  114.  
  115. # lock the screen
  116. bindsym Mod4+l exec i3lock -i $Background -d
  117.  
  118. # rearrange window placement and sizes
  119. mode "resize" {
  120. # modify window sizes
  121. bindsym h resize shrink width 3 px or 3 ppt
  122. bindsym j resize grow height 3 px or 3 ppt
  123. bindsym k resize shrink height 3 px or 3 ppt
  124. bindsym l resize grow width 3 px or 3 ppt
  125. bindsym Left resize shrink width 3 px or 3 ppt
  126. bindsym Down resize grow height 3 px or 3 ppt
  127. bindsym Up resize shrink height 3 px or 3 ppt
  128. bindsym Right resize grow width 3 px or 3 ppt
  129. # change focus
  130. bindsym $mod+h focus left
  131. bindsym $mod+j focus down
  132. bindsym $mod+k focus up
  133. bindsym $mod+l focus right
  134. bindsym $mod+Left focus left
  135. bindsym $mod+Down focus down
  136. bindsym $mod+Up focus up
  137. bindsym $mod+Right focus right
  138. # move focused window
  139. bindsym $mod+Shift+h move left
  140. bindsym $mod+Shift+j move down
  141. bindsym $mod+Shift+k move up
  142. bindsym $mod+Shift+l move right
  143. bindsym $mod+Shift+Left move left
  144. bindsym $mod+Shift+Down move down
  145. bindsym $mod+Shift+Up move up
  146. bindsym $mod+Shift+Right move right
  147. # return to normal
  148. bindsym Return mode "default"
  149. bindsym Escape mode "default"
  150. }
  151.  
  152. bindsym $mod+r mode "resize"
  153.  
  154. mode "(L)ock, (E)xit, (R)eboot, (P)oweroff" {
  155. bindsym l exec i3lock -i $Background -d
  156. bindsym e exec i3-msg exit
  157. bindsym r exec systemctl reboot
  158. bindsym p exec systemctl poweroff
  159. bindsym Return mode "default"
  160. bindsym Escape mode "default"
  161. }
  162.  
  163. bindsym $mod+Delete mode "(L)ock, (E)xit, (R)eboot, (P)oweroff"
  164.  
  165.  
  166. #Set the border width to 0px
  167. new_window pixel 1
  168. hide_edge_borders both
  169. bindsym $mod+t border toggle
  170.  
  171. # Start i3bar
  172. bindsym $mod+i bar mode toggle
  173. bar {
  174. status_command ~/.i3/bin/i3status.sh
  175. position bottom
  176. colors {
  177. background $bg
  178. statusline $fg
  179. focused_workspace $fg $ur
  180. active_workspace $in $ur
  181. inactive_workspace $ur $bg
  182. }
  183. }
  184.  
  185. # Configuration loading and Daemons
  186. exec --no-startup-id ~/.i3/bin/autostart.sh
  187. exec_always --no-startup-id sh ~/.fehbg
  188.  
  189. # Media Keys
  190. bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -- '-5%' && killall -SIGUSR1 i3status
  191. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 -- '+5%' && killall -SIGUSR1 i3status
  192. bindsym XF86AudioMute exec pactl set-sink-volume 0 0 && killall -SIGUSR1 i3status
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement