Arctis

i3config with gaps

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