Advertisement
Guest User

i3

a guest
Apr 1st, 2013
557
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.67 KB | None | 0 0
  1. # i3 config (4.2)
  2.  
  3. #dim backlight at start
  4. exec xbacklight -set 40 &
  5.  
  6. #set volume to a reasonable amount at start
  7. exec amixer -D pulse sset Master '50%' &
  8.  
  9. #settings
  10. exec xset -b
  11. #exec xrdb -merge ~/.i3/xresources #for urxvt
  12.  
  13. #hide mouse coursor when it isn't used
  14. exec unclutter -root -visible &
  15.  
  16. #clipboard synchronization
  17. exec autocutsel -fork &
  18. exec autocutsel -selection PRIMARY -fork &
  19.  
  20. #dbus instance
  21. exec eval `dbus-launch --sh-syntax --exit-with-session`
  22.  
  23. #apps
  24. #exec start-pulseaudio-x11 &
  25. #exec urxvtd &
  26.  
  27. #keyboard layout
  28. exec setxkbmap -option ctrl:nocaps
  29. exec xmodmap ~/.i3/xmodmap
  30. exec [ -e ~/.xmodmap_local ] && xmodmap ~/.xmodmap_local
  31.  
  32. #color temperature adjustment
  33. exec redshift -l 39.57:76.3 -m randr -t 5500:4500 -g 0.9:0.9:0.9 &
  34.  
  35. #notification
  36. exec dunst -config ~/.i3/dunstrc &
  37.  
  38. #disks automounting
  39. exec udiskie &
  40.  
  41. #thunar requires no desktop
  42. exec thunar --daemon &
  43.  
  44. #wallpaper
  45. exec nitrogen --restore &
  46.  
  47. # dropbox
  48. exec dropbox start &
  49.  
  50. ################################################################################
  51. set $mod Mod4
  52.  
  53.  
  54. #font xft: Cousine bold 10
  55. #font xft: Cantarell bold 10
  56. #font pango: Terminus 8
  57. font xft: Droid Sans mono bold 10
  58. #font -bitstream-*-*-r-*-*-*-120-*-*-*-*-*-*
  59. new_window pixel 6
  60. focus_follows_mouse yes
  61.  
  62. set $blue #005588
  63. set $gray1 #484848
  64. set $gray2 #333333
  65.  
  66. client.focused $gray1 $gray1 #FFFFFF #333333
  67. client.focused_inactive $gray2 $gray2 #FFFFFF #000000
  68. client.unfocused $gray2 $gray2 #FFFFFF #000000
  69.  
  70. # use Mouse+$mod to drag floating windows to their wanted position
  71. floating_modifier $mod
  72.  
  73. # start a terminal
  74. #bindsym $mod+Return exec urxvtc
  75. bindsym $mod+Return exec terminator
  76.  
  77. # kill focused window
  78. bindsym $mod+c kill
  79.  
  80. # start dmenu (a program launcher)
  81. bindsym $mod+p exec dmenu_run -nb black
  82.  
  83. # screen lock
  84. bindsym Control+mod1+l exec lockscreen
  85. bindsym Control+mod1+q exec cb-exit
  86.  
  87. # change focus
  88. bindsym $mod+h focus left
  89. bindsym $mod+j focus down
  90. bindsym $mod+k focus up
  91. bindsym $mod+l focus right
  92.  
  93. # move focused window
  94. bindsym $mod+Shift+h move left
  95. bindsym $mod+Shift+j move down
  96. bindsym $mod+Shift+k move up
  97. bindsym $mod+Shift+l move right
  98.  
  99. # split in horizontal orientation
  100. bindsym $mod+v split h
  101.  
  102. # split in vertical orientation
  103. bindsym $mod+g split v
  104.  
  105. # enter fullscreen mode for the focused container
  106. bindsym $mod+f fullscreen
  107.  
  108. # change container layout (tabbed, toggle split)
  109. bindsym $mod+n layout tabbed
  110. bindsym $mod+m layout toggle split
  111.  
  112. # toggle tiling / floating
  113. bindsym $mod+Shift+f floating toggle
  114.  
  115. # change focus between tiling / floating windows
  116. bindsym $mod+space focus mode_toggle
  117.  
  118. # switch to last workspace
  119. bindsym $mod+6 workspace back_and_forth
  120.  
  121. # switch to workspace
  122. bindsym $mod+q workspace q
  123. bindsym $mod+w workspace w
  124. bindsym $mod+e workspace e
  125. bindsym $mod+r workspace r
  126. bindsym $mod+t workspace t
  127. bindsym $mod+y workspace y
  128. bindsym $mod+u workspace u
  129. bindsym $mod+i workspace i
  130. bindsym $mod+o workspace o
  131.  
  132. # move focused container to workspace
  133. bindsym $mod+Shift+q move container to workspace q
  134. bindsym $mod+Shift+w move container to workspace w
  135. bindsym $mod+Shift+e move container to workspace e
  136. bindsym $mod+Shift+r move container to workspace r
  137. bindsym $mod+Shift+t move container to workspace t
  138. bindsym $mod+Shift+y move container to workspace y
  139. bindsym $mod+Shift+u move container to workspace u
  140. bindsym $mod+Shift+i move container to workspace i
  141. bindsym $mod+Shift+o move container to workspace o
  142.  
  143. bindsym $mod+z reload
  144. bindsym $mod+Shift+x restart
  145. bindsym $mod+Shift+z exit
  146.  
  147. mode "resize" {
  148. bindsym h resize shrink width 5 px or 5 ppt
  149. bindsym j resize grow height 5 px or 5 ppt
  150. bindsym k resize shrink height 5 px or 5 ppt
  151. bindsym l resize grow width 5 px or 5 ppt
  152.  
  153. # back to normal: Enter or Escape or q or ^[
  154. bindsym Return mode "default"
  155. bindsym q mode "default"
  156. bindsym Escape mode "default"
  157. bindcode Control+34 mode "default"
  158. }
  159.  
  160. bindsym $mod+s mode "resize"
  161.  
  162. #for_window [class = "] floating enablecs
  163.  
  164. # multimedia keys
  165. bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '3%+'"
  166. bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
  167. bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
  168.  
  169. bindsym XF86MonBrightnessDown exec "xbacklight -dec 20"
  170. bindsym XF86MonBrightnessUp exec "xbacklight -inc 15"
  171.  
  172. bindsym $mod+a exec "terminator -x alsamixer"
  173. bindsym $mod+Shift+a exec "pavucontrol"
  174.  
  175. bar {
  176. position top
  177. status_command ~/.i3/conky
  178. colors {
  179. statusline #AAAAAA
  180. background #333333
  181. focused_workspace $gray2 $gray2 #FFFFFF
  182. inactive_workspace $gray1 $gray1 #AAAAAA
  183. }
  184. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement