Guest User

i3 config

a guest
Apr 6th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.29 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. exec ~/.config/i3/wallpaper.sh
  14. exec xrdb merge ~/.Xresources
  15. exec compton
  16.  
  17. # Font for window titles. Will also be used by the bar unless a different font
  18. # is used in the bar {} block below.
  19. font pango:monospace 8
  20.  
  21. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  22. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  23. #font pango:DejaVu Sans Mono 8
  24.  
  25. # Before i3 v4.8, we used to recommend this one as the default:
  26. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  27. # The font above is very space-efficient, that is, it looks good, sharp and
  28. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  29. # X core fonts rendering does not support right-to-left and this being a bitmap
  30. # font, it doesn’t scale on retina/hidpi displays.
  31.  
  32. # Use Mouse+$mod to drag floating windows to their wanted position
  33. floating_modifier $mod
  34.  
  35. # start a terminal
  36. bindsym $mod+Return exec i3-sensible-terminal
  37.  
  38. # kill focused window
  39. bindsym $mod+Shift+q kill
  40.  
  41. # start dmenu (a program launcher)
  42. #bindsym $mod+d exec dmenu_run
  43. bindsym $mod+d exec rofi -show run -lines 3 -eh 2 -width 40 -padding 20 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 18"
  44. # There also is the (new) i3-dmenu-desktop which only displays applications
  45. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  46. # installed.
  47. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  48.  
  49. # change focus
  50. bindsym $mod+j focus left
  51. bindsym $mod+k focus down
  52. bindsym $mod+l focus up
  53. bindsym $mod+semicolon focus right
  54.  
  55. # alternatively, you can use the cursor keys:
  56. bindsym $mod+Left focus left
  57. bindsym $mod+Down focus down
  58. bindsym $mod+Up focus up
  59. bindsym $mod+Right focus right
  60.  
  61. # move focused window
  62. bindsym $mod+Shift+j move left
  63. bindsym $mod+Shift+k move down
  64. bindsym $mod+Shift+l move up
  65. bindsym $mod+Shift+semicolon move right
  66.  
  67. # alternatively, you can use the cursor keys:
  68. bindsym $mod+Shift+Left move left
  69. bindsym $mod+Shift+Down move down
  70. bindsym $mod+Shift+Up move up
  71. bindsym $mod+Shift+Right move right
  72.  
  73. # split in horizontal orientation
  74. bindsym $mod+h split h
  75.  
  76. # split in vertical orientation
  77. bindsym $mod+v split v
  78.  
  79. # enter fullscreen mode for the focused container
  80. bindsym $mod+f fullscreen toggle
  81.  
  82. # change container layout (stacked, tabbed, toggle split)
  83. bindsym $mod+s layout stacking
  84. bindsym $mod+w layout tabbed
  85. bindsym $mod+e layout toggle split
  86.  
  87. # toggle tiling / floating
  88. bindsym $mod+Shift+space floating toggle
  89.  
  90. # change focus between tiling / floating windows
  91. bindsym $mod+space focus mode_toggle
  92.  
  93. # focus the parent container
  94. bindsym $mod+a focus parent
  95.  
  96. # focus the child container
  97. #bindsym $mod+d focus child
  98.  
  99. # switch to workspace
  100. bindsym $mod+1 workspace 1
  101. bindsym $mod+2 workspace 2
  102. bindsym $mod+3 workspace 3
  103. bindsym $mod+4 workspace 4
  104. bindsym $mod+5 workspace 5
  105. bindsym $mod+6 workspace 6
  106. bindsym $mod+7 workspace 7
  107. bindsym $mod+8 workspace 8
  108. bindsym $mod+9 workspace 9
  109. bindsym $mod+0 workspace 10
  110.  
  111. # move focused container to workspace
  112. bindsym $mod+Shift+1 move container to workspace 1
  113. bindsym $mod+Shift+2 move container to workspace 2
  114. bindsym $mod+Shift+3 move container to workspace 3
  115. bindsym $mod+Shift+4 move container to workspace 4
  116. bindsym $mod+Shift+5 move container to workspace 5
  117. bindsym $mod+Shift+6 move container to workspace 6
  118. bindsym $mod+Shift+7 move container to workspace 7
  119. bindsym $mod+Shift+8 move container to workspace 8
  120. bindsym $mod+Shift+9 move container to workspace 9
  121. bindsym $mod+Shift+0 move container to workspace 10
  122.  
  123. # reload the configuration file
  124. bindsym $mod+Shift+c reload
  125. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  126. bindsym $mod+Shift+r restart
  127. # exit i3 (logs you out of your X session)
  128. 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'"
  129.  
  130. # resize window (you can also use the mouse for that)
  131. mode "resize" {
  132. # These bindings trigger as soon as you enter the resize mode
  133.  
  134. # Pressing left will shrink the window’s width.
  135. # Pressing right will grow the window’s width.
  136. # Pressing up will shrink the window’s height.
  137. # Pressing down will grow the window’s height.
  138. bindsym j resize shrink width 10 px or 10 ppt
  139. bindsym k resize grow height 10 px or 10 ppt
  140. bindsym l resize shrink height 10 px or 10 ppt
  141. bindsym semicolon resize grow width 10 px or 10 ppt
  142.  
  143. # same bindings, but for the arrow keys
  144. bindsym Left resize shrink width 10 px or 10 ppt
  145. bindsym Down resize grow height 10 px or 10 ppt
  146. bindsym Up resize shrink height 10 px or 10 ppt
  147. bindsym Right resize grow width 10 px or 10 ppt
  148.  
  149. # back to normal: Enter or Escape
  150. bindsym Return mode "default"
  151. bindsym Escape mode "default"
  152. }
  153. bindsym $mod+r mode "resize"
  154. #
  155. ## Hide window titlebbar
  156.  
  157. for_window [class="^.*"] border pixel 1
  158. new_window 1pixel
  159.  
  160. # Gaps between windows
  161.  
  162. gaps inner 15
  163. gaps outer 2
  164. smart_gaps on
  165.  
  166. # Start i3bar to display a workspace bar (plus the system information i3status
  167. # finds out, if available)printscreen key
  168. #bar {
  169. # status_command i3status -c ~/.config/i3/i3status.conf
  170. # position top
  171. #}
  172.  
  173. bar {
  174. status_command i3blocks -c ~/.config/i3/i3blocks.conf
  175. colors {
  176. separator #268bd2
  177. background #3b3b3b
  178. statusline #FFFFFF
  179. focused_workspace #fdf6e3 #6c71c4 #fdf6e3
  180. active_workspace #fdf6e3 #6c71c4 #fdf6e3
  181. inactive_workspace #002b36 #586e75 #002b36
  182. urgent_workspace #d33682 #d33682 #fdf6e3
  183. }
  184. position top
  185. }
  186.  
  187. #Rename workspaces
  188.  
  189. bindsym $mod+shift+pc exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
  190.  
  191. bindsym $mod+shift+t exec ksysguard
  192. bindsym $mod+slash exec deepin-screenshot
Advertisement
Add Comment
Please, Sign In to add comment