Advertisement
cirrus

~/.i3/config

Mar 5th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 9.35 KB | None | 0 0
  1. # This file has been auto-generated by i3-config-wizard(1).
  2. # It will not be overwritten, so edit it as you like.
  3. #
  4. # Should you change your keyboard layout somewhen, delete
  5. # this file and re-run i3-config-wizard(1).
  6. #
  7. #
  8. # i3 config file (v4)
  9. #
  10. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  11. #mod4=super,mod1=alt
  12. set $mod Mod4
  13.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below. ISO 10646 = Unicode
  16. font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  17. # The font above is very space-efficient, that is, it looks good, sharp and
  18. # clear in small sizes. However, if you need a lot of unicode glyphs or
  19. # right-to-left text rendering, you should instead use pango for rendering and
  20. # chose a FreeType font, such as:
  21. # font pango:DejaVu Sans Mono 10
  22.  
  23. # Use Mouse+$mod to drag floating windows to their wanted position
  24. floating_modifier $mod
  25.  
  26. # start a terminal
  27. #bindsym $mod+Return exec i3-sensible-terminal -e tmux
  28. bindsym $mod+Return exec lxterminal -e tmux
  29.  
  30. # kill focused window
  31. bindsym $mod+q kill
  32.  
  33. #floating window size
  34. floating_minimum_size 75 x 50
  35. floating_maximum_size -1 x -1
  36.  
  37. # take screenshot
  38. # bindsym --release $mod+x exec --no-startup-id xdotool key --clearmodifiers ctrl+v
  39. # bindsym --release $mod+z exec --no-startup-id import /tmp/latest-screenshot.png
  40. # start dmenu (a program launcher)
  41. bindsym $mod+d exec ~/i3dmenu.sh
  42. # There also is the (new) i3-dmenu-desktop which only displays applications
  43. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  44. # installed.
  45. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  46.  
  47. # change focus
  48. bindsym $mod+j focus left
  49. bindsym $mod+k focus down
  50. bindsym $mod+l focus up
  51. bindsym $mod+semicolon focus right
  52.  
  53. # alternatively, you can use the cursor keys:
  54. bindsym $mod+Left focus left
  55. bindsym $mod+Down focus down
  56. bindsym $mod+Up focus up
  57. bindsym $mod+Right focus right
  58.  
  59. # move focused window
  60. bindsym $mod+Shift+j move left
  61. bindsym $mod+Shift+k move down
  62. bindsym $mod+Shift+l move up
  63. bindsym $mod+Shift+semicolon move right
  64.  
  65. # alternatively, you can use the cursor keys:
  66. bindsym $mod+Shift+Left move left
  67. bindsym $mod+Shift+Down move down
  68. bindsym $mod+Shift+Up move up
  69. bindsym $mod+Shift+Right move right
  70.  
  71. # split in horizontal orientation
  72. bindsym $mod+h split h
  73.  
  74. # split in vertical orientation
  75. bindsym $mod+v split v
  76.  
  77. # enter fullscreen mode for the focused container
  78. bindsym $mod+f fullscreen
  79.  
  80. # change container layout (stacked, tabbed, toggle split)
  81. bindsym $mod+s layout stacking
  82. bindsym $mod+w layout tabbed
  83. bindsym $mod+e layout toggle split
  84.  
  85. # toggle tiling / floating
  86. bindsym $mod+Shift+space floating toggle
  87.  
  88. # change focus between tiling / floating windows
  89. bindsym $mod+space focus mode_toggle
  90.  
  91. # focus the parent container
  92. bindsym $mod+a focus parent
  93.  
  94. # focus the child container
  95. #bindsym $mod+d focus child
  96.  
  97. # Workspace names
  98. workspace "1:Web" output DVI-I-2
  99. workspace "2:IRC" output DVI-I-3
  100. workspace "3:Mail" output DVI-I-3
  101. workspace "4:Mail" output DVI-I-3
  102. workspace "5:Media" output DVI-I-3
  103. workspace "6:Scratch" output DVI-I-3
  104.  
  105. # switch to workspace
  106. bindsym $mod+1 workspace 1:Web
  107. bindsym $mod+2 workspace 2:IRC
  108. bindsym $mod+3 workspace 3:Shell
  109. bindsym $mod+4 workspace 4:Mail
  110. bindsym $mod+5 workspace 5:Media
  111. bindsym $mod+6 workspace 6:Scratch
  112. bindsym $mod+7 workspace 7
  113. bindsym $mod+8 workspace 8
  114. bindsym $mod+9 workspace 9
  115. bindsym $mod+0 workspace 10
  116.  
  117. # move focused container to workspace
  118. bindsym $mod+Shift+1 move container to workspace 1:Web
  119. bindsym $mod+Shift+2 move container to workspace 2:IRC
  120. bindsym $mod+Shift+3 move container to workspace 3:Shell
  121. bindsym $mod+Shift+4 move container to workspace 4:Mail
  122. bindsym $mod+Shift+5 move container to workspace 5:Media
  123. bindsym $mod+Shift+6 move container to workspace 6:Scratch
  124. bindsym $mod+Shift+7 move container to workspace 7
  125. bindsym $mod+Shift+8 move container to workspace 8
  126. bindsym $mod+Shift+9 move container to workspace 9
  127. bindsym $mod+Shift+0 move container to workspace 10
  128.  
  129. #scratchpad
  130. # Make the currently focused window a scratchpad
  131. bindsym $mod+Shift+minus move scratchpad
  132.  
  133. # Show the first scratchpad window
  134. bindsym $mod+minus scratchpad show
  135.  
  136. # starting a specially named term automatically
  137. exec --no-startup-id urxvt -name scratchpad -e /usr/bin/nano
  138. # move this to scratchpad, if active
  139. for_window [class="URxvt" instance="scratchpad"] move scratchpad
  140.  
  141.  
  142. # reload the configuration file
  143. bindsym $mod+Shift+c reload
  144. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  145. bindsym $mod+Shift+r restart
  146. # exit i3 (logs you out of your X session)
  147. bindsym $mod+Shift+e exec "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'"
  148.  
  149. # resize window (you can also use the mouse for that)
  150. mode "resize" {
  151.         # These bindings trigger as soon as you enter the resize mode
  152.  
  153.         # Pressing left will shrink the window’s width.
  154.         # Pressing right will grow the window’s width.
  155.         # Pressing up will shrink the window’s height.
  156.         # Pressing down will grow the window’s height.
  157.         bindsym j resize shrink width 10 px or 10 ppt
  158.         bindsym k resize grow height 10 px or 10 ppt
  159.         bindsym l resize shrink height 10 px or 10 ppt
  160.         bindsym semicolon resize grow width 10 px or 10 ppt
  161.  
  162.         # same bindings, but for the arrow keys
  163.         bindsym Left resize shrink width 10 px or 10 ppt
  164.         bindsym Down resize grow height 10 px or 10 ppt
  165.         bindsym Up resize shrink height 10 px or 10 ppt
  166.         bindsym Right resize grow width 10 px or 10 ppt
  167.  
  168.         # back to normal: Enter or Escape
  169.         bindsym Return mode "default"
  170.         bindsym Escape mode "default"
  171. }
  172.  
  173. bindsym $mod+r mode "resize"
  174.  
  175. # Start i3bar to display a workspace bar (plus the system information i3status
  176. # finds out, if available)
  177.  
  178. bar {  
  179.         output DVI-I-2
  180.         status_command i3status
  181.         colors {
  182. background #000000
  183. statusline #4c7899
  184. separator #9BC0CA
  185.  
  186. focused_workspace #7DD427 #4094BF #ffffff
  187. active_workspace #4094BF #5f676a #ffffff
  188. inactive_workspace #7DD427 #222222 #888888
  189. urgent_workspace #2f343a #900000 #ffffff
  190.    }
  191. }
  192.  
  193. bar {  
  194.         output DVI-I-3
  195.          status_command $HOME/.config/i3/startup_conky
  196.         colors {
  197. background #000000
  198. statusline #497BF7
  199. separator #9BC0CA
  200.  
  201. focused_workspace #7DD427 #4094BF #ffffff
  202. active_workspace #4094BF #5f676a #ffffff
  203. inactive_workspace #7DD427 #222222 #888888
  204. urgent_workspace #2f343a #900000 #ffffff
  205.    }
  206. }
  207.  
  208. # window border colours
  209. # class                 border  backgr. text    indicator
  210. client.focused          #7DD427 #002833 #54ffbc #2e9ef4
  211. client.focused_inactive #7DD427 #002B36 #5AC91E #CCCCCC
  212. client.unfocused        #F97E2A #002B36 #5AC91E #ffa500
  213. client.urgent           #2f343a #900000 #ffffff #900000
  214.  
  215. # default applications
  216. set $editor leafpad
  217. set $browser firefox
  218. set $player mpv
  219. set $email mutt
  220. set $mp3 mpg123
  221.  
  222. # float the following
  223. for_window [class="Pcmanfm"] floating enable; focus mode toggle
  224. for_window [class="Lxterminal"] floating enable; focus mode toggle
  225. for_window [class="Gimp"] floating enable
  226. for_window [class="Mpv"] floating enable; border none
  227. for_window [class="Mplayer"] floating enable; border none
  228. for_window [class="Firefox"]  focus mode_toggle;
  229. for_window [class="Guake"] floating enable
  230. for_window [class="Sxiv"] floating enable; focus mode_toggle;
  231. for_window [class="Audacious"] floating enable; focus mode_toggle; border none
  232. for_window [class="Spacefm" instance="Dialog"] floating  enable;  focus mode_toggle
  233. for_window [class="Xfce4-notifyd"] floating enable; border none; focus mode_toggle
  234. for_window [class="Torrent-search"] floating enable; border none; focus mode_toggle
  235. for_window [class="Transmission"] floating enable;  focus mode_toggle
  236. #for_window [class="Conky"] floating enable; border none; focus mode_toggle
  237.  
  238. # Assignment to a named workspace
  239. assign [class="Firefox"] 1:Web
  240. assign [class="Chromium"] 1:Web
  241. assign [class="Termite"] 2:IRC
  242. assign [class="Tilda"] 5:Media
  243. assign [class="Terminator"] 4:Mail
  244. assign [class="Sakura"] 3:Shell
  245.  
  246. #autostarts
  247. exec --no-startup-id nitrogen --restore
  248. exec --no-startup-id compton --config ~/.compton.conf
  249. exec --no-startup-id rm -rf ~/.config/mpdnotify/pid
  250. exec --no-startup-id xset s noblank
  251. #exec --no-startup-id conky -c ~/.conkybarrc
  252. exec --no-startup-id setterm -blank 0 -powerdown 0
  253. exec --no-startup-id xset -dpms; xset s off
  254. exec --no-startup-id notify-send -i ~/.icons/arch48.png "Archlinux i686 ONLINE"
  255. exec --no-startup-id (sleep 20 && notify-send -i ~/.icons/arch48.png "OS- Archlinux i686" "Installed on Fri Feb  1 2013 at 19:36:52")
  256. exec --no-startup-id firefox
  257. exec --no-startup-id termite -e tmux
  258. exec --no-startup-id sakura
  259. exec --no-startup-id sudo noip2
  260. exec --no-startup-id terminator -e mutt
  261. exec --no-startup-id tilda
  262. exec --no-startup-id volumeicon
  263. exec --no-startup-id gmail-notify
  264. exec --no-startup-id conky -c ~/.conkyrcbar
  265.  
  266. # custom keybinds
  267. bindsym Mod4+F11 exec pcmanfm
  268. bindsym Mod1+l exec leafpad
  269. bindsym Mod4+F12 exec lxterminal -e ranger
  270. bindsym Mod4+F10 exec tea
  271. bindsym Mod4+F9 exec i3-sensible-terminal -e finch
  272. bindsym Mod4+F8 exec lxterminal -e pms
  273. bindsym Mod4+F7 exec lxterminal -e pmsyt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement