Guest User

i3config

a guest
Apr 18th, 2016
928
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. # set the Mod key as the WIN key
  2. set $mod Mod4
  3.  
  4. # choose a FreeType font, such as:
  5. font pango: Terminus Re33 8
  6.  
  7. new_window pixel 1
  8. focus_follows_mouse yes
  9.  
  10. # use mouse+$mod to drag floating windows to their wanted position
  11. floating_modifier $mod
  12.  
  13. # kill focused window
  14. bindsym $mod+q kill
  15.  
  16. # start dmenu (program launcher)
  17. # bindsym $mod+d exec dmenu_run -b -fn 'Terminus Re33' -sb '#10192b' -nb '#10192b'
  18. bindsym $mod+d exec dmenu_run -b -fn 'Terminus Re33' -sb '#10192b' -nb '#10192b'
  19.  
  20. # disable DPMS
  21. exec xset s off -dpms
  22.  
  23. # keyboard layout
  24. # caps lock
  25. # exec setxkbmap -layout "us,ru" -option "grp:caps_toggle,grp_led:scroll,compose:ralt"
  26. # alt+shift
  27. exec --no-startup-id setxkbmap -layout "us,ru" -option 'grp:alt_shift_toggle'
  28. exec --no-startup-id kbdd
  29.  
  30. #skypefix
  31. exec pactl unload-module module-role-cork
  32.  
  33. # autostart
  34. exec mpdscribble &
  35.  
  36. # set wallpapper
  37. exec --no-startup-id feh --bg-fill ~/media/Dropbox/Images/Wallpapers/008.jpg
  38.  
  39. # i3lock
  40. bindsym $mod+Control+l exec i3lock
  41.  
  42. # volume control (keyboard)
  43. #bindsym $mod+minus exec "amixer set Master 5%-"
  44. #bindsym $mod+plus exec "amixer set Master 5%+"
  45.  
  46. # audio player control (keyboard)
  47. # mocp control
  48. #bindsym $mod+Next exec "mocp -f"
  49. #bindsym $mod+Delete exec "mocp -r"
  50. #bindsym $mod+End exec "mocp -G"
  51.  
  52. # mpd control
  53. bindsym $mod+Next exec "mpc next"
  54. bindsym $mod+Delete exec "mpc prev"
  55. bindsym $mod+End exec "mpc toggle"
  56. bindsym $mod+minus exec "mpc vol -10"
  57. bindsym $mod+plus exec "mpc vol +10"
  58.  
  59. # screenshot
  60. bindsym Print exec xfce4-screenshooter
  61.  
  62. # terminal
  63. bindsym $mod+Return exec xfce4-terminal
  64.  
  65. # browser
  66. bindsym $mod+b exec firefox
  67.  
  68. # windows focus
  69. bindsym $mod+Left focus left
  70. bindsym $mod+Down focus down
  71. bindsym $mod+Up focus up
  72. bindsym $mod+Right focus right
  73.  
  74. # move windows
  75. bindsym $mod+Shift+Left move left
  76. bindsym $mod+Shift+Down move down
  77. bindsym $mod+Shift+Up move up
  78. bindsym $mod+Shift+Right move right
  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. # enter fullscreen mode for the focused container
  87. bindsym $mod+f fullscreen toggle
  88.  
  89. # toggle tiling / floating
  90. bindsym $mod+Shift+space floating toggle
  91.  
  92. # naviate to the workspaces
  93. bindsym $mod+1 workspace $WS1
  94. bindsym $mod+2 workspace $WS2
  95. bindsym $mod+3 workspace $WS3
  96. bindsym $mod+4 workspace $WS4
  97. bindsym $mod+5 workspace $WS5
  98. bindsym $mod+6 workspace $WS6
  99. bindsym $mod+7 workspace $WS7
  100. bindsym $mod+8 workspace $WS8
  101.  
  102. # workspaces
  103. set $WS1  web
  104. set $WS2  irc
  105. set $WS3  mu
  106. set $WS4  dev
  107. set $WS5  random
  108. set $WS6  steam
  109. set $WS7  VM
  110. set $WS8  skype
  111.  
  112. # move focused container to workspace
  113. bindsym $mod+Shift+1 move container to workspace $WS1
  114. bindsym $mod+Shift+2 move container to workspace $WS2
  115. bindsym $mod+Shift+3 move container to workspace $WS3
  116. bindsym $mod+Shift+4 move container to workspace $WS4
  117. bindsym $mod+Shift+5 move container to workspace $WS5
  118. bindsym $mod+Shift+6 move container to workspace $WS6
  119. bindsym $mod+Shift+7 move container to workspace $WS7
  120. bindsym $mod+Shift+8 move container to workspace $WS8
  121.  
  122. # assign programs to the workspaces
  123. assign [class="^Skype$" instance="^skype$"] →  skype
  124. assign [class="^Steam" instance="^Steam$"] →  steam
  125. assign [class="^dota_linux$" instance="^dota_linux$"] →  steam
  126. assign [class="VirtualBox"] →  VM
  127.  
  128. # disable borders for windows
  129. for_window [class="Firefox" instance="Navigator"] border none
  130.  
  131. # enable floating
  132. for_window [class="Steam"] floating enable
  133. for_window [class="mpv"] floating enable
  134. for_window [class="Keepassx"] floating enable
  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. # start i3bar to display a workspace bar (plus the system information i3status
  143. # finds out, if available)
  144. bar {
  145. # Using py3status
  146. status_command py3status -c ~/.config/i3/i3status.conf -i ~/.py3status_modules
  147. position top
  148. separator_symbol "|"
  149. font pango: Terminus Re33, Icons 10
  150. # tray_output HDMI2
  151. tray_output none
  152. colors {
  153. background #112233
  154. statusline #CED5D0
  155.  
  156. focused_workspace #112233 #6797A1
  157. active_workspace #073642 #696f89
  158. inactive_workspace #112233 #112233 #CED5D0
  159. urgent_workspace #E59847 #E59847 #00252E
  160. }
  161. }
  162.  
  163.  
  164. new_window pixel 1
  165. new_float pixel 1
  166.  
  167. # Colors
  168.  
  169. # class border backgr. text indicator
  170. client.focused #000000 #eae9da #000000 #eae9da
  171. client.focused_inactive #000000 #5f676a #ffffff #5f676a
  172. client.unfocused #000000 #30363b #888888 #30363b
  173. client.urgent #000000 #9b6465 #ffffff #9b6465
  174. client.placeholder #000000 #ffffff #ffffff #000000
Advertisement
Add Comment
Please, Sign In to add comment