Advertisement
HiImTye

.i3/config

Apr 6th, 2014
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.58 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.  
  12. set $mod Mod4
  13.  
  14. # Use Mouse+$mod to drag floating windows to their wanted position
  15. floating_modifier $mod
  16.  
  17. # start a terminal
  18. bindsym $mod+Return exec urxvt
  19.  
  20. # kill focused window
  21. bindsym $mod+q kill
  22.  
  23. # shutdown/log out dialog
  24. bindsym $mod+k exec $HOME/Launchers/i3shutdown
  25.  
  26. # lock the screen
  27. #bindsym $mod+l exec i3lock -i $HOME/Pictures/Wallpapers/Tye/Broken-Windows-Error.png -p win
  28. bindsym $mod+l exec xscreensaver-command -lock
  29.  
  30. # start dmenu (a program launcher)
  31. #bindsym $mod+d exec dmenu_run
  32.  # There also is the (new) i3-dmenu-desktop which only displays applications
  33.  # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  34.  # installed.
  35. #bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  36. bindsym $mod+d exec kupfer
  37.  
  38. # focus containers
  39. bindsym $mod+Left focus left
  40. bindsym $mod+Down focus down
  41. bindsym $mod+Up focus up
  42. bindsym $mod+Right focus right
  43.  
  44. # move focused containers
  45. bindsym $mod+Shift+Left move left
  46. bindsym $mod+Shift+Down move down
  47. bindsym $mod+Shift+Up move up
  48. bindsym $mod+Shift+Right move right
  49.  
  50. # split in vertical/horizontal orientation
  51. bindsym $mod+h split h
  52. bindsym $mod+v split v
  53.  
  54. # enter fullscreen mode for the focused container
  55. bindsym $mod+f fullscreen
  56.  
  57. # default container layout (stacked, tabbed, toggle split, floating)
  58. workspace_layout tabbed
  59.  
  60. # change container layout
  61. bindsym $mod+s layout stacking
  62. bindsym $mod+w layout tabbed
  63. bindsym $mod+e layout toggle split
  64. bindsym $mod+Shift+space floating toggle
  65.  
  66. # change focus between tiling/floating windows
  67. bindsym $mod+space focus mode_toggle
  68.  
  69. # focus parent/child
  70. bindsym $mod+Shift+a focus parent
  71. bindsym $mod+a focus child
  72.  
  73. # assign workspace names
  74. set $ws1 1: Main
  75. set $ws2 2: Editing
  76. set $ws3 3
  77. set $ws4 4
  78. set $ws5 5
  79. set $ws6 6
  80. set $ws7 7
  81. set $ws8 8: Media
  82. set $ws9 9: Games
  83. set $ws10 10: Steam
  84.  
  85. # switch to workspace
  86. bindsym $mod+1 workspace $ws1
  87. bindsym $mod+2 workspace $ws2
  88. bindsym $mod+3 workspace $ws3
  89. bindsym $mod+4 workspace $ws4
  90. bindsym $mod+5 workspace $ws5
  91. bindsym $mod+6 workspace $ws6
  92. bindsym $mod+7 workspace $ws7
  93. bindsym $mod+8 workspace $ws8
  94. bindsym $mod+9 workspace $ws9
  95. bindsym $mod+0 workspace $ws10
  96.  
  97. # move focused container to workspace
  98. bindsym $mod+Shift+1 move container to workspace $ws1
  99. bindsym $mod+Shift+2 move container to workspace $ws2
  100. bindsym $mod+Shift+3 move container to workspace $ws3
  101. bindsym $mod+Shift+4 move container to workspace $ws4
  102. bindsym $mod+Shift+5 move container to workspace $ws5
  103. bindsym $mod+Shift+6 move container to workspace $ws6
  104. bindsym $mod+Shift+7 move container to workspace $ws7
  105. bindsym $mod+Shift+8 move container to workspace $ws8
  106. bindsym $mod+Shift+9 move container to workspace $ws9
  107. bindsym $mod+Shift+0 move container to workspace $ws10
  108.  
  109. # program specific stuff
  110. # assigns
  111. assign [class="(Firefox|Gnome-terminal|Nemo|Conky)"] $ws1
  112. assign [title="(Palace.*)"] $ws1
  113. assign [class="(Gimp)"] $ws2
  114. assign [class="(smplayer|xbmc.bin)"] $ws8
  115. assign [class="TheGame_NFML"] $ws9
  116. assign [class="^(?!Steam)" title="(StarConflict.*|Trine|Spiral.*|Iesabel|The Witcher.*|Teslagrad|Dust:.*|Bastion|Painkiller.*|RaceTheSun|Rochard)"] $ws9
  117. assign [class="(Steam)"] $ws10
  118. for_window [class="URxvt"] move to scratchpad
  119.  
  120. # automatically focus certain windows when they open
  121. for_window [class="(Gimp|smplayer|xbmc.bin|Steam|TheGame_NFML)"] focus
  122. for_window [title="(StarConflict.*|Trine|Spiral.*|Iesabel|The Witcher.*|Teslagrad|Dust:.*|Bastion|Painkiller.*|RaceTheSun|Rochard)"] focus
  123.  
  124. # automatically change the behaviour of certain windows
  125. for_window [class="Wine" title="(Palace.*)"] split v
  126. for_window [class="Wine" title="(Palace.*|.*~BC.*)"] floating disable
  127. for_window [class="Wine" title=".*~BC.*"] [class="Wine" title="Palace.*"] split h # tile horizontally at the palace client window when the log is open
  128. for_window [class="(Wine|Kupfer.py)"] border none # remove the border from all wine windows, since they draw their own anyway
  129.  
  130. # scratch pad
  131.  # move current window to scratch pad
  132. bindsym $mod+Shift+asciitilde move scratchpad
  133.  # toggle showing scratch pad
  134. bindsym $mod+asciitilde scratchpad show
  135.  
  136. # reload the configuration file
  137. bindsym $mod+Shift+c reload
  138.  
  139. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  140. bindsym $mod+Shift+r restart
  141.  
  142. # resize window (you can also use the mouse for that)
  143. mode "Resize" {
  144.  # "control"
  145.  bindsym Control+Left resize shrink width 1 px or 1 ppt
  146.  bindsym Control+Right resize grow width 1 px or 1 ppt
  147.  bindsym Control+Up resize shrink height 1 px or 1 ppt
  148.  bindsym Control+Down resize grow height 1 px or 1 ppt
  149.  # normal
  150.  bindsym Left resize shrink width 10 px or 10 ppt
  151.  bindsym Right resize grow width 10 px or 10 ppt
  152.  bindsym Up resize shrink height 10 px or 10 ppt
  153.  bindsym Down resize grow height 10 px or 10 ppt
  154.  # run
  155.  bindsym Shift+Left resize shrink width 20 px or 20 ppt
  156.  bindsym Shift+Right resize grow width 20 px or 20 ppt
  157.  bindsym Shift+Up resize shrink height 20 px or 20 ppt
  158.  bindsym Shift+Down resize grow height 20 px or 20 ppt
  159.  # return
  160.  bindsym Return mode "default"
  161.  bindsym Escape mode "default"
  162. }
  163. bindsym $mod+r mode "Resize"
  164.  
  165. # move containers
  166. mode "Move" {
  167.  # "control"
  168.  bindsym Control+Left move left 1 px
  169.  bindsym Control+Right move right 1 px
  170.  bindsym Control+Up move up 1 px
  171.  bindsym Control+Down move down 1 px
  172.  # normal
  173.  bindsym Left move left 10 px
  174.  bindsym Right move right 10 px
  175.  bindsym Up move up 10 px
  176.  bindsym Down move down 10 px
  177.  # run
  178.  bindsym Shift+Left move left 20 px
  179.  bindsym Shift+Right move right 20 px
  180.  bindsym Shift+Up move up 20 px
  181.  bindsym Shift+Down move down 20 px
  182.  # return
  183.  bindsym Return mode "default"
  184.  bindsym Escape mode "default"
  185. }
  186. bindsym $mod+m mode "Move"
  187.  
  188. # media keys
  189. bindsym XF86AudioRaiseVolume exec $HOME/Launchers/volumeControl up
  190. bindsym XF86AudioLowerVolume exec $HOME/Launchers/volumeControl down
  191. bindsym XF86AudioMute exec $HOME/Launchers/volumeControl mute
  192. bindsym XF86AudioPlay exec mpc toggle
  193. bindsym XF86AudioStop exec mpc stop
  194. bindsym XF86AudioPrev exec $HOME/Launchers/mpcPrevSong.sh
  195. bindsym XF86AudioNext exec mpc next
  196.  
  197. # aesthetics
  198. # Window border styles
  199.  # normal = border normal, with window title bar;
  200.  # none   = no border or window title bar;
  201.  # 1pixel = 1 pixel border.
  202. new_window none
  203. bindsym $mod+t border normal
  204. bindsym $mod+y border 1pixel
  205. bindsym $mod+u border none
  206.  
  207. # font
  208.  # font pango:family style size
  209. font pango:Ubuntu bold 8
  210.  
  211. # colour defines
  212.  # a = focused, active
  213.  # i = focused, inactive
  214.  # u = unfocused
  215.  # b = bar
  216.  # w = warn (urgent)
  217. set $texta        #00aaff
  218. set $texti        #005080
  219. set $textu        #666666
  220. set $textb        #0099cc
  221. set $textw        #cc8800
  222. set $backgrounda  #002255
  223. set $backgroundi  #000000
  224. set $backgroundu  #000000
  225. set $backgroundw  #000000
  226. set $bordera      #202020
  227. set $borderi      #202020
  228. set $borderu      #202020
  229. set $borderb      #0099cc
  230. set $borderw      #552200
  231. set $status       #00aaff
  232. set $separator    #202020
  233.  
  234. # i3 colour scheme          border       background   text
  235. client.focused              $bordera     $backgrounda $texta
  236. client.unfocused            $borderu     $backgroundu $textu
  237. client.focused_inactive     $borderi     $backgroundi $texti
  238. client.urgent               $borderw     $backgroundw $textw
  239.  
  240. # click to focus new window, instead of just moving the mouse
  241. focus_follows_mouse no
  242.  
  243. # i3status
  244. bar {
  245.  status_command i3status --config ~/.i3/i3status.conf
  246.  position top
  247.  mode dock
  248.  font pango:Ubuntu 8
  249.  
  250.  # i3status colour scheme
  251.  colors {
  252.   background          $backgroundu
  253.   statusline          $status
  254.   separator           $separator
  255.    #                  border       background   text
  256.   focused_workspace   $borderb     $backgroundi $textb
  257.   active_workspace    $borderb     $backgroundi $textb
  258.   inactive_workspace  $borderi     $backgroundi $texti
  259.   urgent_workspace    $borderw     $backgroundw $textw
  260.  }
  261. }
  262.  
  263. # auto starts
  264. exec --no-startup-id kupfer --no-splash
  265. exec --no-startup-id ~/.fehbg
  266. #exec --no-startup-id xautolock -time 60 -locker "i3lock -i $HOME/Pictures/Wallpapers/Tye/Broken-Windows-Error.png -p win"
  267. exec --no-startup-id xscreensaver
  268. exec --no-startup-id dunst
  269. exec --no-startup-id dropboxd
  270. exec --no-startup-id udiskie --tray
  271. exec --no-startup-id urxvt
  272. exec --no-startup-id tconk.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement