Advertisement
Guest User

Untitled

a guest
May 18th, 2017
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.19 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 some time, 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. set $altMod Mod1
  14.  
  15. # Workspaces
  16. set $w1 "1: xt"
  17. set $w2 "2: em"
  18. set $w3 "3: dv"
  19. set $w4 "4: fx"
  20. set $w5 "5: vb"
  21. set $w6 "6: tg"
  22. set $w7 "7: a3"
  23. set $w8 "8: im"
  24. set $w9 "9: --"
  25. set $w0 "0: sy"
  26.  
  27. # Font for window titles. Will also be used by the bar unless a different font
  28. # is used in the bar {} block below.
  29. font pango:monospace 6
  30.  
  31. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  32. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  33. #font pango:DejaVu Sans Mono 8
  34.  
  35. # Before i3 v4.8, we used to recommend this one as the default:
  36. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  37. # The font above is very space-efficient, that is, it looks good, sharp and
  38. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  39. # X core fonts rendering does not support right-to-left and this being a bitmap
  40. # font, it doesn’t scale on retina/hidpi displays.
  41.  
  42. # Use Mouse+$mod to drag floating windows to their wanted position
  43. floating_modifier $mod
  44.  
  45. # start a terminal
  46. bindsym $mod+Return exec i3-sensible-terminal
  47.  
  48. # kill focused window
  49. bindsym $mod+Shift+q kill
  50.  
  51. # start dmenu (a program launcher)
  52. bindsym $mod+d exec /home/xand/bin/dmenu_run.sh
  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. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  57.  
  58. # change focus
  59. bindsym $mod+j focus left
  60. bindsym $mod+k focus down
  61. bindsym $mod+l focus up
  62. bindsym $mod+ntilde focus right
  63.  
  64. # alternatively, you can use the cursor keys:
  65. bindsym $mod+Left focus left
  66. bindsym $mod+Down focus down
  67. bindsym $mod+Up focus up
  68. bindsym $mod+Right focus right
  69.  
  70. # move focused window
  71. bindsym $mod+Shift+j move left
  72. bindsym $mod+Shift+k move down
  73. bindsym $mod+Shift+l move up
  74. bindsym $mod+Shift+ntilde move right
  75.  
  76. # alternatively, you can use the cursor keys:
  77. bindsym $mod+Shift+Left move left
  78. bindsym $mod+Shift+Down move down
  79. bindsym $mod+Shift+Up move up
  80. bindsym $mod+Shift+Right move right
  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. # enter fullscreen mode for the focused container
  89. bindsym $mod+f fullscreen toggle
  90.  
  91. # change container layout (stacked, tabbed, toggle split)
  92. bindsym $mod+s layout stacking
  93. bindsym $mod+w layout tabbed
  94. bindsym $mod+e layout toggle split
  95.  
  96. # toggle tiling / floating
  97. bindsym $mod+Shift+space floating toggle
  98.  
  99. # change focus between tiling / floating windows
  100. bindsym $mod+space focus mode_toggle
  101.  
  102. # focus the parent container
  103. bindsym $mod+a focus parent
  104.  
  105. # focus the child container
  106. #bindsym $mod+d focus child
  107.  
  108. bindcode mod1+62 exec "/home/xand/bin/kb_layout.sh"
  109.  
  110. # switch to workspace
  111. bindsym $mod+1 workspace $w1
  112. bindsym $mod+2 workspace $w2
  113. bindsym $mod+3 workspace $w3
  114. bindsym $mod+4 workspace $w4
  115. bindsym $mod+5 workspace $w5
  116. bindsym $mod+6 workspace $w6
  117. bindsym $mod+7 workspace $w7
  118. bindsym $mod+8 workspace $w8
  119. bindsym $mod+9 workspace $w9
  120. bindsym $mod+0 workspace $w0
  121.  
  122. # move focused container to workspace
  123. bindsym $mod+Shift+1 move container to workspace $w1
  124. bindsym $mod+Shift+2 move container to workspace $w2
  125. bindsym $mod+Shift+3 move container to workspace $w3
  126. bindsym $mod+Shift+4 move container to workspace $w4
  127. bindsym $mod+Shift+5 move container to workspace $w5
  128. bindsym $mod+Shift+6 move container to workspace $w6
  129. bindsym $mod+Shift+7 move container to workspace $w7
  130. bindsym $mod+Shift+8 move container to workspace $w8
  131. bindsym $mod+Shift+9 move container to workspace $w9
  132. bindsym $mod+Shift+0 move container to workspace $w0
  133.  
  134. # change input language
  135. #bindsym $mod+Shift 0xff13 exec "/home/xand/bin/kb_layout.sh"
  136.  
  137. # change monitor layout
  138. # bindcode 33 exec --no-startup-id /home/xand/bin/set_display_layout.sh
  139.  
  140. # volume controls
  141. bindcode 121 exec --no-startup-id /home/xand/bin/vol_control.sh mute
  142. bindcode 122 exec --no-startup-id /home/xand/bin/vol_control.sh down
  143. bindcode 123 exec --no-startup-id /home/xand/bin/vol_control.sh up
  144.  
  145. # backlight controls
  146. bindcode 233 exec --no-startup-id /home/xand/bin/bkl_control.sh up
  147. bindcode 232 exec --no-startup-id /home/xand/bin/bkl_control.sh down
  148.  
  149. bindcode --release 107 exec --no-startup-id /home/xand/bin/screenshot.sh
  150.  
  151. # move workspace to another monitor
  152. bindsym $mod+m exec --no-startup-id /home/xand/bin/mv_i3_ws.py
  153.  
  154. # lock screen
  155. bindsym $mod+p exec --no-startup-id /home/xand/bin/lock_screen.sh
  156.  
  157. # toggle cpu mode
  158. bindsym $mod+Shift+p exec --no-startup-id /home/xand/bin/cpu.py s
  159.  
  160. # switch profile
  161. #bindsym $mod+q exec --no-startup-id /home/xand/bin/profile_switcher.py
  162. bindsym $mod+q exec --no-startup-id xterm -T floating-process-monitor -e top
  163.  
  164. # show chromix menu at dmenu
  165. bindsym $mod+c exec --no-startup-id /home/xand/bin/chromix-menu.py
  166.  
  167. # show wifi menu at dmenu
  168. bindsym $mod+Shift+n exec --no-startup-id /home/xand/bin/i3-blocks-wifi.py switch
  169.  
  170. # reload the configuration file
  171. bindsym $mod+Shift+c reload
  172. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  173. bindsym $mod+Shift+r restart
  174. # exit i3 (logs you out of your X session)
  175. 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'"
  176.  
  177. # specific window configuration
  178. for_window [title="MultiMonitorConfiguration"] floating enable
  179. for_window [title="MultiMonitorConfiguration"] move window to workspace number 10
  180. for_window [title="^tmux$"] move window to workspace $w1
  181. for_window [title="^emacs@xatitude$"] move window to workspace $w2
  182.  
  183. for_window [title="Chromium$"] move window to workspace $w8
  184. for_window [class="^jetbrains-idea$"] move window to workspace $w3
  185. for_window [title="^Telegram$"] move window to workspace $w6
  186. for_window [title="Mozilla Thunderbird$"] move window to workspace $w5
  187.  
  188. #for_window [title="floating-process-monitor"] floating enable; resize shrink width 10000px; resize grow width 400px; resize shrink height 10000px; resize grow height 800px;
  189.  
  190. # startup
  191. exec --no-startup-id xterm -T tmux -e /home/xand/.gem/ruby/2.4.0/bin/tmuxinator start general
  192. exec --no-startup-id emacs
  193. exec --no-startup-id chromium http://gmail.com
  194. exec --no-startup-id /home/xand/software/idea-IU-139.659.2/bin/idea.sh
  195. exec --no-startup-id /home/xand/bin/profile_switcher.py
  196. exec --no-startup-id /home/xand/software/Telegram/Telegram
  197. exec --no-startup-id chromix-server
  198. exec --no-startup-id /home/xand/software/davmail/davmail.sh
  199.  
  200. exec --no-startup-id thunderbird
  201.  
  202. # resize window (you can also use the mouse for that)
  203. mode "resize" {
  204. # These bindings trigger as soon as you enter the resize mode
  205.  
  206. # Pressing left will shrink the window’s width.
  207. # Pressing right will grow the window’s width.
  208. # Pressing up will shrink the window’s height.
  209. # Pressing down will grow the window’s height.
  210. bindsym j resize shrink width 10 px or 10 ppt
  211. bindsym k resize grow height 10 px or 10 ppt
  212. bindsym l resize shrink height 10 px or 10 ppt
  213. bindsym ntilde resize grow width 10 px or 10 ppt
  214.  
  215. # same bindings, but for the arrow keys
  216. bindsym Left resize shrink width 10 px or 10 ppt
  217. bindsym Down resize grow height 10 px or 10 ppt
  218. bindsym Up resize shrink height 10 px or 10 ppt
  219. bindsym Right resize grow width 10 px or 10 ppt
  220.  
  221. # back to normal: Enter or Escape
  222. bindsym Return mode "default"
  223. bindsym Escape mode "default"
  224. }
  225.  
  226. bindsym $mod+r mode "resize"
  227.  
  228. # Start i3bar to display a workspace bar (plus the system information i3status
  229. # finds out, if available)
  230. bar {
  231. font pango:DejaVu Sans Mono, FontAwesome 8
  232. position top
  233. # status_command i3status --config ~/.i3status.conf
  234. status_command i3blocks
  235. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement