Arctis

i3 config

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