Guest User

i3 config

a guest
Dec 27th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.14 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.  
  14. # Font for window titles. Will also be used by the bar unless a different font
  15. # is used in the bar {} block below.
  16. font Hack 8
  17.  
  18. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  19. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  20. #font pango:DejaVu Sans Mono 8
  21.  
  22. # Before i3 v4.8, we used to recommend this one as the default:
  23. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  24. # The font above is very space-efficient, that is, it looks good, sharp and
  25. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  26. # X core fonts rendering does not support right-to-left and this being a bitmap
  27. # font, it doesn’t scale on retina/hidpi displays.
  28.  
  29. # Use Mouse+$mod to drag floating windows to their wanted position
  30. floating_modifier $mod
  31.  
  32. # start a terminal
  33. bindsym $mod+Return exec konsole
  34.  
  35. # kill focused window
  36. bindsym $mod+Shift+q kill
  37.  
  38. # start dmenu (a program launcher)
  39. #bindsym $mod+d exec dmenu_run
  40.  
  41. # For use with xfce4 whisker popup menu in Mint XFCE:
  42. # bindsym $mod+Shift+d exec dmenu_run
  43. # bindsym $mod+d exec --no-startup-id xfce4-popup-whiskermenu
  44.  
  45.  
  46. # There also is the (new) i3-dmenu-desktop which only displays applications
  47. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  48. # installed.
  49. bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  50.  
  51. # change focus
  52. #bindsym $mod+j focus left
  53. #bindsym $mod+k focus down
  54. #bindsym $mod+l focus up
  55. #bindsym $mod+semicolon focus right
  56.  
  57. # alternatively, you can use the cursor keys:
  58. bindsym $mod+Left focus left
  59. bindsym $mod+Down focus down
  60. bindsym $mod+Up focus up
  61. bindsym $mod+Right focus right
  62.  
  63. # move focused window
  64. #bindsym $mod+Shift+j move left
  65. #bindsym $mod+Shift+k move down
  66. #bindsym $mod+Shift+l move up
  67. #bindsym $mod+Shift+semicolon move right
  68.  
  69. # alternatively, you can use the cursor keys:
  70. bindsym $mod+Shift+Left move left
  71. bindsym $mod+Shift+Down move down
  72. bindsym $mod+Shift+Up move up
  73. bindsym $mod+Shift+Right move right
  74.  
  75. # split in horizontal orientation
  76. bindsym $mod+h split h
  77.  
  78. # split in vertical orientation
  79. bindsym $mod+v split v
  80.  
  81. # enter fullscreen mode for the focused container
  82. bindsym $mod+f fullscreen toggle
  83.  
  84. # change container layout (stacked, tabbed, toggle split)
  85. bindsym $mod+s layout stacking
  86. bindsym $mod+w layout tabbed
  87. bindsym $mod+e layout toggle split
  88.  
  89. # toggle tiling / floating
  90. bindsym $mod+Shift+space floating toggle
  91.  
  92. # change focus between tiling / floating windows
  93. bindsym $mod+space focus mode_toggle
  94.  
  95. # focus the parent container
  96. bindsym $mod+a focus parent
  97.  
  98. # focus the child container
  99. #bindsym $mod+d focus child
  100.  
  101. #Assign Workspace Vars
  102. set $ws1 "1:www"
  103. set $ws2 "2:coms"
  104. set $ws3 "3:rdp"
  105. set $ws4 "4:music"
  106. set $ws5 "5:vbox"
  107. # switch to workspace
  108. bindsym $mod+1 workspace $ws1
  109. bindsym $mod+2 workspace $ws2
  110. bindsym $mod+3 workspace $ws3
  111. bindsym $mod+4 workspace $ws4
  112. bindsym $mod+5 workspace $ws5
  113. bindsym $mod+6 workspace 6
  114. bindsym $mod+7 workspace 7
  115. bindsym $mod+8 workspace 8
  116. bindsym $mod+9 workspace 9
  117. bindsym $mod+0 workspace 10
  118.  
  119. # move focused container to workspace
  120. bindsym $mod+Shift+1 move container to workspace $ws1
  121. bindsym $mod+Shift+2 move container to workspace $ws2
  122. bindsym $mod+Shift+3 move container to workspace $ws3
  123. bindsym $mod+Shift+4 move container to workspace $ws4
  124. bindsym $mod+Shift+5 move container to workspace $ws5
  125. bindsym $mod+Shift+6 move container to workspace 6
  126. bindsym $mod+Shift+7 move container to workspace 7
  127. bindsym $mod+Shift+8 move container to workspace 8
  128. bindsym $mod+Shift+9 move container to workspace 9
  129. bindsym $mod+Shift+0 move container to workspace 10
  130. bindsym Mod4+Tab workspace next
  131. bindsym Mod4+Shift+Tab workspace prev
  132.  
  133. # reload the configuration file
  134. bindsym $mod+Shift+c reload
  135. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  136. bindsym $mod+Shift+r restart
  137. # exit i3 (logs you out of your X session)
  138. #-old-#
  139. bindsym $mod+Shift+e exec loginctl terminate-user "carl"
  140. #bindsym $mod+Shift+e exec xfce4-session-logout
  141.  
  142. # resize window (you can also use the mouse for that)
  143. mode "resize" {
  144. # These bindings trigger as soon as you enter the resize mode
  145.  
  146. # Pressing left will shrink the window’s width.
  147. # Pressing right will grow the window’s width.
  148. # Pressing up will shrink the window’s height.
  149. # Pressing down will grow the window’s height.
  150. bindsym j resize shrink width 10 px or 10 ppt
  151. bindsym k resize grow height 10 px or 10 ppt
  152. bindsym l resize shrink height 10 px or 10 ppt
  153. bindsym semicolon resize grow width 10 px or 10 ppt
  154.  
  155. # same bindings, but for the arrow keys
  156. bindsym Left resize shrink width 10 px or 10 ppt
  157. bindsym Down resize grow height 10 px or 10 ppt
  158. bindsym Up resize shrink height 10 px or 10 ppt
  159. bindsym Right resize grow width 10 px or 10 ppt
  160.  
  161. # back to normal: Enter or Escape
  162. bindsym Return mode "default"
  163. bindsym Escape mode "default"
  164. }
  165.  
  166. bindsym $mod+r mode "resize"
  167.  
  168. set $mode_gaps Gaps: (o)uter, (i)nner, (h)orizontal, (v)ertical, (t)op, (r)ight, (b)ottom, (l)eft
  169. set $mode_gaps_outer Outer Gaps: +|-|0 (local), Shift + +|-|0 (global)
  170. set $mode_gaps_inner Inner Gaps: +|-|0 (local), Shift + +|-|0 (global)
  171. set $mode_gaps_horiz Horizontal Gaps: +|-|0 (local), Shift + +|-|0 (global)
  172. set $mode_gaps_verti Vertical Gaps: +|-|0 (local), Shift + +|-|0 (global)
  173. set $mode_gaps_top Top Gaps: +|-|0 (local), Shift + +|-|0 (global)
  174. set $mode_gaps_right Right Gaps: +|-|0 (local), Shift + +|-|0 (global)
  175. set $mode_gaps_bottom Bottom Gaps: +|-|0 (local), Shift + +|-|0 (global)
  176. set $mode_gaps_left Left Gaps: +|-|0 (local), Shift + +|-|0 (global)
  177. bindsym $mod+Shift+g mode "$mode_gaps"
  178.  
  179. mode "$mode_gaps" {
  180. bindsym o mode "$mode_gaps_outer"
  181. bindsym i mode "$mode_gaps_inner"
  182. bindsym h mode "$mode_gaps_horiz"
  183. bindsym v mode "$mode_gaps_verti"
  184. bindsym t mode "$mode_gaps_top"
  185. bindsym r mode "$mode_gaps_right"
  186. bindsym b mode "$mode_gaps_bottom"
  187. bindsym l mode "$mode_gaps_left"
  188. bindsym Return mode "$mode_gaps"
  189. bindsym Escape mode "default"
  190. }
  191.  
  192. mode "$mode_gaps_outer" {
  193. bindsym plus gaps outer current plus 5
  194. bindsym minus gaps outer current minus 5
  195. bindsym 0 gaps outer current set 0
  196.  
  197. bindsym Shift+plus gaps outer all plus 5
  198. bindsym Shift+minus gaps outer all minus 5
  199. bindsym Shift+0 gaps outer all set 0
  200.  
  201. bindsym Return mode "$mode_gaps"
  202. bindsym Escape mode "default"
  203. }
  204. mode "$mode_gaps_inner" {
  205. bindsym plus gaps inner current plus 5
  206. bindsym minus gaps inner current minus 5
  207. bindsym 0 gaps inner current set 0
  208.  
  209. bindsym Shift+plus gaps inner all plus 5
  210. bindsym Shift+minus gaps inner all minus 5
  211. bindsym Shift+0 gaps inner all set 0
  212.  
  213. bindsym Return mode "$mode_gaps"
  214. bindsym Escape mode "default"
  215. }
  216. mode "$mode_gaps_horiz" {
  217. bindsym plus gaps horizontal current plus 5
  218. bindsym minus gaps horizontal current minus 5
  219. bindsym 0 gaps horizontal current set 0
  220.  
  221. bindsym Shift+plus gaps horizontal all plus 5
  222. bindsym Shift+minus gaps horizontal all minus 5
  223. bindsym Shift+0 gaps horizontal all set 0
  224.  
  225. bindsym Return mode "$mode_gaps"
  226. bindsym Escape mode "default"
  227. }
  228. mode "$mode_gaps_verti" {
  229. bindsym plus gaps vertical current plus 5
  230. bindsym minus gaps vertical current minus 5
  231. bindsym 0 gaps vertical current set 0
  232.  
  233. bindsym Shift+plus gaps vertical all plus 5
  234. bindsym Shift+minus gaps vertical all minus 5
  235. bindsym Shift+0 gaps vertical all set 0
  236.  
  237. bindsym Return mode "$mode_gaps"
  238. bindsym Escape mode "default"
  239. }
  240. mode "$mode_gaps_top" {
  241. bindsym plus gaps top current plus 5
  242. bindsym minus gaps top current minus 5
  243. bindsym 0 gaps top current set 0
  244.  
  245. bindsym Shift+plus gaps top all plus 5
  246. bindsym Shift+minus gaps top all minus 5
  247. bindsym Shift+0 gaps top all set 0
  248.  
  249. bindsym Return mode "$mode_gaps"
  250. bindsym Escape mode "default"
  251. }
  252. mode "$mode_gaps_right" {
  253. bindsym plus gaps right current plus 5
  254. bindsym minus gaps right current minus 5
  255. bindsym 0 gaps right current set 0
  256. bindsym Shift+plus gaps right all plus 5
  257. bindsym Shift+minus gaps right all minus 5
  258. bindsym Shift+0 gaps right all set 0
  259.  
  260. bindsym Return mode "$mode_gaps"
  261. bindsym Escape mode "default"
  262. }
  263. mode "$mode_gaps_bottom" {
  264. bindsym plus gaps bottom current plus 5
  265. bindsym minus gaps bottom current minus 5
  266. bindsym 0 gaps bottom current set 0
  267.  
  268. bindsym Shift+plus gaps bottom all plus 5
  269. bindsym Shift+minus gaps bottom all minus 5
  270. bindsym Shift+0 gaps bottom all set 0
  271.  
  272. bindsym Return mode "$mode_gaps"
  273. bindsym Escape mode "default"
  274. }
  275. mode "$mode_gaps_left" {
  276. bindsym plus gaps left current plus 5
  277. bindsym minus gaps left current minus 5
  278. bindsym 0 gaps left current set 0
  279.  
  280. bindsym Shift+plus gaps left all plus 5
  281. bindsym Shift+minus gaps left all minus 5
  282. bindsym Shift+0 gaps left all set 0
  283.  
  284. bindsym Return mode "$mode_gaps"
  285. bindsym Escape mode "default"
  286. }
  287. bindsym $mod+o open
  288. bindsym $mod+l exec --no-startup-id /home/carl/.i3/i3-lock.sh -e
  289. # Pulse Audio controls
  290. bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume
  291. bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% #decrease sound volume
  292. bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
  293. bindsym $mod+Shift+s sticky toggle
  294.  
  295. # Start i3bar to display a workspace bar (plus the system information i3status
  296. # finds out, if available)
  297.  
  298.  
  299. bar {
  300. position top
  301. tray_output primary
  302. tray_padding 2
  303. font Hack 2
  304. separator_symbol "-_-"
  305. # status_command i3status
  306. status_command /home/carl/.i3/netspeed.sh
  307. strip_workspace_numbers yes
  308. }
  309. exec --no-startup-id nitrogen --restore
  310. exec --no-startup-id "i3-msg 'workspace number 1; append_layout /home/carl/.i3/workspace_1.json'"
  311. exec --no-startup-id "i3-msg 'workspace number 2; append_layout /home/carl/.i3/workspace_2.json'"
  312. #exec --no-startup-id "i3-msg 'workspace number 3; append_layout /home/carl/.i3/workspace_3.json'"
  313. #exec --no-startup-id "i3-msg 'workspace number 4; append_layout /home/carl/.i3/workspace_4.json'"
  314.  
  315. #exec --no-startup-id nm-applet
  316. #exec --no-startup-id blueman-manager
  317. #exec --no-startup-id volumeicon
  318. exec --no-startup-id conky -c /home/carl/.conky/Sidebar-Conky_RcRight
  319. exec --no-startup-id conky -c /home/carl/.conky/Sidebar-Conky_RcRight1
  320. exec --no-startup-id compton -b --config /home/carl/.config/compton.conf
  321. exec --no-startup-id dunst
  322. #exec --no-startup-id i3-msg 'workspace number 2; exec /snap/bin/slack'
  323. exec --no-startup-id i3-msg 'workspace number 2; exec /usr/bin/tlc'
  324. exec --no-startup-id i3-msg 'workspace number 2; exec /usr/bin/thunderbird'
  325. exec --no-startup-id i3-msg 'workspace number 1; exec /usr/bin/vivaldi'
  326. exec --no-startup-id i3-msg 'workspace number 1; exec /usr/bin/konsole'
  327. #exec --no-startup-id i3-msg 'workspace number 3; exec /usr/bin/remmina'
  328. #exec --no-startup-id i3-msg 'workspace number 4; exec /snap/bin/google-play-music-desktop-player'
  329. for_window [class="conky"] floating enable
  330. for_window [class="^conky$"] floating enable
  331. for_window [class="^.*"] border pixel 0
  332. #for_window [class="^Thunderbird$"] floating enable
  333. gaps inner 5
  334. #aps outer 0
  335. #gaps horizontal 7
  336. #gaps vertical 7
  337. gaps top 10
  338. gaps right 10
  339. gaps bottom 10
  340. gaps left 10
Advertisement
Add Comment
Please, Sign In to add comment