Advertisement
Guest User

Untitled

a guest
Mar 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.73 KB | None | 0 0
  1.  
  2. # i3 config file (v4)
  3.  
  4. #-----------------------------------------------------------------------
  5. # variables
  6. #-----------------------------------------------------------------------
  7.  
  8. set $mod Mod4
  9. set $terminal termite
  10.  
  11. #-----------------------------------------------------------------------
  12. # colors
  13. #-----------------------------------------------------------------------
  14.  
  15. set_from_resource $color0 color0 #000000
  16. set_from_resource $color8 color8 #000000
  17.  
  18. set_from_resource $color1 color1 #000000
  19. set_from_resource $color9 color9 #000000
  20.  
  21. set_from_resource $color2 color2 #000000
  22. set_from_resource $color10 color10 #000000
  23.  
  24. set_from_resource $color3 color3 #000000
  25. set_from_resource $color11 color11 #000000
  26.  
  27. set_from_resource $color4 color4 #000000
  28. set_from_resource $color12 color12 #000000
  29.  
  30. set_from_resource $color5 color5 #000000
  31. set_from_resource $color13 color13 #000000
  32.  
  33. set_from_resource $color6 color6 #000000
  34. set_from_resource $color14 color14 #000000
  35.  
  36. set_from_resource $color7 color7 #000000
  37. set_from_resource $color15 color15 #000000
  38.  
  39. #-----------------------------------------------------------------------
  40. # workspaces
  41. #-----------------------------------------------------------------------
  42.  
  43. set $display_01 HDMI-1
  44. set $display_02 HDMI-2
  45.  
  46. set $workspace_01 "1:term"
  47. set $workspace_02 "2:code"
  48. set $workspace_03 "3:code"
  49. set $workspace_04 "4:misc"
  50. set $workspace_05 "5:inet"
  51. set $workspace_06 "6:read"
  52. set $workspace_07 "7:chat"
  53. set $workspace_08 "8:misc"
  54.  
  55. workspace $workspace_01 output $display_01
  56. workspace $workspace_02 output $display_01
  57. workspace $workspace_03 output $display_01
  58. workspace $workspace_04 output $display_01
  59. workspace $workspace_05 output $display_02
  60. workspace $workspace_06 output $display_02
  61. workspace $workspace_07 output $display_02
  62. workspace $workspace_08 output $display_02
  63.  
  64. bindsym $mod+1 workspace $workspace_01
  65. bindsym $mod+2 workspace $workspace_02
  66. bindsym $mod+3 workspace $workspace_03
  67. bindsym $mod+4 workspace $workspace_04
  68. bindsym $mod+5 workspace $workspace_05
  69. bindsym $mod+6 workspace $workspace_06
  70. bindsym $mod+7 workspace $workspace_07
  71. bindsym $mod+8 workspace $workspace_08
  72.  
  73. bindsym $mod+Tab workspace back_and_forth
  74.  
  75. bindsym $mod+Shift+1 move container to workspace number $workspace_01
  76. bindsym $mod+Shift+2 move container to workspace number $workspace_02
  77. bindsym $mod+Shift+3 move container to workspace number $workspace_03
  78. bindsym $mod+Shift+4 move container to workspace number $workspace_04
  79. bindsym $mod+Shift+5 move container to workspace number $workspace_05
  80. bindsym $mod+Shift+6 move container to workspace number $workspace_06
  81. bindsym $mod+Shift+7 move container to workspace number $workspace_07
  82. bindsym $mod+Shift+8 move container to workspace number $workspace_08
  83. bindsym $mod+Shift+9 move container to workspace number $workspace_09
  84.  
  85. #-----------------------------------------------------------------------
  86. # behavior
  87. #-----------------------------------------------------------------------
  88.  
  89. focus_on_window_activation none
  90. workspace_auto_back_and_forth yes
  91.  
  92. for_window [window_role="pop-up"] floating enable
  93. for_window [window_role="bubble"] floating enable
  94. for_window [window_role="dialog"] floating enable
  95. for_window [window_type="dialog"] floating enable
  96. for_window [class="(?i)pinentry"] floating enable
  97.  
  98. assign [class="(?i)skype"] $workspace_07
  99. assign [class="(?i)TelegramDesktop"] $workspace_07
  100.  
  101. #-----------------------------------------------------------------------
  102. # bindings
  103. #-----------------------------------------------------------------------
  104.  
  105. # use mouse+$mod to drag windows
  106. floating_modifier $mod
  107.  
  108. # start applications
  109. bindsym $mod+Return exec --no-startup-id $terminal
  110. bindsym $mod+d exec --no-startup-id rofi -show run
  111.  
  112. # kill focused window
  113. bindsym $mod+q kill
  114.  
  115. # i3 config
  116. bindsym $mod+Shift+c reload
  117. bindsym $mod+Shift+r restart
  118. bindsym $mod+Shift+e exit
  119.  
  120. # switch layouts
  121. bindsym $mod+x split vertical
  122. bindsym $mod+z split horizontal
  123. bindsym $mod+f fullscreen
  124. bindsym $mod+t layout toggle all
  125. bindsym $mod+space floating toggle
  126.  
  127. # move focus [vimlike]
  128. bindsym $mod+h focus left
  129. bindsym $mod+l focus right
  130. bindsym $mod+k focus up
  131. bindsym $mod+j focus down
  132.  
  133. # move focus [arrows]
  134. bindsym $mod+Left focus left
  135. bindsym $mod+Right focus right
  136. bindsym $mod+Up focus up
  137. bindsym $mod+Down focus down
  138.  
  139. # move focused window [vimlike]
  140. bindsym $mod+Shift+h move left
  141. bindsym $mod+Shift+l move right
  142. bindsym $mod+Shift+k move up
  143. bindsym $mod+Shift+j move down
  144.  
  145. # move focused window [arrows]
  146. bindsym $mod+Shift+Left move left
  147. bindsym $mod+Shift+Right move right
  148. bindsym $mod+Shift+Up move up
  149. bindsym $mod+Shift+Down move down
  150.  
  151. # pulse audio controls
  152. bindsym XF86AudioRaiseVolume exec --no-startup-id pulsemixer --change-volume +5
  153. bindsym XF86AudioLowerVolume exec --no-startup-id pulsemixer --change-volume -5
  154. bindsym XF86AudioMute exec --no-startup-id pulsemixer --toggle-mute
  155.  
  156.  
  157. #-----------------------------------------------------------------------
  158. # modes
  159. #-----------------------------------------------------------------------
  160.  
  161. bindsym $mod+r mode "resize"
  162. mode "resize" {
  163.  
  164. # change window's size [vimlike]
  165. bindsym h resize shrink width 10 px or 10 ppt
  166. bindsym j resize grow height 10 px or 10 ppt
  167. bindsym k resize shrink height 10 px or 10 ppt
  168. bindsym l resize grow width 10 px or 10 ppt
  169.  
  170. # change window's size [arrows]
  171. bindsym Left resize shrink width 10 px or 10 ppt
  172. bindsym Down resize grow height 10 px or 10 ppt
  173. bindsym Up resize shrink height 10 px or 10 ppt
  174. bindsym Right resize grow width 10 px or 10 ppt
  175.  
  176. bindsym Return mode "default"
  177. bindsym Escape mode "default"
  178. }
  179.  
  180. #-----------------------------------------------------------------------
  181. # appearance
  182. #-----------------------------------------------------------------------
  183.  
  184. font pango:Noto Sans Mono Semibold 11, Font Awesome 5 Free 11
  185.  
  186. set_from_resource $color0 color0 #000000
  187. set_from_resource $color1 color1 #000000
  188. set_from_resource $color2 color2 #000000
  189. set_from_resource $color3 color3 #000000
  190. set_from_resource $color4 color4 #000000
  191. set_from_resource $color5 color5 #000000
  192. set_from_resource $color6 color6 #000000
  193. set_from_resource $color7 color7 #000000
  194. set_from_resource $color8 color8 #000000
  195. set_from_resource $color9 color9 #000000
  196. set_from_resource $color10 color10 #000000
  197. set_from_resource $color11 color11 #000000
  198. set_from_resource $color12 color12 #000000
  199. set_from_resource $color13 color13 #000000
  200. set_from_resource $color14 color14 #000000
  201. set_from_resource $color15 color15 #000000
  202.  
  203. # BORDER BACKGROUND TEXT INDICATOR CHILD_BORDER
  204. client.focused $color2 $color0 $color7 $color7 $color8
  205. client.focused_inactive $color8 $color0 $color7 $color7 $color8
  206. client.unfocused $color8 $color0 $color7 $color7 $color8
  207. client.urgent $color1 $color0 $color1 $color1 $color1
  208. client.placeholder $color8 $color0 $color7 $color7 $color8
  209. client.background $color0
  210.  
  211. set $default_gaps_outer 0
  212. set $default_gaps_inner 10
  213.  
  214. #gaps outer $default_gaps_outer
  215. #gaps inner $default_gaps_inner
  216.  
  217. floating_minimum_size -1 x -1
  218. floating_maximum_size -1 x -1
  219.  
  220. for_window [class="^.*"] border none
  221.  
  222. #-----------------------------------------------------------------------
  223. # autostart
  224. #-----------------------------------------------------------------------
  225.  
  226. exec --no-startup-id feh --no-fehbg --randomize --bg-scale $HOME/.config/themes/gruvbox/wallpapers/*
  227. exec --no-startup-id compton --config $HOME/.config/compton/config -b &
  228. exec --no-startup-id ~/.config/polybar/launch.sh
  229. exec --no-startup-id dunst &
  230. exec --no-startup-id telegram-desktop &
  231.  
  232. #-----------------------------------------------------------------------
  233. # layout test
  234. #-----------------------------------------------------------------------
  235.  
  236. assign [instance="termite-one"] $workspace_06
  237. assign [instance="termite-two"] $workspace_06
  238. assign [instance="termite-three"] $workspace_06
  239.  
  240. exec --no-startup-id i3-msg "workspace 6:read; append_layout ~/.config/i3/layout.json"
  241.  
  242. exec --no-startup-id termite --title "termite-one" --exec "echo 'termite 1'" --hold
  243. exec --no-startup-id termite --title "termite-two" --exec "echo 'termite 2'" --hold
  244. exec --no-startup-id termite --title "termite-three" --exec "echo 'termite 3'" --hold
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement