Guest User

Untitled

a guest
Oct 22nd, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 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 up dual monitors
  13. exec xrandr | grep 'HDMI-0 connected' && xrandr --output HDMI-0 --auto --left-of DP-0
  14.  
  15.  
  16. # Windows key
  17. set $mod Mod4
  18.  
  19.  
  20.  
  21. # Font for window titles. Will also be used by the bar unless a different font
  22. # is used in the bar {} block below. ISO 10646 = Unicode
  23. #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, if you need a lot of unicode glyphs or
  26. # right-to-left text rendering, you should instead use pango for rendering and
  27. # chose a FreeType font, such as:
  28. font pango:Monospace 8
  29.  
  30. # Use Mouse+$mod to drag floating windows to their wanted position
  31. floating_modifier $mod
  32.  
  33. # start a terminal
  34. bindsym $mod+Return exec i3-sensible-terminal
  35.  
  36. # Startup
  37. exec_always --no-startup-id "xset -b"
  38. exec --no-startup-id i3-msg 'workspace 24; exec i3-sensible-terminal -e sudo su'
  39.  
  40. # kill focused window
  41. bindsym $mod+Shift+q kill
  42.  
  43. # start dmenu (a program launcher)
  44. bindsym $mod+d exec dmenu_run
  45. # There also is the (new) i3-dmenu-desktop which only displays applications
  46. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  47. # installed.
  48. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  49.  
  50. # change focus
  51. bindsym $mod+j focus left
  52. bindsym $mod+k focus down
  53. bindsym $mod+l focus up
  54. bindsym $mod+semicolon focus right
  55.  
  56. # alternatively, you can use the cursor keys:
  57. bindsym $mod+Left focus left
  58. bindsym $mod+Down focus down
  59. bindsym $mod+Up focus up
  60. bindsym $mod+Right focus right
  61.  
  62. # move focused window
  63. bindsym $mod+Shift+j move left
  64. bindsym $mod+Shift+k move down
  65. bindsym $mod+Shift+l move up
  66. bindsym $mod+Shift+semicolon move right
  67.  
  68. # alternatively, you can use the cursor keys:
  69. bindsym $mod+Shift+Left move left
  70. bindsym $mod+Shift+Down move down
  71. bindsym $mod+Shift+Up move up
  72. bindsym $mod+Shift+Right move right
  73.  
  74. # split in horizontal orientation
  75. bindsym $mod+h split h
  76.  
  77. # split in vertical orientation
  78. bindsym $mod+v split v
  79.  
  80. # enter fullscreen mode for the focused container
  81. bindsym $mod+f fullscreen
  82.  
  83. # change container layout (stacked, tabbed, toggle split)
  84. bindsym $mod+s layout stacking
  85. bindsym $mod+w layout tabbed
  86. bindsym $mod+e layout toggle split
  87.  
  88. # toggle tiling / floating
  89. bindsym $mod+Shift+space floating toggle
  90.  
  91. # change focus between tiling / floating windows
  92. bindsym $mod+space focus mode_toggle
  93.  
  94. # focus the parent container
  95. bindsym $mod+a focus parent
  96.  
  97. # focus the child container
  98. #bindsym $mod+d focus child
  99.  
  100. # switch to workspace
  101. bindsym $mod+F1 workspace 1
  102. bindsym $mod+F2 workspace 2
  103. bindsym $mod+F3 workspace 3
  104. bindsym $mod+F4 workspace 4
  105. bindsym $mod+F5 workspace 5
  106. bindsym $mod+F6 workspace 6
  107. bindsym $mod+F7 workspace 7
  108. bindsym $mod+F8 workspace 8
  109. bindsym $mod+F9 workspace 9
  110. bindsym $mod+F10 workspace 10
  111. bindsym $mod+F11 workspace 11
  112. bindsym $mod+F12 workspace 12
  113. bindsym $mod+Control+F1 workspace 13
  114. bindsym $mod+Control+F2 workspace 14
  115. bindsym $mod+Control+F3 workspace 15
  116. bindsym $mod+Control+F4 workspace 16
  117. bindsym $mod+Control+F5 workspace 17
  118. bindsym $mod+Control+F6 workspace 18
  119. bindsym $mod+Control+F7 workspace 19
  120. bindsym $mod+Control+F8 workspace 20
  121. bindsym $mod+Control+F9 workspace 21
  122. bindsym $mod+Control+F10 workspace 22
  123. bindsym $mod+Control+F11 workspace 23
  124. bindsym $mod+Control+F12 workspace 24
  125.  
  126. # move focused container to workspace
  127. bindsym $mod+Shift+F1 move container to workspace 1
  128. bindsym $mod+Shift+F2 move container to workspace 2
  129. bindsym $mod+Shift+F3 move container to workspace 3
  130. bindsym $mod+Shift+F4 move container to workspace 4
  131. bindsym $mod+Shift+F5 move container to workspace 5
  132. bindsym $mod+Shift+F6 move container to workspace 6
  133. bindsym $mod+Shift+F7 move container to workspace 7
  134. bindsym $mod+Shift+F8 move container to workspace 8
  135. bindsym $mod+Shift+F9 move container to workspace 9
  136. bindsym $mod+Shift+F10 move container to workspace 10
  137. bindsym $mod+Shift+F11 move container to workspace 11
  138. bindsym $mod+Shift+F12 move container to workspace 12
  139. bindsym $mod+Control+Shift+F1 move container to workspace 13
  140. bindsym $mod+Control+Shift+F2 move container to workspace 14
  141. bindsym $mod+Control+Shift+F3 move container to workspace 15
  142. bindsym $mod+Control+Shift+F4 move container to workspace 16
  143. bindsym $mod+Control+Shift+F5 move container to workspace 17
  144. bindsym $mod+Control+Shift+F6 move container to workspace 18
  145. bindsym $mod+Control+Shift+F7 move container to workspace 19
  146. bindsym $mod+Control+Shift+F8 move container to workspace 20
  147. bindsym $mod+Control+Shift+F9 move container to workspace 21
  148. bindsym $mod+Control+Shift+F10 move container to workspace 22
  149. bindsym $mod+Control+Shift+F11 move container to workspace 23
  150. bindsym $mod+Control+Shift+F12 move container to workspace 24
  151.  
  152. # move container to next/prev workspace next
  153. bindsym $mod+Shift+n move container to workspace next
  154. bindsym $mod+Shift+p move container to workspace prev
  155.  
  156. # cycle through workspaces
  157. bindsym Ctrl+Mod1+Right workspace next
  158. bindsym Ctrl+Mod1+Left workspace prev
  159.  
  160.  
  161. # reload the configuration file
  162. bindsym $mod+Shift+c reload
  163. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  164. bindsym $mod+Shift+r restart
  165. # exit i3 (logs you out of your X session)
  166. bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut $mod+Shift+e. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
  167.  
  168. # resize window (you can also use the mouse for that)
  169. mode "resize" {
  170. # These bindings trigger as soon as you enter the resize mode
  171.  
  172. # Pressing left will shrink the window’s width.
  173. # Pressing right will grow the window’s width.
  174. # Pressing up will shrink the window’s height.
  175. # Pressing down will grow the window’s height.
  176. bindsym j resize shrink width 5 px or 5 ppt
  177. bindsym k resize grow height 5 px or 5 ppt
  178. bindsym l resize shrink height 5 px or 5 ppt
  179. bindsym semicolon resize grow width 5 px or 5 ppt
  180.  
  181. # same bindings, but for the arrow keys
  182. bindsym Left resize shrink width 5 px or 5 ppt
  183. bindsym Down resize grow height 5 px or 5 ppt
  184. bindsym Up resize shrink height 5 px or 5 ppt
  185. bindsym Right resize grow width 5 px or 5 ppt
  186.  
  187. # back to normal: Escape
  188. bindsym Escape mode "default"
  189. }
  190.  
  191. bindsym $mod+r mode "resize"
  192.  
  193. # Start i3bar to display a workspace bar (plus the system information i3status
  194. # finds out, if available)
  195. bar {
  196. status_command i3status
  197. ##font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  198. font pango:Monospace 8
  199. }
  200.  
  201.  
  202. # volume control
  203. bindsym XF86AudioMute exec amixer -q set Master toggle
  204. bindsym XF86AudioRaiseVolume exec amixer -q set Master 1%+
  205. bindsym XF86AudioLowerVolume exec amixer -q set Master 1%-
  206.  
  207. # brightness
  208. #bindsym XF86MonBrightnessUp exec xrandr --output LVDS-1 --brightness 1
  209. #bindsym XF86MonBrightnessDown exec xrandr --output LVDS-1 --brightness 0.5
  210.  
  211. # Swap between keymaps
  212. bindsym Ctrl+Mod1+Shift+z exec ~/.config/i3/keymapselect.sh
  213.  
  214. # # next/previous workspace (http://i3wm.org/docs/user-contributed/lzap-config.html)
  215. # bindsym Mod1+Tab focus right
  216. # bindsym Mod1+Shift+Tab focus left
  217. # bindsym $mod+Tab workspace back_and_forth
  218.  
  219. # border changing (http://i3wm.org/docs/user-contributed/lzap-config.html)
  220. bindsym $mod+b border toggle
  221.  
  222. # scratchpad. The hidden workspace
  223. # https://i3wm.org/docs/userguide.html#_scratchpad
  224. #bindsym $mod+Shift+minus move scratchpad
  225. #bindsym $mod+minus scratchpad show
  226.  
  227. # make matlab windows floating, but NOT the main editor and prompt window
  228. # https://faq.i3wm.org/question/61/forcing-windows-as-always-floating/
  229. for_window [class="MATLAB*" instance="sun-awt-X11-XFramePeer"] floating enable
  230. for_window [class="MATLAB*" instance="sun-awt-X11-XFramePeer" title="MATLAB*" ] floating disable
  231. for_window [class="MATLAB*" instance="sun-awt-X11-XFramePeer" title="Editor*" ] floating disable
  232.  
  233. # make paraview floating
  234. for_window [class="Paraview" instance="paraview"] floating enable
Advertisement
Add Comment
Please, Sign In to add comment