Advertisement
Guest User

i3configgplanon

a guest
Jan 23rd, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. # i3 config file (v4)
  2.  
  3. #set mod key
  4. set $mod Mod4
  5.  
  6. # gaps config with + and -
  7. bindsym $mod+equal gaps inner current set 40
  8. bindsym $mod+minus gaps inner current set 0
  9.  
  10. # Font for window titles.
  11. font pango:DejaVu Sans Mono 10
  12.  
  13. # Use Mouse+$mod to drag floating windows to their wanted position
  14. floating_modifier $mod
  15.  
  16. # start a terminal
  17. bindsym $mod+Return exec i3-sensible-terminal
  18.  
  19. # kill focused window
  20. bindsym $mod+Shift+q kill
  21.  
  22. # start rofi launcher
  23. bindsym $mod+d exec rofi -show run
  24.  
  25. # change focus
  26. bindsym $mod+j focus left
  27. bindsym $mod+k focus down
  28. bindsym $mod+i focus up
  29. bindsym $mod+l focus right
  30.  
  31. # move focused window
  32. bindsym $mod+Left move left
  33. bindsym $mod+Down move down
  34. bindsym $mod+Up move up
  35. bindsym $mod+Right move right
  36.  
  37. # split controls
  38. bindsym $mod+h split h
  39. bindsym $mod+v split v
  40.  
  41. # fullscreen application
  42. bindsym $mod+f fullscreen toggle
  43.  
  44. # change container layout (stacked, tabbed, toggle split)
  45. bindsym $mod+z layout stacking
  46. bindsym $mod+x layout tabbed
  47. bindsym $mod+c layout toggle split
  48.  
  49. # toggle tiling / floating
  50. bindsym $mod+Shift+space floating toggle
  51.  
  52. # switch to workspace
  53. bindsym $mod+1 workspace 1
  54. bindsym $mod+2 workspace 2
  55. bindsym $mod+3 workspace 3
  56. bindsym $mod+4 workspace 4
  57. bindsym $mod+5 workspace 5
  58. bindsym $mod+6 workspace 6
  59. bindsym $mod+7 workspace 7
  60. bindsym $mod+8 workspace 8
  61. bindsym $mod+9 workspace 9
  62. bindsym $mod+0 workspace 10
  63.  
  64. # move focused container to workspace
  65. bindsym $mod+Shift+1 move container to workspace 1
  66. bindsym $mod+Shift+2 move container to workspace 2
  67. bindsym $mod+Shift+3 move container to workspace 3
  68. bindsym $mod+Shift+4 move container to workspace 4
  69. bindsym $mod+Shift+5 move container to workspace 5
  70. bindsym $mod+Shift+6 move container to workspace 6
  71. bindsym $mod+Shift+7 move container to workspace 7
  72. bindsym $mod+Shift+8 move container to workspace 8
  73. bindsym $mod+Shift+9 move container to workspace 9
  74. bindsym $mod+Shift+0 move container to workspace 10
  75.  
  76. # reload the configuration file
  77. bindsym $mod+Shift+c reload
  78. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  79. bindsym $mod+Shift+r restart
  80. # exit i3 (logs you out of your X session)
  81. bindsym $mod+Shift+e exec killall i3
  82.  
  83. # resize windows
  84. bindsym $mod+r mode "resize"
  85.  
  86. # resize mode controls
  87. mode "resize" {
  88. # These bindings trigger as soon as you enter the resize mode
  89.  
  90. # Pressing left will shrink the window’s width.
  91. # Pressing right will grow the window’s width.
  92. # Pressing up will shrink the window’s height.
  93. # Pressing down will grow the window’s height.
  94. bindsym j resize shrink width 10 px or 10 ppt
  95. bindsym i resize grow height 10 px or 10 ppt
  96. bindsym k resize shrink height 10 px or 10 ppt
  97. bindsym l resize grow width 10 px or 10 ppt
  98.  
  99. # back to normal: Enter or Escape
  100. bindsym Return mode "default"
  101. bindsym Escape mode "default"
  102. }
  103.  
  104. # i3 alsa volume controls
  105. bindsym XF86AudioRaiseVolume exec "amixer -q sset Master,0 20%+ unmute"
  106. bindsym XF86AudioLowerVolume exec "amixer -q sset Master,0 20%- unmute"
  107. bindsym XF86AudioMute exec "amixer -q sset Master,0 toggle mute"
  108.  
  109. # autostart
  110. exec polybar example
  111. exec nitrogen --restore
  112. exec compton
  113. bar {
  114. status_command i3status
  115. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement