Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.75 KB | None | 0 0
  1. [Zeppelin@localhost golang]$ more /etc/i3
  2. i3/ i3status.conf
  3. [Zeppelin@localhost golang]$ more /etc/i3
  4. i3/ i3status.conf
  5. [Zeppelin@localhost golang]$ more /etc/i3/config
  6. config config.keycodes
  7. [Zeppelin@localhost golang]$ more /etc/i3/config
  8. # i3 config file (v4)
  9. #
  10. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  11. #
  12. # This config file uses keycodes (bindsym) and was written for the QWERTY
  13. # layout.
  14. #
  15. # To get a config file with the same key positions, but for your current
  16. # layout, use the i3-config-wizard
  17. #
  18.  
  19. # Font for window titles. Will also be used by the bar unless a different font
  20. # is used in the bar {} block below.
  21. font pango:monospace 8
  22.  
  23. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  24. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  25. #font pango:DejaVu Sans Mono 8
  26.  
  27. # Before i3 v4.8, we used to recommend this one as the default:
  28. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  29. # The font above is very space-efficient, that is, it looks good, sharp and
  30. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  31. # X core fonts rendering does not support right-to-left and this being a bitmap
  32. # font, it doesn't scale on retina/hidpi displays.
  33.  
  34. # use these keys for focus, movement, and resize directions when reaching for
  35. # the arrows is not convenient
  36. set $up l
  37. set $down k
  38. set $left j
  39. set $right semicolon
  40.  
  41. # use Mouse+Mod1 to drag floating windows to their wanted position
  42. floating_modifier Mod1
  43.  
  44. # start a terminal
  45. bindsym Mod1+Return exec i3-sensible-terminal
  46.  
  47. # kill focused window
  48. bindsym Mod1+Shift+q kill
  49.  
  50. # start dmenu (a program launcher)
  51. bindsym Mod1+d exec dmenu_run
  52. # There also is the (new) i3-dmenu-desktop which only displays applications
  53. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  54. # installed.
  55. # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
  56.  
  57. # change focus
  58. bindsym Mod1+$left focus left
  59. bindsym Mod1+$down focus down
  60. bindsym Mod1+$up focus up
  61. bindsym Mod1+$right focus right
  62.  
  63. [Zeppelin@localhost golang]$ more /etc/i3/config
  64. # i3 config file (v4)
  65. #
  66. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  67. #
  68. # This config file uses keycodes (bindsym) and was written for the QWERTY
  69. # layout.
  70. #
  71. # To get a config file with the same key positions, but for your current
  72. # layout, use the i3-config-wizard
  73. #
  74.  
  75. # Font for window titles. Will also be used by the bar unless a different font
  76. # is used in the bar {} block below.
  77. font pango:monospace 8
  78.  
  79. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  80. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  81. #font pango:DejaVu Sans Mono 8
  82.  
  83. # Before i3 v4.8, we used to recommend this one as the default:
  84. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  85. # The font above is very space-efficient, that is, it looks good, sharp and
  86. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  87. # X core fonts rendering does not support right-to-left and this being a bitmap
  88. # font, it doesn't scale on retina/hidpi displays.
  89.  
  90. # use these keys for focus, movement, and resize directions when reaching for
  91. # the arrows is not convenient
  92. set $up l
  93. set $down k
  94. set $left j
  95. set $right semicolon
  96.  
  97. # use Mouse+Mod1 to drag floating windows to their wanted position
  98. floating_modifier Mod1
  99.  
  100. # start a terminal
  101. bindsym Mod1+Return exec i3-sensible-terminal
  102.  
  103. # kill focused window
  104. bindsym Mod1+Shift+q kill
  105.  
  106. # start dmenu (a program launcher)
  107. bindsym Mod1+d exec dmenu_run
  108. # There also is the (new) i3-dmenu-desktop which only displays applications
  109. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  110. # installed.
  111. # bindsym Mod1+d exec --no-startup-id i3-dmenu-desktop
  112.  
  113. # change focus
  114. bindsym Mod1+$left focus left
  115. bindsym Mod1+$down focus down
  116. bindsym Mod1+$up focus up
  117. bindsym Mod1+$right focus right
  118.  
  119. # alternatively, you can use the cursor keys:
  120. bindsym Mod1+Left focus left
  121. bindsym Mod1+Down focus down
  122. bindsym Mod1+Up focus up
  123. bindsym Mod1+Right focus right
  124.  
  125. # move focused window
  126. bindsym Mod1+Shift+$left move left
  127. bindsym Mod1+Shift+$down move down
  128. bindsym Mod1+Shift+$up move up
  129. bindsym Mod1+Shift+$right move right
  130.  
  131. # alternatively, you can use the cursor keys:
  132. bindsym Mod1+Shift+Left move left
  133. bindsym Mod1+Shift+Down move down
  134. bindsym Mod1+Shift+Up move up
  135. bindsym Mod1+Shift+Right move right
  136.  
  137. # split in horizontal orientation
  138. bindsym Mod1+h split h
  139.  
  140. # split in vertical orientation
  141. bindsym Mod1+v split v
  142.  
  143. # enter fullscreen mode for the focused container
  144. bindsym Mod1+f fullscreen toggle
  145.  
  146. # change container layout (stacked, tabbed, toggle split)
  147. bindsym Mod1+s layout stacking
  148. bindsym Mod1+w layout tabbed
  149. bindsym Mod1+e layout toggle split
  150.  
  151. # toggle tiling / floating
  152. bindsym Mod1+Shift+space floating toggle
  153.  
  154. # change focus between tiling / floating windows
  155. bindsym Mod1+space focus mode_toggle
  156.  
  157. # focus the parent container
  158. bindsym Mod1+a focus parent
  159.  
  160. # focus the child container
  161. #bindsym Mod1+d focus child
  162.  
  163. # move the currently focused window to the scratchpad
  164. bindsym Mod1+Shift+minus move scratchpad
  165.  
  166. # Show the next scratchpad window or hide the focused scratchpad window.
  167. # If there are multiple scratchpad windows, this command cycles through them.
  168. bindsym Mod1+minus scratchpad show
  169.  
  170. # Define names for default workspaces for which we configure key bindings later on.
  171. # We use variables to avoid repeating the names in multiple places.
  172. set $ws1 "1"
  173. set $ws2 "2"
  174. set $ws3 "3"
  175. set $ws4 "4"
  176. set $ws5 "5"
  177. set $ws6 "6"
  178. set $ws7 "7"
  179. set $ws8 "8"
  180. set $ws9 "9"
  181. set $ws10 "10"
  182.  
  183.  
  184. # switch to workspace
  185. bindsym Mod1+1 workspace $ws1
  186. bindsym Mod1+2 workspace $ws2
  187. bindsym Mod1+3 workspace $ws3
  188. bindsym Mod1+4 workspace $ws4
  189. bindsym Mod1+5 workspace $ws5
  190. bindsym Mod1+6 workspace $ws6
  191. bindsym Mod1+7 workspace $ws7
  192. bindsym Mod1+8 workspace $ws8
  193. bindsym Mod1+9 workspace $ws9
  194. bindsym Mod1+0 workspace $ws10
  195.  
  196. # move focused container to workspace
  197. bindsym Mod1+Shift+1 move container to workspace $ws1
  198. bindsym Mod1+Shift+2 move container to workspace $ws2
  199. bindsym Mod1+Shift+3 move container to workspace $ws3
  200. bindsym Mod1+Shift+4 move container to workspace $ws4
  201. bindsym Mod1+Shift+5 move container to workspace $ws5
  202. bindsym Mod1+Shift+6 move container to workspace $ws6
  203. bindsym Mod1+Shift+7 move container to workspace $ws7
  204. bindsym Mod1+Shift+8 move container to workspace $ws8
  205. bindsym Mod1+Shift+9 move container to workspace $ws9
  206. bindsym Mod1+Shift+0 move container to workspace $ws10
  207.  
  208. # reload the configuration file
  209. bindsym Mod1+Shift+c reload
  210. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  211. bindsym Mod1+Shift+r restart
  212. # exit i3 (logs you out of your X session)
  213. bindsym Mod1+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? Thi
  214. s will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
  215.  
  216. # resize window (you can also use the mouse for that)
  217. mode "resize" {
  218. # These bindings trigger as soon as you enter the resize mode
  219.  
  220. # Pressing left will shrink the window’s width.
  221. # Pressing right will grow the window’s width.
  222. # Pressing up will shrink the window’s height.
  223. # Pressing down will grow the window’s height.
  224. bindsym $left resize shrink width 10 px or 10 ppt
  225. bindsym $down resize grow height 10 px or 10 ppt
  226. bindsym $up resize shrink height 10 px or 10 ppt
  227. bindsym $right resize grow width 10 px or 10 ppt
  228.  
  229. # same bindings, but for the arrow keys
  230. bindsym Left resize shrink width 10 px or 10 ppt
  231. bindsym Down resize grow height 10 px or 10 ppt
  232. bindsym Up resize shrink height 10 px or 10 ppt
  233. bindsym Right resize grow width 10 px or 10 ppt
  234.  
  235. # back to normal: Enter or Escape or Mod1+r
  236. bindsym Return mode "default"
  237. bindsym Escape mode "default"
  238. bindsym Mod1+r mode "default"
  239. }
  240.  
  241. bindsym Mod1+r mode "resize"
  242.  
  243. # Start i3bar to display a workspace bar (plus the system information i3status
  244. # finds out, if available)
  245. bar {
  246. status_command i3status
  247. }
  248.  
  249. #######################################################################
  250. # automatically start i3-config-wizard to offer the user to create a
  251. # keysym-based config which used their favorite modifier (alt or windows)
  252. #
  253. # i3-config-wizard will not launch if there already is a config file
  254. # in ~/.i3/config.
  255. #
  256. # Please remove the following exec line:
  257. #######################################################################
  258. exec i3-config-wizard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement