Advertisement
okubax

i3 Sept-14

Sep 1st, 2014
1,079
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. set $mod Mod4
  2.  
  3. font xft:Cousine bold 7.2
  4.  
  5. new_window pixel 3
  6. focus_follows_mouse yes
  7.  
  8. #don't move to neighbouring screen with hjkl
  9. force_focus_wrapping yes
  10.  
  11. set $blue #005588
  12. set $gray1 #484848
  13. set $gray2 #333333
  14.  
  15. client.focused $gray1 $gray1 #FFFFFF #333333
  16. client.focused_inactive $gray2 $gray2 #FFFFFF #000000
  17. client.unfocused $gray2 $gray2 #FFFFFF #000000
  18.  
  19. # Use Mouse+$mod to drag floating windows to their wanted position
  20. floating_modifier $mod
  21.  
  22. # Back and Forth
  23. workspace_auto_back_and_forth yes
  24.  
  25. # kill focused window
  26. bindsym $mod+q kill
  27.  
  28. # start dmenu (a program launcher)
  29. bindsym $mod+p exec --no-startup-id "j4-dmenu-desktop --dmenu='dmenu -i -b -fn '-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*''"
  30. #bindsym $mod+p exec --no-startup-id dmenu_run -b -fn '-*-fixed-*-*-*-*-10-*-*-*-*-*-*-*' -nb '#111111' -nf '#555555' -sb '#111111' -sf '#aadb0f'
  31.  
  32.  
  33. ## KEY BINDINGS
  34. bindsym $MOD+Tab focus right
  35.  
  36. # SCRATCHPAD CREATE
  37. bindsym $MOD+SHIFT+plus move scratchpad
  38.  
  39. # SCRATCHPAD SHOW
  40. bindsym $MOD+plus scratchpad show
  41.  
  42. # HANDLE POPUPS
  43. #popup_during_fullscreen smart
  44.  
  45. # change focus
  46. bindsym $mod+h focus left
  47. bindsym $mod+j focus down
  48. bindsym $mod+k focus up
  49. bindsym $mod+l focus right
  50.  
  51. # move focused window
  52. bindsym $mod+Shift+H move left
  53. bindsym $mod+Shift+J move down
  54. bindsym $mod+Shift+K move up
  55. bindsym $mod+Shift+L move right
  56.  
  57. # split in horizontal orientation
  58. bindsym $mod+bar split h
  59.  
  60. # split in vertical orientation
  61. bindsym $mod+underscore split v
  62.  
  63. # enter fullscreen mode for the focused container
  64. bindsym $mod+f fullscreen
  65.  
  66. # change container layout (stacked, tabbed, default)
  67. bindsym $mod+s layout stacking
  68. bindsym $mod+x layout tabbed
  69. bindsym $mod+z layout default
  70.  
  71. # toggle tiling / floating
  72. bindsym $mod+Shift+space floating toggle
  73.  
  74. # change focus between tiling / floating windows
  75. bindsym $mod+space focus mode_toggle
  76.  
  77. # focus the parent container
  78. bindsym $mod+a focus parent
  79.  
  80. # focus the child container
  81. bindsym $mod+d focus child
  82.  
  83. # assign workspace variables
  84. set $WS1 term
  85. set $WS2 www
  86. set $WS3 text
  87. set $WS4 media
  88. set $WS5 misc
  89. set $WS6 system
  90. set $WS7 office
  91. set $WS8 mail
  92. set $WS9 games
  93.  
  94. # switch to workspace
  95. bindsym $mod+1 workspace $WS1
  96. bindsym $mod+2 workspace $WS2
  97. bindsym $mod+3 workspace $WS3
  98. bindsym $mod+4 workspace $WS4
  99. bindsym $mod+5 workspace $WS5
  100. bindsym $mod+6 workspace $WS6
  101. bindsym $mod+7 workspace $WS7
  102. bindsym $mod+8 workspace $WS8
  103. bindsym $mod+9 workspace $WS9
  104. bindsym $mod+0 workspace 10
  105.  
  106. # move focused container to workspace
  107. bindsym $mod+Shift+1 move container to workspace $WS1
  108. bindsym $mod+Shift+2 move container to workspace $WS2
  109. bindsym $mod+Shift+3 move container to workspace $WS3
  110. bindsym $mod+Shift+4 move container to workspace $WS4
  111. bindsym $mod+Shift+5 move container to workspace $WS5
  112. bindsym $mod+Shift+6 move container to workspace $WS6
  113. bindsym $mod+Shift+7 move container to workspace $WS7
  114. bindsym $mod+Shift+8 move container to workspace $WS8
  115. bindsym $mod+Shift+9 move container to workspace $WS9
  116. bindsym $mod+Shift+0 move container to workspace 10
  117.  
  118. # float
  119. for_window [class="xpad" instance="scratchpad"] move scratchpad
  120. for_window [class="MPlayer|Galculator|Gsimplecal|Viewnior|Alarm-clock|Skype|xpad|Java|Clamtk|Blueman-manager|Spotify"] floating enable
  121. for_window [class="File-roller|Lxappearance|Nitrogen|Arandr|Caffeine|Pavucontrol|emulator64-arm|Transmission-gtk|sublime-text"] floating enable
  122. for_window [title="Preferences|Xfce-notifyd|TrueCrypt|Catfish|Google Keep|Pocket|irssi|Xarchiver"] floating enable
  123. for_window [title="File Operation Progress" class="Thunar"] floating enable
  124. for_window [title="Share a link on Twitter - Mozilla Firefox" class="Firefox"] floating enable
  125. for_window [title="Press This - Mozilla Firefox" class="Firefox"] floating enable
  126. for_window [window_role="pop-up"] floating enable,move absolute center
  127.  
  128. # Move to workspace
  129. assign [instance="terminator|urxvt"] $WS1
  130. assign [instance="Navigator|filezilla|transmission-gtk|Dialog"] $WS2
  131. assign [class="Chromium|jetbrains-android-studio|Dwb|Firefox"] $WS2
  132. assign [class="sublime-text"] $WS3
  133. assign [instance="mousepad|leafpad|geany"] $WS3
  134. assign [instance="shotwell|nitrogen|simple-scan|brasero|devede|imagination|picard|wxcam|google-musicmanager|goobox"] $WS4
  135. assign [class="MPlayer|mpv|Xfburn|Pitivi|Popcorntime|Gmusicbrowser|Ogmrip|Spotify"] $WS4
  136. assign [class="Thunar|Gimp|Eclipse|Pinta|Blender|Catfish|Galculator"] $WS5
  137. assign [class="VirtualBox|Gnome-disks"] $WS6
  138. assign [instance="syncbackup|bleachbit|gparted|hardinfo|truecrypt"] $WS6
  139. assign [instance="VCLSalFrame|libreoffice"] $WS7
  140. assign [class="libreoffice*|Zathura|libreoffice-writer"] $WS7
  141. assign [class="Claws-mail"] $WS8
  142. assign [class="Wine|Steam|dontstarve"] $WS9
  143.  
  144. # reload the configuration file
  145. bindsym $mod+Shift+C reload
  146. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  147. bindsym $mod+Shift+R restart
  148. # exit i3 (logs you out of your X session)
  149. bindsym $mod+Shift+E exit
  150.  
  151. mode "resize" {
  152. # These bindings trigger as soon as you enter the resize mode
  153.  
  154. bindsym h resize shrink width 10 px or 10 ppt
  155. bindsym j resize grow height 10 px or 10 ppt
  156. bindsym k resize shrink height 10 px or 10 ppt
  157. bindsym l resize grow width 10 px or 10 ppt
  158. # arrow keys #
  159. # bindsym 113 right
  160.  
  161. # back to normal: Enter or Escape
  162. bindsym Return mode "default"
  163. bindsym Escape mode "default"
  164. }
  165.  
  166. bindsym $mod+r mode "resize"
  167.  
  168. # Create Log out, Reboot, Poweroff bindings
  169. set $mode_system System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) reboot, (Shift+s) shutdown
  170. mode "$mode_system" {
  171. bindsym l exec --no-startup-id $HOME/bin/i3exit lock, mode "default"
  172. bindsym e exec --no-startup-id $HOME/bin/i3exit logout, mode "default"
  173. bindsym s exec --no-startup-id $HOME/bin/i3exit suspend, mode "default"
  174. bindsym h exec --no-startup-id $HOME/bin/i3exit hibernate, mode "default"
  175. bindsym r exec --no-startup-id $HOME/bin/i3exit reboot, mode "default"
  176. bindsym Shift+s exec --no-startup-id $HOME/bin/i3exit shutdown, mode "default"
  177.  
  178. # back to normal: Enter or Escape
  179. bindsym Return mode "default"
  180. bindsym Escape mode "default"
  181. }
  182. bindsym $mod+Shift+Q mode "$mode_system"
  183.  
  184. # take screenshot
  185. bindsym Print exec $HOME/bin/screen.sh root
  186. bindsym Mod1+Print exec $HOME/bin/screen.sh active
  187.  
  188. # key bindings
  189. bindsym $MOD+Return exec --no-startup-id urxvt
  190. bindsym $MOD+SHIFT+f exec thunar
  191. bindsym $mod+w exec firefox
  192. bindsym $mod+SHIFT+w exec dwb
  193. bindsym Mod1+w exec chromium
  194. bindsym $mod+b exec $HOME/downloads/tor-browser_en-US/start-tor-browser
  195. bindsym $mod+e exec geany
  196. bindsym Mod1+l exec i3lock -i $HOME/images/walls/wl.png
  197. bindsym Mod1+e exec claws-mail
  198. bindsym $mod+i exec urxvt -e irssi
  199. bindsym $MOD+SHIFT+t exec urxvt -e htop
  200. bindsym $MOD+SHIFT+a exec $HOME/downloads/android-studio/bin/studio.sh
  201.  
  202. # multimedia keys
  203. bindsym XF86AudioRaiseVolume exec "amixer -D pulse sset Master '3%+'"
  204. bindsym XF86AudioLowerVolume exec "amixer -D pulse sset Master '1%-'"
  205. bindsym XF86AudioMute exec "amixer -D pulse set Master toggle"
  206.  
  207. bindsym XF86AudioPlay exec "mpc toggle"
  208. bindsym XF86AudioStop exec "mpc stop"
  209. bindsym XF86AudioNext exec "mpc next"
  210. bindsym XF86AudioPrev exec "mpc prev"
  211.  
  212. # brightness
  213. bindsym XF86MonBrightnessUp exec "xbacklight +10"
  214. bindsym XF86MonBrightnessDown exec "xbacklight -10"
  215.  
  216. bar {
  217. position top
  218. status_command ~/.i3/conky
  219. colors {
  220. statusline #AAAAAA
  221. background #333333
  222. focused_workspace $gray2 $gray2 #FFFFFF
  223. inactive_workspace $gray1 $gray1 #AAAAAA
  224. }
  225. }
  226.  
  227. # autostart
  228. exec --no-startup-id sh ~/.fehbg
  229. #exec --no-startup-id xpad
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement