SHARE
TWEET

I3-Config-Laptop

jv2112 Apr 17th, 2016 118 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ###########
  3. ## Fonts ##
  4. ###########
  5. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  6. font pango: Droid Sans Mono, Droid Sans Semi-Condensed 14
  7.  
  8. ###################
  9. ## WORKSPACE/ Apps#
  10. ###################
  11.  
  12. set $ws1  "1: :1"
  13. set $ws2  "2: :2"
  14. set $ws3  "3: :3"
  15. set $ws4  "4: :4"
  16. set $ws5  "5::5"
  17. set $ws6  "6:  :6"
  18. set $ws7  "7: :7"
  19. set $ws8  "8:@:8"
  20. set $ws9  "9:  :9"
  21. set $ws10 "10:  :10"
  22.  
  23. set $base00 #101218
  24. set $base01 #1f222d
  25. set $base02 #252936
  26. set $base03 #7780a1
  27. set $base04 #C0C5CE
  28. set $base05 #d1d4e0
  29. set $base06 #C9CCDB
  30. set $base07 #ffffff
  31. set $base08 #ee829f
  32. set $base09 #4D07A8
  33. set $base0A #ffefcc
  34. set $base0B #a5ffe1
  35. set $base0C #97e0ff
  36. set $base0D #97bbf7
  37. set $base0E #c0b7f9
  38. set $base0F #fcc09e
  39.  
  40.  
  41.  
  42. # -- Monitor -- #
  43.  
  44. workspace $WS1 output LVDS1
  45. workspace $WS2 output LVDS1
  46. workspace $WS3 output LVDS1
  47. workspace $WS4 output LVDS1
  48. workspace $WS5 output LVDS1
  49. workspace $WS6 output LVDS1
  50. workspace $WS7 output LVDS1
  51. workspace $WS8 output LVDS1
  52. workspace $WS9 output LVDS1
  53. workspace $WS10 output LVDS1
  54.  
  55. # switch to workspace
  56. bindsym $mod+1 workspace $WS1
  57. bindsym $mod+2 workspace $WS2
  58. bindsym $mod+3 workspace $WS3
  59. bindsym $mod+4 workspace $WS4
  60. bindsym $mod+5 workspace $WS5
  61. bindsym $mod+6 workspace $WS6
  62. bindsym $mod+7 workspace $WS7
  63. bindsym $mod+8 workspace $WS8
  64. bindsym $mod+9 workspace $WS9
  65. bindsym $mod+0 workspace $WS10
  66.  
  67. # move focused container to workspace
  68. bindsym $mod+Shift+1 move container to workspace $WS1
  69. bindsym $mod+Shift+2 move container to workspace $WS2
  70. bindsym $mod+Shift+3 move container to workspace $WS3
  71. bindsym $mod+Shift+4 move container to workspace $WS4
  72. bindsym $mod+Shift+5 move container to workspace $WS5
  73. bindsym $mod+Shift+6 move container to workspace $WS6
  74. bindsym $mod+Shift+7 move container to workspace $WS7
  75. bindsym $mod+Shift+8 move container to workspace $WS8
  76. bindsym $mod+Shift+9 move container to workspace $WS9
  77. bindsym $mod+Shift+0 move container to workspace $WS10
  78.  
  79. ###################
  80. # AUTOSTART STUFF #
  81. ###################
  82.  
  83. exec conky -c /home/joe/Scripts/Conky/Conky-I3.conf
  84. exec feh --bg-scale --recursive --randomize /home/joe/Pictures/Cool-Graphics/Wallpaper/*
  85. exec synapse
  86. exec vattery
  87. exec /usr/sbin/mpd /home/joe/.mpd.conf
  88. exec/home/joe/bin/Welcome
  89. exec /usr/bin/compton --config /home/joe/.compton.conf
  90.  
  91. # Media Monitoring
  92. exec udiskie
  93. exec (sleep 3 && /usr/bin/nm-applet --sm-disable)
  94. exec volumeicon
  95. exec clipit
  96.  
  97.  
  98. new_window pixel 3
  99. workspace_auto_back_and_forth yes
  100.  
  101. #### Key Binds ####
  102.  
  103. ## System ###
  104.  
  105. set $mod Mod4
  106.  
  107. for_window [window_role="pop-up"] floating enable
  108. # reload the configuration file
  109. bindsym $mod+Shift+c reload
  110.  
  111. bindsym $mod+F3 exec feh --bg-scale --recursive --randomize /home/joe/Pictures/Cool-Graphics/Wallpaper/*
  112.  
  113. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  114. bindsym $mod+Shift+r restart
  115.  
  116.  
  117. # Use Mouse+$mod to drag floating windows to their wanted position
  118. floating_modifier $mod
  119.  
  120. # kill focused window
  121. bindsym $mod+Shift+q kill
  122.  
  123. # Toggle touch pad on / off
  124. bindsym $mod+z      exec --no-startup-id /home/joe/bin/tp.sh
  125.  
  126.  
  127. # Layout mode for new containers: default | stacking | tabbed
  128. workspace_layout tabbed
  129.  
  130. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  131. mode "$mode_system" {
  132.     bindsym l exec --no-startup-id /home/joe/bin/i3exit lock, mode "default"
  133.     bindsym e exec --no-startup-id /home/joe/bin/i3exit logout, mode "default"
  134.     bindsym s exec --no-startup-id home/joe/bin/i3exit suspend, mode "default"
  135.     bindsym h exec --no-startup-id /home/joe/bin/i3exit hibernate, mode "default"
  136.     bindsym r exec --no-startup-id /home/joe/bin/i3exit reboot, mode "default"
  137.     bindsym Shift+s exec --no-startup-id /home/joe/bin/i3exit shutdown, mode "default"  
  138.  
  139.     # back to normal: Enter or Escape
  140.     bindsym Return mode "default"
  141.     bindsym Escape mode "default"
  142. }
  143. bindsym $mod+Pause mode "$mode_system"
  144.  
  145.  
  146. bindsym $mod+Tab  exec --no-startup-id quickswitch.py
  147.  
  148. floating_minimum_size 75 x 50
  149. floating_maximum_size -1 x -1
  150.  
  151.  
  152. # Audio Controls
  153. bindsym  XF86_AudioLowerVolume exec amixer -q set Master 10%- unmute
  154. bindsym  XF86_AudioMute  exec amixer -q set Master playback toggle
  155. bindsym  XF86_AudioRaiseVolume exec amixer -q set Master 10%+ unmute
  156. bindsym $mod+u exec /home/joe/bin/tog.sh
  157. bindsym $mod+p exec /usr/bin/pavucontrol
  158.  
  159.  
  160. ## Programs ##
  161.  
  162. # --- Assignment to Workspace -- #
  163. assign [class="(?i)Firefox"] $WS1
  164. assign [class="(?i)libreoffice-startcenter"] $WS7
  165. assign [class="(?i)thunar"] $WS5
  166. assign [class="(?i)Clementine"] $WS3
  167. assign [class="(?i)vlc"] $WS3
  168. assign [class="(?i)vlc"] $WS3
  169. assign [class="(?i)galculator"] $WS7
  170. assign [class="(?i)lxterminal"] $WS2
  171. assign [class="(?i)minecraft"] $WS10
  172. assign [class="(?i)Steam"] $WS10
  173. assign [class="(?i)Conky"] $WS6
  174.  
  175. # -- Window --#
  176. for_window [class="(?i)clementine"] floating enable
  177. for_window [class="(?i)vlc"] floating enable
  178. for_window [class="(?i)medit"] floating enable
  179. for_window [class="(?i)galculator"] floating enable
  180. for_window [class="(?i)Conky"] floating enable  border 3 pixel  
  181. for_window [class="(?i)Galculator"] floating enable border 3 pixel
  182.  
  183. #---Key Binds---#
  184. bindsym $mod+F5 exec --no-startup-id medit
  185. bindsym $mod+m exec --no-startup-id clementine
  186. bindsym $mod+w exec --no-startup-id firefox
  187. bindsym $mod+o exec --no-startup-id libreoffice
  188. bindsym $mod+f exec  --no-startup-id thunar
  189. bindsym $mod+F6 exec --no-startup-id galculator
  190. bindsym $mod+t exec --no-startup-id lxterminal -e tmux
  191. bindsym $mod+F10 exec --no-startup-id minecraft
  192. bindsym $mod+F11 exec --no-startup-id steam
  193.  
  194.  
  195. # alternatively, you can use the cursor keys:
  196. bindsym $mod+Left focus left
  197. bindsym $mod+Down focus down
  198. bindsym $mod+Up focus up
  199. bindsym $mod+Right focus right
  200.  
  201. # alternatively, you can use the cursor keys:
  202. bindsym $mod+Shift+Left move left
  203. bindsym $mod+Shift+Down move down
  204. bindsym $mod+Shift+Up move up
  205. bindsym $mod+Shift+Right move right
  206.  
  207. # split in horizontal orientation
  208. bindsym $mod+h split h
  209.  
  210. # split in vertical orientation
  211. bindsym $mod+v split v
  212.  
  213. # enter fullscreen mode for the focused container
  214. bindsym $mod+Shift+f fullscreen
  215.  
  216. # change container layout (stacked, tabbed, toggle split)
  217. bindsym $mod+Shift+h layout stacking
  218. bindsym $mod+Shift+j layout tabbed
  219. bindsym $mod+Shift+k layout toggle split
  220.  
  221. # toggle tiling / floating
  222. bindsym $mod+Shift+space floating toggle
  223.  
  224. # change focus between tiling / floating windows
  225. bindsym $mod+space focus mode_toggle
  226.  
  227. # focus the parent container
  228. bindsym $mod+a focus parent
  229.  
  230. #Pop Up in full screenift_
  231. popup_during_fullscreen smart
  232.  
  233. # Toggle between screens
  234. workspace_auto_back_and_forth yes
  235.  
  236. # Window border size
  237. new_window pixel 3
  238.  
  239. # focus the child container
  240. #bindsym $mod+d focus child
  241.  
  242.  
  243. bindsym $mod+r mode "resize"
  244.  
  245. # resize window (you can also use the mouse for that)
  246. mode "resize" {
  247.         # These bindings trigger as soon as you enter the resize mode
  248.  
  249.         # Pressing left will shrink the window’s width.
  250.         # Pressing right will grow the window’s width.
  251.         # Pressing up will shrink the window’s height.
  252.         # Pressing down will grow the window’s height.
  253.  
  254.         # same bindings, but for the arrow keys
  255.         bindsym Left resize shrink width 10 px or 10 ppt
  256.         bindsym Down resize grow height 10 px or 10 ppt
  257.         bindsym Up resize shrink height 10 px or 10 ppt
  258.         bindsym Right resize grow width 10 px or 10 ppt
  259.  
  260.         # back to normal: Enter or Escape
  261.         bindsym Return mode "default"
  262.         bindsym Escape mode "default"
  263. }
  264.  
  265.  
  266.  
  267. # Widow Colours
  268. #                         border  background text    indicator
  269.   client.focused          $base01 $base01    $base07 $base0F
  270.   client.focused_inactive $base02 $base02    $base03 $base0F
  271.   client.unfocused        $base02 $base02    $base09 $base0F
  272.   client.urgent           $base02 $base08    $base00 $base0F
  273.  
  274.  
  275. ### Bottom Bar -- Buttons ######
  276.  
  277.  
  278. bar {
  279. id primary
  280. strip_workspace_numbers yes
  281. mode dock
  282. position bottom
  283. workspace_buttons yes
  284.  
  285. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  286. font pango: Droid Sans Semi-Condensed 12
  287.  
  288. colors  
  289. {
  290.  # Type             border  background font
  291.  focused_workspace  #008fff #007fff #ffffff
  292.  active_workspace   #333333 #5f676a #ffffff
  293.  inactive_workspace #333333 #222222 #888888
  294.  urgent_workspace   #aa0000 #990000 #ffffff
  295.  
  296.  separator $base03
  297.  background $base01
  298.  statusline $base05
  299.  }
  300. }
  301.  
  302.  
  303. ### Container Colors #######
  304.  
  305.  
  306. #class                          border      backgr.     text
  307. client.focused                  #ffffff     #000F1F     #FFCC00
  308. client.focused_inactive         #29297A     #000033     #FF9900
  309. client.unfocused                #29297A     #000033     #009933
  310. client.urgent                   #1733A3     #000033     #f4e615
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top