Advertisement
Guest User

i3Config

a guest
Oct 30th, 2019
6,648
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.07 KB | None | 0 0
  1. #### DO NOT EDIT THIS FILE, IT IS GENERATED.
  2. #### EDIT THE FILES HERE: /home/sqrl/.config/i3/config.d/*
  3.  
  4. ###############################
  5. #### VARIABLES ####
  6. ###############################
  7.  
  8. # Mod4 = Windows Key, Command Key, $mod
  9. # Mod1 = Alt, $other
  10.  
  11. set $mod Mod4
  12. set $modalt Mod1
  13.  
  14. font pango:DejaVu Sans Mono 8
  15.  
  16. # set workspace labels
  17. set $WS1 "1:"
  18. set $WS2 "2:"
  19. set $WS3 "3:"
  20. set $WS4 "4:"
  21. set $WS5 "5:"
  22. set $WS6 "6"
  23. set $WS7 "7"
  24. set $WS8 "8:"
  25. set $WS9 "9:"
  26. set $WS10 "10:"
  27.  
  28. ###########################
  29. #### APPLICATIONS ####
  30. ###########################
  31.  
  32.  
  33. #### BINDS ####
  34.  
  35. bindsym $mod+F1 exec --no-startup-id chromium
  36. bindsym $mod+F2 exec --no-startup-id subl3
  37. bindsym $mod+F3 exec --no-startup-id spotify
  38. bindsym $mod+F4 exec |--no-startup-id steam
  39.  
  40. bindsym $mod+Shift+Return exec --no-startup-id thunar
  41.  
  42. bindsym control+Shift+Escape exec --no-startup-id xfce4-taskmanager;focus
  43.  
  44. bindsym control+mod1+u exec --no-startup-id pavucontrol
  45.  
  46.  
  47.  
  48. bindsym Print exec --no-startup-id flameshot gui
  49.  
  50.  
  51. #### STARTUP ####
  52. exec spotify
  53. exec discord
  54. exec discord-canary
  55. exec steam
  56. exec flameshot
  57. exec_always --no-startup-id compton --config ~/.config/i3/config.d/compton.conf
  58. exec ckb-next
  59. exec thunderbird
  60.  
  61. #################################
  62. #### BASE CONFIG ####
  63. #################################
  64.  
  65. #Mouse Window Focus
  66. focus_follows_mouse no
  67.  
  68. #Mouse+$mod to drag floating windows to a position
  69. floating_modifier $mod
  70.  
  71. # i3 shorcuts for reload/restart/exit
  72. bindsym $mod+Shift+$modalt+r exec ~/.config/i3/config.d/create-config
  73. bindsym $mod+Shift+r restart
  74.  
  75.  
  76. exec --no-startup-id setxkbmap gb
  77.  
  78. ############################
  79. #### COLORS ####
  80. ############################
  81.  
  82. # class border backgr. text indicator
  83. client.focused #000000 #c6ff00 #000000 #dddddd
  84. client.focused_inactive #333333 #333333 #c6ff00 #ffffff
  85. client.unfocused #333333 #333333 #888888 #292d2e
  86. client.urgent #2f343a #900000 #ffffff #900000
  87.  
  88. ######################################
  89. #### CONTAINER CONFIG ####
  90. ######################################
  91.  
  92. # change focus
  93. bindsym $mod+h focus left
  94. bindsym $mod+j focus down
  95. bindsym $mod+k focus up
  96. bindsym $mod+l focus right
  97.  
  98. for_window [class="^.*"] border pixel 0
  99. for_window [title="^synapse$"] border pixel 0
  100. for_window [class="^mpv$"] border pixel 0
  101.  
  102. # Floating windows
  103. for_window [title="^Authy$"] floating enable
  104. for_window [class="^mpv$"] floating enable
  105. for_window [title="^Image Viewer$"] floating enable
  106. for_window [title="^Web Inspector.*"] floating enable
  107.  
  108. # move focused window
  109. bindsym $mod+$modalt+H move left
  110. bindsym $mod+$modalt+J move down
  111. bindsym $mod+$modalt+K move up
  112. bindsym $mod+$modalt+L move right
  113.  
  114. # don't move to another screen when changing focus
  115. force_focus_wrapping yes
  116.  
  117. # zoom
  118. bindsym $mod+f fullscreen
  119.  
  120. # change container layout (stacked, tabbed, default)
  121. bindsym $mod+z layout stacking
  122. bindsym $mod+t layout tabbed
  123. bindsym $mod+e layout default
  124.  
  125. # toggle tiling/floating
  126. bindsym $mod+$modalt+space floating toggle
  127.  
  128. # change focus between tiling/floating windows
  129. bindsym $modalt+space focus mode_toggle
  130.  
  131. hide_edge_borders both
  132. new_window pixel 5
  133. workspace_auto_back_and_forth yes
  134.  
  135. # Jump to urgent window
  136. bindsym $mod+$modalt+x [urgent=latest] focus
  137.  
  138. # kill focused window
  139. bindsym $mod+Q kill
  140. bindsym $mod+Shift+Q kill
  141.  
  142. #################################
  143. #### GAPS CONFIG ####
  144. #################################
  145.  
  146. gaps inner 10
  147. gaps outer 12
  148. smart_gaps on
  149. smart_borders no_gaps
  150. for_window [class="^.*"] border pixel 0
  151.  
  152.  
  153.  
  154. #################################
  155. #### BAR CONFIG ####
  156. #################################
  157.  
  158. bar {
  159.  
  160. height 25
  161. workspace_buttons yes
  162. font pango:DejaVu Sans Mono 12
  163.  
  164. position top
  165.  
  166. status_command i3blocks -c ~/.config/i3/config.d/i3blocks
  167.  
  168. colors {
  169. background #2F2F2F
  170. statusline #eeeeee
  171. separator #666666
  172. # border backgr. text
  173. focused_workspace #a9a9a9 #5f676a #eeeeee
  174. active_workspace #a9a9a9 #5f676a #a9a9a9
  175. inactive_workspace #a9a9a9 #222222 #a9a9a9
  176. urgent_workspace #a9a9a9 #d42121 #FFFFFF
  177. }
  178.  
  179. }
  180.  
  181. ###########################
  182. #### MENUS ####
  183. ###########################
  184.  
  185. #exit
  186. bindsym $mod+X mode "$mode_system"
  187.  
  188. set $mode_system System: loc(k), (l)ogout, s(u)spend, (h)ibernate, (r)eboot, (s)hutdown
  189. mode "$mode_system" {
  190. bindsym k exec --no-startup-id ~/.config/i3/scripts/i3exit.sh lock, mode "default"
  191. bindsym l exec --no-startup-id ~/.config/i3/scripts/i3exit.sh logout, mode "default"
  192. bindsym u exec --no-startup-id ~/.config/i3/scripts/i3exit.sh suspend, mode "default"
  193. bindsym h exec --no-startup-id ~/.config/i3/scripts/i3exit.sh hibernate, mode "default"
  194. bindsym r exec --no-startup-id ~/.config/i3/scripts/i3exit.sh reboot, mode "default"
  195. bindsym s exec --no-startup-id ~/.config/i3/scripts/i3exit.sh shutdown, mode "default"
  196.  
  197. # back to normal: Enter or Escape
  198. bindsym Return mode "default"
  199. bindsym Escape mode "default"
  200. }
  201. ##########################
  202. #### ROFI ####
  203. ##########################
  204.  
  205. bindsym $mod+Shift+d exec rofi -show run
  206. bindsym $mod+d exec rofi -show run
  207.  
  208. #####################################
  209. #### TERMINAL CONFIG ####
  210. #####################################
  211.  
  212. bindsym $mod+Return exec termite
  213.  
  214. # horizontal split (left/right)
  215. bindsym $mod+Shift+H split h
  216. bindsym $mod+Shift+$modalt+H split h; exec termite
  217.  
  218. # vertical split (up/down)
  219. bindsym $mod+Shift+V split v
  220. bindsym $mod+Shift+$modalt+V split v; exec termite
  221.  
  222.  
  223. ######################################
  224. #### WORKSPACE CONFIG ####
  225. ######################################
  226.  
  227. # next/previous workspace
  228. bindsym $modalt+Tab focus right
  229. bindsym $modalt+Shift+Tab focus left
  230. bindsym $mod+Tab workspace back_and_forth
  231.  
  232. # open workspace
  233. bindsym $mod+1 workspace $WS1
  234. bindsym $mod+2 workspace $WS2
  235. bindsym $mod+3 workspace $WS3
  236. bindsym $mod+4 workspace $WS4
  237. bindsym $mod+5 workspace $WS5
  238. bindsym $mod+6 workspace $WS6
  239. bindsym $mod+7 workspace $WS7
  240. bindsym $mod+8 workspace $WS8
  241. bindsym $mod+9 workspace $WS9
  242. bindsym $mod+0 workspace $WS10
  243.  
  244. # move focused container to workspace
  245. bindsym $modalt+1 move container to workspace $WS1
  246. bindsym $modalt+2 move container to workspace $WS2
  247. bindsym $modalt+3 move container to workspace $WS3
  248. bindsym $modalt+4 move container to workspace $WS4
  249. bindsym $modalt+5 move container to workspace $WS5
  250. bindsym $modalt+6 move container to workspace $WS6
  251. bindsym $modalt+7 move container to workspace $WS7
  252. bindsym $modalt+8 move container to workspace $WS8
  253. bindsym $modalt+9 move container to workspace $WS9
  254. bindsym $$modalt+0 move container to workspace $WS10
  255.  
  256. bindsym $mod+m move workspace to output right
  257.  
  258.  
  259. assign [class="Chromium|Google-chrome"] $WS1
  260. assign [class="discord|discord-canary"] $WS2
  261. assign [class="Subl3"] $WS3
  262. assign [class="steam"] $WS4
  263. assign [class="spotify|Spotify|Spotify-beta|spotify-beta"] $WS5
  264. assign [class="dota2"] $WS6
  265. assign [class="ckb-next"] $WS8
  266. assign [class="Thunderbird"] $WS9
  267.  
  268. for_window [class="Spotify"] move to workspace $WS5
  269. for_window [class="Steam|steam"] move to workspace $WS4
  270. for_window [class="Subl3"] move to workspace $WS3
  271. for_window [class="thunar"] move to workspace $WS3
  272. for_window [class="Thunderbird"] move to workspace $WS9
  273.  
  274. ####################################
  275. #### XF86 SHORTCUTS ####
  276. ####################################
  277.  
  278. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 2 +5%
  279. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 2 -5%
  280.  
  281. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 2 toggle
  282.  
  283. bindsym XF86AudioPlay exec playerctl play-pause
  284. bindsym XF86AudioPause exec playerctl play-pause
  285. bindsym XF86AudioNext exec playerctl next
  286. bindsym XF86AudioPrev exec playerctl previous
  287. bindsym XF86AudioStop exec playerctl stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement