i3_config 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. font pango:monospace 8
  2. #directions
  3. set $up k
  4. set $down j
  5. set $left h
  6. set $right l
  7. set $Mod Mod4
  8. # use Mouse+Mod4 to drag floating windows to their wanted position
  9. floating_modifier $Mod
  10. # kill focused window
  11. bindsym $Mod+Shift+q kill
  12. bindsym Mod1+F4 kill
  13. # change focus
  14. bindsym $Mod+$left focus left
  15. bindsym $Mod+$down focus down
  16. bindsym $Mod+$up focus up
  17. bindsym $Mod+$right focus right
  18. # alternatively, you can use the cursor keys:
  19. bindsym $Mod+Left focus left
  20. bindsym $Mod+Down focus down
  21. bindsym $Mod+Up focus up
  22. bindsym $Mod+Right focus right
  23. # move focused window - yes, vim bindings.
  24. bindsym $Mod+Shift+$left move left
  25. bindsym $Mod+Shift+$down move down
  26. bindsym $Mod+Shift+$up move up
  27. bindsym $Mod+Shift+$right move right
  28. # alternatively, you can use the cursor keys:
  29. bindsym $Mod+Shift+Left move left
  30. bindsym $Mod+Shift+Down move down
  31. bindsym $Mod+Shift+Up move up
  32. bindsym $Mod+Shift+Right move right
  33. # split in horizontal orientation
  34. bindsym $Mod+shift+v split h
  35. # split in vertical orientation
  36. bindsym $Mod+v split v
  37. # enter fullscreen mode for the focused container
  38. bindsym $Mod+f fullscreen toggle
  39. # change container layout (stacked, tabbed, toggle split)
  40. bindsym $Mod+s layout stacking
  41. bindsym $Mod+w layout tabbed
  42. bindsym $Mod+Shift+w layout toggle split
  43. # toggle tiling / floating
  44. bindsym $Mod+Shift+space floating toggle
  45. # change focus between tiling / floating windows
  46. bindsym $Mod+space focus mode_toggle
  47. # focus the parent container
  48. bindsym $Mod+a focus parent
  49. # focus the child container
  50. bindsym $Mod+d focus child
  51. # move the currently focused window to the scratchpad
  52. bindsym $Mod+Shift+minus move scratchpad
  53. # Show the next scratchpad window or hide the focused scratchpad window.
  54. # If there are multiple scratchpad windows, this command cycles through them.
  55. bindsym $Mod+minus scratchpad show
  56. # switch to workspace
  57. bindsym $Mod+1 workspace 1
  58. bindsym $Mod+2 workspace 2
  59. bindsym $Mod+3 workspace 3
  60. bindsym $Mod+4 workspace 4
  61. bindsym $Mod+5 workspace 5
  62. bindsym $Mod+6 workspace 6
  63. bindsym $Mod+7 workspace 7
  64. bindsym $Mod+8 workspace 8
  65. bindsym $Mod+9 workspace 9
  66. bindsym $Mod+0 workspace 10
  67. bindsym $Mod+Tab workspace next
  68. bindsym $Mod+Shift+Tab workspace prev
  69. # move focused container to workspace
  70. bindsym $Mod+Shift+1 move container to workspace 1
  71. bindsym $Mod+Shift+2 move container to workspace 2
  72. bindsym $Mod+Shift+3 move container to workspace 3
  73. bindsym $Mod+Shift+4 move container to workspace 4
  74. bindsym $Mod+Shift+5 move container to workspace 5
  75. bindsym $Mod+Shift+6 move container to workspace 6
  76. bindsym $Mod+Shift+7 move container to workspace 7
  77. bindsym $Mod+Shift+8 move container to workspace 8
  78. bindsym $Mod+Shift+9 move container to workspace 9
  79. bindsym $Mod+Shift+0 move container to workspace 10
  80. # resize window (you can also use the mouse for that)
  81. mode "resize" {
  82. # These bindings trigger as soon as you enter the resize mode
  83. # Pressing left will shrink the window’s width.
  84. # Pressing right will grow the window’s width.
  85. # Pressing up will shrink the window’s height.
  86. # Pressing down will grow the window’s height.
  87. bindsym $left resize shrink width 10 px or 10 ppt
  88. bindsym $down resize shrink height 10 px or 10 ppt
  89. bindsym $up resize grow height 10 px or 10 ppt
  90. bindsym $right resize grow width 10 px or 10 ppt
  91. # same bindings, but for the arrow keys
  92. bindsym Left resize shrink width 10 px or 10 ppt
  93. bindsym Down resize shrink height 10 px or 10 ppt
  94. bindsym Up resize grow height 10 px or 10 ppt
  95. bindsym Right resize grow width 10 px or 10 ppt
  96. # back to normal: Enter or Escape
  97. bindsym Return mode "default"
  98. bindsym Escape mode "default"
  99. }
  100. bindsym $Mod+r mode "resize"
  101. # reload the configuration file
  102. bindsym $Mod+Shift+c reload
  103. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  104. bindsym $Mod+Shift+r restart
  105. # exit i3 (logs you out of your X session)
  106. 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'"
  107. # PROGRAM SHORTCUTS
  108. # bindsym $Mod+Return exec i3-sensible-terminal
  109. bindsym $Mod+Shift+Return exec xterm
  110. bindsym $Mod+Return exec st
  111. bindsym $Mod+Shift+f exec firefox
  112. bindsym $Mod+Shift+m exec midori
  113. bindsym $Mod+e exec pcmanfm
  114. # VOLUME
  115. bindsym XF86AudioRaiseVolume exec amixer sset Master 5+
  116. bindsym XF86AudioLowerVolume exec amixer sset Master 5-
  117. bindsym XF86AudioMute exec amixer sset Master toggle
  118. # just some cosmetic options
  119. new_window 1pixel
  120. #class border backgr. text indicator child_border
  121. client.background #222222 #222222
  122. client.focused #33DD33 #222222 #FFFFFF #33DD33 #33DD33
  123. # AUTOSTART
  124. exec i3-msg 'workspace 1; exec firefox'; sleep 5; exec i3-msg 'workspace 2; exec st'
  125. exec ~/scripts/autoconnect_screen.sh