Advertisement
Guest User

i3conf

a guest
Jul 19th, 2019
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.42 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 https://i3wm.org/docs/userguide.html for a complete reference!
  11.  
  12. set $mod Mod4
  13. bindsym $mod+Shift+g mode "$mode_gaps"
  14. mode "$mode_gaps" {
  15. bindsym plus gaps inner current plus 1
  16. bindsym minus gaps inner current minus 1
  17. bindsym 0 gaps inner current set 0
  18. bindsym Shift+plus gaps inner all plus 1
  19. bindsym Shift+minus gaps inner all minus 1
  20. bindsym Shift+0 gaps inner all set 0
  21. bindsym Shift+9 gaps inner all set 20
  22. bindsym Escape mode "default"
  23. }
  24. # Font for window titles. Will also be used by the bar unless a different font
  25. # is used in the bar {} block below.
  26. # font pango:Iosevka 10, Font Awesome 5 Free bold 10
  27.  
  28. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  29. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  30. #font pango:DejaVu Sans Mono 8
  31. default_border none
  32. default_floating_border none
  33. # hide_edge_borders both
  34. #gaps outer 2
  35. gaps inner 20
  36. smart_gaps on
  37. smart_borders no_gaps
  38.  
  39. # Before i3 v4.8, we used to recommend this one as the default:
  40. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  41. # The font above is very space-efficient, that is, it looks good, sharp and
  42. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  43. # X core fonts rendering does not support right-to-left and this being a bitmap
  44. # font, it doesn’t scale on retina/hidpi displays.
  45.  
  46. # Use Mouse+$mod to drag floating windows to their wanted position
  47. floating_modifier $mod
  48.  
  49. # start a terminal
  50. bindsym $mod+Return exec termite
  51. bindsym $mod+F2 exec firefox
  52. bindsym $mod+Print exec i3-scrot
  53. bindsym $mod+Ctrl+s exec --no-startup-id pkill compton &
  54. bindsym $mod+Shift+s exec --no-startup-id compton -b --blur-method kawase --blur-strength 2
  55. # kill focused window
  56. bindsym $mod+Shift+q kill
  57.  
  58. # start dmenu (a program launcher)
  59. bindsym $mod+d exec dmenu_run -fn 'SarasaMonoJ-9'
  60. bindsym $mod+z exec morc_menu
  61. bindsym $mod+F3 exec termite -e ranger
  62. bindsym --release $mod+Shift+Print exec i3-scrot -s
  63. # change focus
  64. bindsym $mod+j focus left
  65. bindsym $mod+k focus down
  66. bindsym $mod+l focus up
  67. bindsym $mod+semicolon focus right
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym $mod+Left focus left
  71. bindsym $mod+Down focus down
  72. bindsym $mod+Up focus up
  73. bindsym $mod+Right focus right
  74.  
  75. # move focused window
  76. bindsym $mod+Shift+j move left
  77. bindsym $mod+Shift+k move down
  78. bindsym $mod+Shift+l move up
  79. bindsym $mod+Shift+semicolon move right
  80.  
  81. # alternatively, you can use the cursor keys:
  82. bindsym $mod+Shift+Left move left
  83. bindsym $mod+Shift+Down move down
  84. bindsym $mod+Shift+Up move up
  85. bindsym $mod+Shift+Right move right
  86. bindsym $mod+Ctrl+1 exec --no-startup-id sh /home/elen/sources/workspace
  87. bindsym $mod+Ctrl+2 exec --no-startup-id sh /home/elen/sources/workspace2
  88.  
  89. # split in horizontal orientation
  90. bindsym $mod+h split h
  91.  
  92. # split in vertical orientation
  93. bindsym $mod+v split v
  94.  
  95. # enter fullscreen mode for the focused container
  96. bindsym $mod+f fullscreen toggle
  97.  
  98. # change container layout (stacked, tabbed, toggle split)
  99. bindsym $mod+s layout stacking
  100. bindsym $mod+w layout tabbed
  101. bindsym $mod+e layout toggle split
  102.  
  103. # toggle tiling / floating
  104. bindsym $mod+Shift+space floating toggle
  105.  
  106. # change focus between tiling / floating windows
  107. bindsym $mod+space focus mode_toggle
  108. # focus the parent container
  109. bindsym $mod+a focus parent
  110.  
  111. # focus the child container
  112. #bindsym $mod+d focus child
  113.  
  114. # Define names for default workspaces for which we configure key bindings later on.
  115. # We use variables to avoid repeating the names in multiple places.
  116. set $ws1 "1:💀"
  117. set $ws2 "2:🤔"
  118. set $ws3 "3:🤷"
  119. set $ws4 "4:🤠"
  120. set $ws5 "5:🥰"
  121. set $ws6 "6:🙃"
  122. set $ws7 "7:😬"
  123. set $ws8 "8:💩"
  124. set $ws9 "9:😭"
  125.  
  126. # switch to workspace
  127. bindsym $mod+1 workspace $ws1
  128. bindsym $mod+2 workspace $ws2
  129. bindsym $mod+3 workspace $ws3
  130. bindsym $mod+4 workspace $ws4
  131. bindsym $mod+5 workspace $ws5
  132. bindsym $mod+6 workspace $ws6
  133. bindsym $mod+7 workspace $ws7
  134. bindsym $mod+8 workspace $ws8
  135. bindsym $mod+9 workspace $ws9
  136. bindsym $mod+Tab workspace next
  137. bindsym $mod+Shift+Tab workspace prev
  138.  
  139. # move focused container to workspace
  140. bindsym $mod+Shift+1 move container to workspace $ws1
  141. bindsym $mod+Shift+2 move container to workspace $ws2
  142. bindsym $mod+Shift+3 move container to workspace $ws3
  143. bindsym $mod+Shift+4 move container to workspace $ws4
  144. bindsym $mod+Shift+5 move container to workspace $ws5
  145. bindsym $mod+Shift+6 move container to workspace $ws6
  146. bindsym $mod+Shift+7 move container to workspace $ws7
  147. bindsym $mod+Shift+8 move container to workspace $ws8
  148. bindsym $mod+Shift+9 move container to workspace $ws9
  149.  
  150. # reload the configuration file
  151. bindsym $mod+Shift+c reload
  152. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  153. bindsym $mod+Shift+r restart
  154. # exit i3 (logs you out of your X session)
  155. 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'"
  156.  
  157. # resize window (you can also use the mouse for that)
  158. mode "resize" {
  159. # These bindings trigger as soon as you enter the resize mode
  160.  
  161. # Pressing left will shrink the window’s width.
  162. # Pressing right will grow the window’s width.
  163. # Pressing up will shrink the window’s height.
  164. # Pressing down will grow the window’s height.
  165. bindsym j resize shrink width 5 px
  166. bindsym k resize grow height 5 px
  167. bindsym l resize shrink height 5 px
  168. bindsym semicolon resize grow width 5 px
  169.  
  170. # same bindings, but for the arrow keys
  171. bindsym Left resize shrink width 5 px
  172. bindsym Down resize grow height 5 px
  173. bindsym Up resize shrink height 5 px
  174. bindsym Right resize grow width 5 px
  175.  
  176. bindsym Shift+Left resize shrink width 1 px
  177. bindsym Shift+Down resize grow height 1 px
  178. bindsym Shift+Up resize shrink height 1 px
  179. bindsym Shift+Right resize grow width 1 px
  180.  
  181. # back to normal: Enter or Escape or $mod+r
  182. bindsym Return mode "default"
  183. bindsym Escape mode "default"
  184. bindsym $mod+r mode "default"
  185. }
  186.  
  187. bindsym $mod+r mode "resize"
  188.  
  189. # Start i3bar to display a workspace bar (plus the system information i3status
  190. # finds out, if available)
  191. bar {
  192. position bottom
  193. strip_workspace_numbers yes
  194. i3bar_command i3bar -t
  195. status_command py3status
  196. font pango:Sarasa Mono J 9
  197. colors {
  198. background #161b1dBF
  199. statusline #7ea2b4
  200. separator #5a7b8c
  201. focused_workspace #7ea2b4 #257fad #161b1d
  202. active_workspace #7ea2b4 #161b1d #7ea2b4
  203. inactive_workspace #000000 #000000 #000000
  204. urgent_workspace #7ea2b4 #d22d72 #161b1d
  205. }
  206. }
  207. # class border backgr text indicat child_border
  208. client.focused #000000 #000000 #000000 #000000 #257fad
  209. client.focused_inactive #000000 #000000 #000000 #000000 #516d7b
  210. client.unfocused #000000 #000000 #000000 #000000 #516d7b
  211. client.urgent #000000 #000000 #000000 #000000 #516d7b
  212. client.placeholder #000000 #000000 #000000 #000000 #516d7b
  213. client.background #000000
  214.  
  215. for_window [class=.*] border pixel 2
  216. for_window [class="Lxappearance"] floating enable border pixel 2
  217. for_window [class="Nitrogen"] floating enable border pixel 2
  218. for_window [class="Steam"] floating enable border pixel 2
  219. for_window [title="Minecraft Launcher"] floating enable border pixel 2
  220. for_window [title="Volume Control"] floating enable border pixel 2
  221. for_window [title="Bluetooth Devices"] floating enable border pixel 2
  222. for_window [title="Tlp-UI"] floating enable border pixel 2
  223. for_window [class="discord"] floating enable border pixel 2
  224.  
  225. exec --no-startup-id nitrogen --restore; sleep 1; compton -b --backend glx --blur-method kawase --blur-strength 2
  226. exec --no-startup-id cbatticon
  227. exec --no-startup-id nm-applet
  228. exec --no-startup-id pa-applet
  229. # exec --no-startup-id /usr/bin/steam -silent %U
  230. exec --no-startup-id xbindkeys
  231. exec --no-startup-id dunst
  232. exec --no-startup-id libinput-gestures-setup start
  233. exec --no-startup-id blueman-applet
  234. exec --no-startup-id xinput set-prop "DLL07A8:01 044E:120B" "libinput Tapping Enabled" 1
  235. exec --no-startup-id mopidy
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement