Arctis

i3config 31JAN

Jan 30th, 2015
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.09 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. # Font for window titles. Will also be used by the bar unless a different font
  4. # is used in the bar {} block below. ISO 10646 = Unicode
  5. # The font above is very space-efficient, that is, it looks good, sharp and
  6. # clear in small sizes. However, if you need a lot of unicode glyphs or
  7. # right-to-left text rendering, you should instead use pango for rendering and
  8. # chose a FreeType font, such as:font pango:liberation sans 10
  9. font pango:dina 10
  10. exec --no-startup-id nitrogen --restore
  11. exec --no-startup-id tree ~ > tree
  12. exec --no-startup-id xrdb ~/.Xresources
  13.  
  14. # Use Mouse+$mod to drag floating windows to their wanted position
  15. floating_modifier $mod
  16.  
  17. # start programs
  18. exec --no-startup-id compton
  19. exec --no-startup-id pnmixer
  20. exec --no-startup-id nm-applet
  21. # exec --no-startup-id feh --bg-fill --no-xinerama ~/Downloads/test.jpg
  22.  
  23. bindsym $mod+z exec --no-startup-id i3-input -f dina -F 'exec "%s"' -P 'run> '
  24. bindsym $mod+Return exec --no-startup-id xfce4-terminal
  25. bindsym $mod+w exec --no-startup-id firefox
  26. bindsym $mod+p exec --no-startup-id pavucontrol
  27. bindsym $mod+f exec --no-startup-id thunar
  28. bindsym $mod+t exec --no-startup-id urxvt
  29. bindsym $mod+g exec --no-startup-id gimp
  30. bindsym $mod+l exec --no-startup-id deluge
  31. bindsym $mod+Shift+s exec --no-startup-id cd ~/Pictures/Screenshots && scrot -b
  32. bindsym $mod+space exec --no-startup-id mpc toggle
  33. bindsym $mod+Shift+m exec --no-startup-id mpc next
  34. bindsym $mod+Shift+n exec --no-startup-id mpc prev
  35. #bindsym $mod+t exec --no-startup-id java -jar ~/Downloads/Chatty/Chatty.jar
  36.  
  37. # kill focused window
  38. bindsym $mod+q kill
  39.  
  40. # start dmenu (a program launcher)
  41. bindsym $mod+d exec --no-startup-id dmenu_extended_run -p "Menu" -nb "#1F1F1F" -nf "#bebbbb" -sb "#bebbbb" -sf "#000000" -i
  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.  
  46. # alternatively, you can use the cursor keys:
  47. bindsym $mod+Left focus left
  48. bindsym $mod+Down focus down
  49. bindsym $mod+Up focus up
  50. bindsym $mod+Right focus right
  51.  
  52. # move focused window
  53. #bindsym $mod+Shift+h move left
  54. bindsym $mod+Shift+j move down
  55. bindsym $mod+Shift+k move up
  56. bindsym $mod+Shift+l move right
  57.  
  58. # alternatively, you can use the cursor keys:
  59. bindsym $mod+Shift+Left move left
  60. bindsym $mod+Shift+Down move down
  61. bindsym $mod+Shift+Up move up
  62. bindsym $mod+Shift+Right move right
  63.  
  64. # enter fullscreen mode for the focused container
  65. bindsym $mod+x fullscreen
  66.  
  67. # change container layout (stacked, tabbed, toggle split)
  68. #bindsym $mod+w layout tabbed
  69. #bindsym $mod+s layout stacking
  70. #bindsym $mod+e layout toggle split
  71. # toggle tiling / floating
  72. bindsym $mod+Shift+space floating toggle
  73.  
  74. # focus the parent container
  75. bindsym $mod+a focus parent
  76.  
  77. # focus the child container
  78. #bindsym $mod+d focus child
  79.  
  80. # split in horizontal orientation
  81. bindsym $mod+h split h
  82.  
  83. # split in vertical orientation
  84. bindsym $mod+v split v
  85.  
  86.  
  87. # customize workspace names
  88. # set $ws1 1: Web
  89. # set $ws2 2: Code
  90. # set $ws3 3: Terminal
  91. # set $ws4 4: Media
  92.  
  93. # switch to workspace3
  94. bindsym $mod+1 workspace 1
  95. bindsym $mod+2 workspace 2
  96. bindsym $mod+3 workspace 3
  97. bindsym $mod+4 workspace 4
  98. bindsym $mod+5 workspace 5
  99. bindsym $mod+6 workspace 6
  100. bindsym $mod+7 workspace 7
  101. bindsym $mod+8 workspace 8
  102. bindsym $mod+9 workspace 9
  103. bindsym $mod+0 workspace 10
  104.  
  105. # move focused container to workspace
  106. bindsym $mod+Shift+1 move container to workspace 1
  107. bindsym $mod+Shift+2 move container to workspace 2
  108. bindsym $mod+Shift+3 move container to workspace 3
  109. bindsym $mod+Shift+4 move container to workspace 4
  110. bindsym $mod+Shift+5 move container to workspace 5
  111. bindsym $mod+Shift+6 move container to workspace 6
  112. bindsym $mod+Shift+7 move container to workspace 7
  113. bindsym $mod+Shift+8 move container to workspace 8
  114. bindsym $mod+Shift+9 move container to workspace 9
  115. bindsym $mod+Shift+0 move container to workspace 0
  116.  
  117. # colors
  118. client.focused #f1f1f1 #f1f1f1 #f1f1f1 #f1f1f1
  119. #client.unfocused #333333 #222222 #888888 #292d2e
  120. client.unfocused #17171a #17171a #17171a #17171a
  121. client.focused_inactive #17171a #17171a #17171a #17171a
  122. client.urgent #2f343a #900000 #ffffff #900000
  123.  
  124. # fer / titlebar
  125. new_window normal
  126. hide_edge_borders vertical
  127. bindsym Control+Shift+x [class="^.*"] border toggle
  128. for_window [class="^.*"] border pixel 2
  129. #for_window [class="URxvt"] border normal
  130. #for_window [class="[.]*"] floating enable
  131. # reload the configuration file
  132. bindsym $mod+Shift+c reload
  133.  
  134. # restart i3 inplace (preserves your layout/session, can be used toupgrade i3)
  135. bindsym $mod+Shift+r restart
  136.  
  137. # exit i3 (logs you out of your X session)
  138. 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'"
  139.  
  140. # resize window (you can also use the mouse for that)
  141. mode "resize" {
  142. # These bindings trigger as soon as you enter the resize mode
  143.  
  144. # Pressing left will shrink the window’s width.
  145. # Pressing right will grow the window’s width.
  146. # Pressing up will shrink the window’s height.
  147. # Pressing down will grow the window’s height.
  148. bindsym j resize shrink width 5 px or 5 ppt
  149. bindsym k resize grow height 5 px or 5 ppt
  150. bindsym l resize shrink height 5 px or 5 ppt
  151. bindsym k resize grow width 5 px or 5 ppt
  152.  
  153. # same bindings, but for the arrow keys
  154. bindsym Right resize shrink width 5 px or 5 ppt
  155. bindsym Down resize grow height 5 px or 5 ppt
  156. bindsym Up resize shrink height 5 px or 5 ppt
  157. bindsym Left resize grow width 5 px or 5 ppt
  158.  
  159. # back to normal: Enter or Escape
  160. bindsym Return mode "default"
  161. bindsym Escape mode "default"
  162. }
  163.  
  164. # resize with $mod+r
  165.  
  166. bindsym $mod+r mode "resize"
  167.  
  168. # Start i3bar to display a workspace bar (plus the system information i3status
  169. # finds out, if available)
  170. bar {
  171. #mode hide
  172. hidden_state hide
  173. modifier Mod4
  174. status_command i3status
  175. position top
  176. height 18
  177. font pango:Dina, FontAwesome 10
  178. colors {
  179. background #17171a
  180. statusline #bebbbb
  181. separator #17171a
  182.  
  183. focused_workspace #17171a #383838 #bebbbb
  184. active_workspace #17171a #17171a #bebbbb
  185. inactive_workspace #17171a #17171a #bebbbb
  186. urgent_workspace #3c4d43 #bebbbb #121838
  187. }
  188. }
  189.  
  190.  
  191.  
  192. # xmodmap ~/.Xmodmap &
  193. #gap_size 12
  194. gaps inner 15
  195. gaps outer 80
  196. # Touchpad controls
  197. #bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad
  198.  
  199. # for_window [class="mpv"] floating enable
  200. for_window [class="Pavucontrol"] floating enable
  201. for_window [class="feh"] floating enable
  202. for_window [class="xdg-open"] floating enable
  203. bindsym XF86AudioLowerVolume exec --no-startup-id amixer set Master 1%- && killall -SIGUSR1 i3status
  204. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer set Master 1%+ && killall -SIGUSR1 i3status
  205.  
  206. bindsym XF86AudioMute exec --no-startup-id amixer -q set Master toggle && killall -SIGUSR1 i3status
  207. bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 10
  208. bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
  209. bindsym $mod+ctrl+Right gaps inner all plus 5
  210. bindsym $mod+ctrl+Left gaps inner all minus 5
  211. bindsym $mod+ctrl+Up gaps outer all plus 5
  212. bindsym $mod+ctrl+Down gaps outer all minus 5
  213.  
  214. #bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 1 -- -1% && killall -SIGUSR1 i3status
  215. #bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 1 +1% && killall -SIGUSR1 i3status
Advertisement
Add Comment
Please, Sign In to add comment