Advertisement
okubax

i3config

Jul 10th, 2013
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. font xft:Droid Sans 8
  4. new_window pixel 2
  5. focus_follows_mouse no
  6.  
  7. set $blue #005588
  8. set $gray1 #484848
  9. set $gray2 #333333
  10.  
  11. client.focused $gray1 $gray1 #FFFFFF #333333
  12. client.focused_inactive $gray2 $gray2 #FFFFFF #000000
  13. client.unfocused $gray2 $gray2 #FFFFFF #000000
  14.  
  15. # use Mouse+$mod to drag floating windows to their wanted position
  16. floating_modifier $mod
  17.  
  18. #start firefox
  19. bindsym $mod+w exec firefox
  20.  
  21. #start tor browser
  22. bindsym $mod+b exec /home/ajibola/Downloads/tor-browser_en-US/start-tor-browser
  23.  
  24. # start a terminal
  25. bindsym $mod+Return exec terminator
  26.  
  27. #start editor
  28. bindsym $mod+e exec geany
  29.  
  30. #start file manager
  31. bindsym $mod+t exec thunar
  32.  
  33. #start irssi
  34. bindsym $mod+i exec terminator --command="irssi"
  35.  
  36. # kill focused window
  37. bindsym $mod+c kill
  38.  
  39. # start dmenu (a program launcher)
  40. bindsym $mod+p exec dmenu_run -nb black
  41.  
  42. # screen lock
  43. bindsym Control+$mod+l exec slimlock
  44.  
  45. # change focus
  46. bindsym $mod+h focus left
  47. bindsym $mod+j focus down
  48. bindsym $mod+k focus up
  49. bindsym $mod+l focus right
  50.  
  51. # move focused window
  52. bindsym $mod+Shift+h move left
  53. bindsym $mod+Shift+j move down
  54. bindsym $mod+Shift+k move up
  55. bindsym $mod+Shift+l move right
  56.  
  57. # split in horizontal orientation
  58. bindsym $mod+v split h
  59.  
  60. # split in vertical orientation
  61. bindsym $mod+g split v
  62.  
  63. # enter fullscreen mode for the focused container
  64. bindsym $mod+f fullscreen
  65.  
  66. # change container layout (tabbed, toggle split)
  67. bindsym $mod+n layout tabbed
  68. bindsym $mod+m layout toggle split
  69.  
  70. # container navigation
  71. bindsym $mod+d focus parent
  72. bindsym $mod+r focus child
  73.  
  74. # move container between displays
  75. bindsym $mod+semicolon move workspace to output right
  76.  
  77. # toggle tiling / floating
  78. bindsym $mod+Shift+f floating toggle
  79.  
  80. # change focus between tiling / floating windows
  81. bindsym $mod+space focus mode_toggle
  82.  
  83. # switch to last workspace
  84. bindsym $mod+u workspace back_and_forth
  85.  
  86. # switch to workspace
  87. bindsym $mod+1 workspace 1:
  88. bindsym $mod+2 workspace 2:
  89. bindsym $mod+3 workspace 3:
  90. bindsym $mod+4 workspace 4:
  91. bindsym $mod+5 workspace 5:
  92. bindsym $mod+6 workspace 6:
  93. bindsym $mod+7 workspace 7:
  94. bindsym $mod+8 workspace 8:
  95. bindsym $mod+9 workspace 9:
  96.  
  97. # move focused container to workspace
  98. bindsym $mod+Shift+1 move container to workspace 1:
  99. bindsym $mod+Shift+2 move container to workspace 2:
  100. bindsym $mod+Shift+3 move container to workspace 3:
  101. bindsym $mod+Shift+4 move container to workspace 4:
  102. bindsym $mod+Shift+5 move container to workspace 5:
  103. bindsym $mod+Shift+6 move container to workspace 6:
  104. bindsym $mod+Shift+7 move container to workspace 7:
  105. bindsym $mod+Shift+8 move container to workspace 8:
  106. bindsym $mod+Shift+9 move container to workspace 9:
  107.  
  108. bindsym $mod+z reload
  109. bindsym $mod+Shift+x restart
  110. bindsym $mod+Shift+z exit
  111.  
  112. mode "resize" {
  113. bindsym h resize shrink width 10 px or 10 ppt
  114. bindsym j resize grow height 10 px or 10 ppt
  115. bindsym k resize shrink height 10 px or 10 ppt
  116. bindsym l resize grow width 10 px or 10 ppt
  117.  
  118. # back to normal: Enter or Escape or q or ^[
  119. bindsym Return mode "default"
  120. bindsym q mode "default"
  121. bindsym Escape mode "default"
  122. bindcode Control+34 mode "default"
  123. }
  124.  
  125. bindsym $mod+s mode "resize"
  126.  
  127.  
  128. # multimedia keys
  129. bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '3%+'"
  130. bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
  131. bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
  132.  
  133. bindsym XF86AudioPlay exec "mpc toggle"
  134. bindsym XF86AudioStop exec "mpc stop"
  135. bindsym XF86AudioNext exec "mpc next"
  136. bindsym XF86AudioPrev exec "mpc prev"
  137.  
  138. bindsym XF86KbdBrightnessDown exec "sudo /opt/kbdlight/bin/kbdlight -"
  139. bindsym XF86KbdBrightnessUp exec "sudo /opt/kbdlight/bin/kbdlight +"
  140. bindsym XF86TouchpadToggle exec "synclient TouchpadOff=$(synclient | awk '/TouchpadOff/ {print ($3+1)%2}')"
  141.  
  142. #bindsym $mod+a exec "urxvtc -e alsamixer"
  143. #bindsym $mod+Shift+a exec "pavucontrol"
  144.  
  145. bar {
  146. # status_command i3status
  147. position top
  148. status_command $HOME/bin/conky-i3bar
  149.  
  150. colors {
  151. statusline #666666
  152.  
  153. # class border backgrd text
  154. focused_workspace #000000 #000000 #d70a53
  155. active_workspace #000000 #000000 #696f89
  156. inactive_workspace #000000 #000000 #696f89
  157. urgent_workspace #d72f6b #d70a53 #FFFF50
  158. }
  159. }
  160.  
  161. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  162. mode "$mode_system" {
  163. bindsym l exec --no-startup-id i3exit lock, mode "default"
  164. bindsym e exec --no-startup-id i3exit logout, mode "default"
  165. bindsym s exec --no-startup-id i3exit suspend, mode "default"
  166. bindsym h exec --no-startup-id i3exit hibernate, mode "default"
  167. bindsym r exec --no-startup-id i3exit reboot, mode "default"
  168. bindsym Shift+s exec --no-startup-id i3exit shutdown, mode "default"
  169.  
  170. # back to normal: Enter or Escape
  171. bindsym Return mode "default"
  172. bindsym Escape mode "default"
  173. }
  174. bindsym $mod+x mode "$mode_system"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement