Advertisement
Guest User

Untitled

a guest
Feb 15th, 2015
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.40 KB | None | 0 0
  1. # vim:filetype=i3
  2. # syntax available at: https://github.com/PotatoesMaster/i3-vim-syntax.git
  3.  
  4. # ------------------------------------------------------------------------------
  5. # General settings
  6. # ------------------------------------------------------------------------------
  7.  
  8. set $mod Mod4
  9. set $alt Mod1
  10. set $term terminator
  11.  
  12. font pango:Inconsolata Mono 10
  13.  
  14. set $lime      #9FBC00
  15. set $darklime  #505e00
  16. set $blue      #131D24
  17. set $lightblue #232D34
  18. set $lightgray #DDEEDD
  19. set $darkgray  #444444
  20. set $white     #FFFFFF
  21. set $urgentred #B33A3A
  22.  
  23. bar {
  24.         status_command i3status -c $HOME/.i3/i3status.conf
  25.         font pango:Inconsolata Mono, FontAwesome, fontawesome-webfont, ionicons, icons 8
  26.         colors {
  27.             background #3f3f3f
  28.             statusline #dcdccc
  29.  
  30.             focused_workspace  #93b3a3 #3f3f3f #93b3a3
  31.             active_workspace   #ffcfaf #3f3f3f #ffcfaf
  32.             inactive_workspace #636363 #3f3f3f #dcdccc
  33.             urgent_workspace   #dca3a3 #3f3f3f #dca3a3
  34.             separator          #9FBC00
  35.         }
  36. }
  37.  
  38. # colors
  39. # from: https://gist.github.com/paulbdavis/4956329
  40. # class                 border  backgr. text    indicator
  41. client.focused          #dcdccc #dcdccc #3c3b37 #ffcfaf
  42. client.focused_inactive #3c3b37 #3c3b37 #7f9f7f #3c3b37
  43. client.unfocused        #3c3b37 #3c3b37 #dcdccc #3c3b37
  44. client.urgent           #dca3a3 #dca3a3 #dcdccc #3c3b37
  45.  
  46. # Use Mouse+$mod to drag floating windows to their wanted position
  47. floating_modifier $mod
  48.  
  49. # start a terminal
  50. #bindsym $mod+Return exec i3-sensible-terminal
  51. bindsym $mod+Return exec $term
  52.  
  53. # kill focused window
  54. bindsym $alt+F4 kill
  55.  
  56. # lock screen
  57. bindsym Control+$alt+l exec $HOME/.i3/i3-lock-wrapper
  58.  
  59. # start dmenu (a program launcher)
  60. bindsym $mod+d exec dmenu_run -i -p "Search:" -nb "$blue" -nf "$lightgray" -sb "$lightblue" -sf "$lime"
  61. bindsym $mod+Shift+d exec --no-startup-id i3-dmenu-desktop --dmenu='dmenu -i -p "Search:" -nb "$blue" -nf "$lightgray" -sb "$lightblue" -sf "$lime"'
  62.  
  63. # no window border
  64. for_window [class="^.*"] border none
  65.  
  66. # ------------------------------------------------------------------------------
  67. # Orientation
  68. # ------------------------------------------------------------------------------
  69.  
  70. # change focus
  71. bindsym $mod+Left focus left
  72. bindsym $mod+Down focus down
  73. bindsym $mod+Up focus up
  74. bindsym $mod+Right focus right
  75.  
  76. # move focused window
  77. bindsym $mod+Shift+Left move left
  78. bindsym $mod+Shift+Down move down
  79. bindsym $mod+Shift+Up move up
  80. bindsym $mod+Shift+Right move right
  81.  
  82. #Alternative, using hjkl
  83. # change focus
  84. bindsym $mod+h focus left
  85. bindsym $mod+j focus down
  86. bindsym $mod+k focus up
  87. bindsym $mod+l focus right
  88.  
  89. # move focused window
  90. bindsym $mod+Shift+h move left
  91. bindsym $mod+Shift+j move down
  92. bindsym $mod+Shift+k move up
  93. bindsym $mod+Shift+l move right
  94.  
  95.  
  96. #Ok, wtf?
  97. # split in horizontal orientation
  98. # Yup, split v will split in horizontal...
  99. bindsym $mod+o split v
  100. # split in vertical orientation
  101. bindsym $mod+e split h
  102.  
  103. # enter fullscreen mode for the focused container
  104. bindsym $mod+f fullscreen
  105.  
  106. # change container layout (stacked, tabbed, toggle split)
  107. bindsym $mod+s layout stacking
  108. bindsym $mod+t layout tabbed
  109. bindsym $mod+Shift+s layout toggle split
  110.  
  111. # toggle tiling / floating
  112. bindsym $mod+Shift+space floating toggle
  113.  
  114. # change focus between tiling / floating windows
  115. bindsym $mod+space focus mode_toggle
  116.  
  117. # focus the parent container
  118. bindsym $mod+q focus parent
  119.  
  120. # focus the child container
  121. #bindsym $mod+d focus child
  122.  
  123. # ------------------------------------------------------------------------------
  124. # Workspaces
  125. # ------------------------------------------------------------------------------
  126.  
  127. set $WS1 1
  128. set $WS2 2
  129. set $WS3 3
  130. set $WS4 4
  131. set $WS5 5
  132. set $WS6 6
  133. set $WS7 7
  134. set $WS8 8
  135. set $WS9 9
  136. set $WS10 10
  137.  
  138. # switch to workspace
  139. bindsym $mod+ampersand workspace $WS1
  140. bindsym $mod+eacute workspace $WS2
  141. bindsym $mod+quotedbl workspace $WS3
  142. bindsym $mod+apostrophe workspace $WS4
  143. bindsym $mod+parenleft workspace $WS5
  144. bindsym $mod+minus workspace $WS6
  145. bindsym $mod+egrave workspace $WS7
  146. bindsym $mod+underscore workspace $WS8
  147. bindsym $mod+ccedilla workspace $WS9
  148. bindsym $mod+agrave workspace $WS10
  149.  
  150. # move focused container to workspace
  151. bindsym $mod+Shift+ampersand move container to workspace $WS1
  152. bindsym $mod+Shift+eacute move container to workspace $WS2
  153. bindsym $mod+Shift+quotedbl move container to workspace $WS3
  154. bindsym $mod+Shift+apostrophe move container to workspace $WS4
  155. bindsym $mod+Shift+5 move container to workspace $WS5
  156. bindsym $mod+Shift+minus move container to workspace $WS6
  157. bindsym $mod+Shift+egrave move container to workspace $WS7
  158. bindsym $mod+Shift+underscore move container to workspace $WS8
  159. bindsym $mod+Shift+ccedilla move container to workspace $WS9
  160. bindsym $mod+Shift+agrave move container to workspace $WS10
  161.  
  162. # ------------------------------------------------------------------------------
  163. # Window properties
  164. # ------------------------------------------------------------------------------
  165.  
  166. #for_window [class="Gvim"]     floating enable, border none
  167. for_window [class="Vlc"]      floating enable, border none
  168. for_window [class="nautilus"] floating enable, border none
  169.  
  170. # Correct handling of dialogs
  171. for_window [class="Lxappearance"] floating enable
  172. for_window [class="Xarchiver"] floating enable
  173. for_window [instance="Msgcompose"] floating enable
  174. for_window [title="Preferences$"] floating enable
  175. for_window [window_role="pop-up"] floating enable
  176. for_window [window_role="task_dialog"] floating enable
  177. for_window [window_role="About"] floating enable
  178.  
  179. # ------------------------------------------------------------------------------
  180. # Application settings
  181. # ------------------------------------------------------------------------------
  182.  
  183. # volume controle
  184. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -- -7%
  185. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -- +5%
  186. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
  187.  
  188. # Screenshot
  189. bindsym --release Print exec --no-startup-id scrot '%s_%Y-%m-%d-.png' -e 'mv $f ~'
  190. bindsym --release Shift+Print exec --no-startup-id scrot '%s_%Y-%m-%d-.png' -s -e 'mv $f ~'
  191.  
  192. # reload the configuration file
  193. bindsym $mod+Shift+c reload
  194. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  195. bindsym $mod+Shift+r restart
  196. # exit i3 (logs you out of your X session)
  197. set $i3exitdialog  "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'"
  198. bindsym $mod+Shift+e exec $i3exitdialog
  199. bindsym $mod+Delete exec $i3exitdialog
  200.  
  201. # ------------------------------------------------------------------------------
  202. # Modes
  203. # ------------------------------------------------------------------------------
  204.  
  205. # resize window (you can also use the mouse for that)
  206. mode "resize" {
  207.         # These bindings trigger as soon as you enter the resize mode
  208.         bindsym j resize shrink width 10 px or 10 ppt
  209.         bindsym k resize grow height 10 px or 10 ppt
  210.         bindsym l resize shrink height 10 px or 10 ppt
  211.         bindsym m resize grow width 10 px or 10 ppt
  212.  
  213.         # same bindings, but for the arrow keys
  214.         bindsym Left resize shrink width 10 px or 10 ppt
  215.         bindsym Down resize grow height 10 px or 10 ppt
  216.         bindsym Up resize shrink height 10 px or 10 ppt
  217.         bindsym Right resize grow width 10 px or 10 ppt
  218.  
  219.         # back to normal: Enter or Escape
  220.         bindsym Return mode "default"
  221.         bindsym Escape mode "default"
  222. }
  223.  
  224. bindsym $mod+r mode "resize"
  225.  
  226. # System mode
  227.  
  228. set $sysmenu "system:  [r]eload  [l]ogout  [p]oweroff  re[b]oot"
  229. bindsym $mod+Escape      mode $sysmenu
  230. mode $sysmenu {
  231.     bindsym r         restart
  232.     bindsym l         exec --no-startup-id ~/.i3/i3exit logout, mode "default"
  233.     bindsym p         exec --no-startup-id ~/.i3/i3exit shutdown, mode "default"
  234.     bindsym b         exec --no-startup-id ~/.i3/i3exit reboot, mode "default"
  235.     bindsym Return    mode "default"
  236.     bindsym Escape    mode "default"
  237. }
  238.  
  239. # Wallpaper
  240. exec_always --no-startup-id feh --bg-center $HOME/Pictures/HAT7K5Y.png
  241.  
  242. # start tray applications
  243. exec --no-startup-id gnome-settings-daemon
  244. exec --no-startup-id nm-applet
  245. exec --no-startup-id gnome-sound-applet
  246. exec --no-startup-id dropbox start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement