i3laptop 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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. # i3 config file (v4)
  8. #
  9. # Please see http://i3wm.org/docs/userguide.html for a complete reference!
  10. gaps inner 25
  11. gaps outer 10
  12. new_window none
  13. set $mod Mod4
  14. bindsym XF86AudioRaiseVolume exec "amixer -q set Master 2dB+ unmute; notify-send 'Volume Up'"
  15. bindsym XF86AudioLowerVolume exec "amixer -q set Master 2dB- unmute; notify-send 'Volume Down'"
  16. bindsym XF86AudioMute exec "amixer -q set Master toggle; amixer -q set Speaker toggle"
  17. bindsym XF86MonBrightnessUp exec "light -A 10; notify-send 'Brightness Up'"
  18. bindsym XF86MonBrightnessDown exec "light -U 10; notify-send 'Brightness Down'"
  19. # Font for window titles. Will also be used by the bar unless a different font
  20. # is used in the bar {} block below.
  21. font pango:monospace 8
  22. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  23. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  24. #font pango:DejaVu Sans Mono 8
  25. # Before i3 v4.8, we used to recommend this one as the default:
  26. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  27. # The font above is very space-efficient, that is, it looks good, sharp and
  28. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  29. # X core fonts rendering does not support right-to-left and this being a bitmap
  30. # font, it doesn’t scale on retina/hidpi displays.
  31. # Use Mouse+$mod to drag floating windows to their wanted position
  32. floating_modifier $mod
  33. # start a terminal
  34. #bindsym $mod+Return exec i3-sensible-terminal
  35. bindsym $mod+Return exec urxvt
  36. # kill focused window
  37. bindsym $mod+Shift+q kill
  38. # "Minimize windows"
  39. bindsym $mod+Shift+minus move scratchpad
  40. bindsym $mod+minus scratchpad show
  41. # start dmenu (a program launcher)
  42. #bindsym $mod+d exec dmenu_run
  43. # There also is the (new) i3-dmenu-desktop which only displays applications
  44. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  45. # installed.
  46. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  47. # change focus
  48. bindsym $mod+j focus left
  49. bindsym $mod+k focus down
  50. bindsym $mod+l focus up
  51. bindsym $mod+semicolon focus right
  52. # alternatively, you can use the cursor keys:
  53. bindsym $mod+Left focus left
  54. bindsym $mod+Down focus down
  55. bindsym $mod+Up focus up
  56. bindsym $mod+Right focus right
  57. # move focused window
  58. bindsym $mod+Shift+j move left
  59. bindsym $mod+Shift+k move down
  60. bindsym $mod+Shift+l move up
  61. bindsym $mod+Shift+semicolon move right
  62. # alternatively, you can use the cursor keys:
  63. bindsym $mod+Shift+Left move left
  64. bindsym $mod+Shift+Down move down
  65. bindsym $mod+Shift+Up move up
  66. bindsym $mod+Shift+Right move right
  67. # split in horizontal orientation
  68. bindsym $mod+h split h
  69. # split in vertical orientation
  70. bindsym $mod+v split v
  71. # enter fullscreen mode for the focused container
  72. bindsym $mod+f fullscreen toggle
  73. # change container layout (stacked, tabbed, toggle split)
  74. bindsym $mod+s layout stacking
  75. bindsym $mod+w layout tabbed
  76. bindsym $mod+e layout toggle split
  77. # toggle tiling / floating
  78. bindsym $mod+Shift+space floating toggle
  79. # change focus between tiling / floating windows
  80. bindsym $mod+space focus mode_toggle
  81. # focus the parent container
  82. bindsym $mod+a focus parent
  83. # focus the child container
  84. #bindsym $mod+d focus child
  85. # switch to workspace
  86. bindsym $mod+1 workspace 1
  87. bindsym $mod+2 workspace 2
  88. bindsym $mod+3 workspace 3
  89. bindsym $mod+4 workspace 4
  90. bindsym $mod+5 workspace 5
  91. bindsym $mod+6 workspace 6
  92. bindsym $mod+7 workspace 7
  93. bindsym $mod+8 workspace 8
  94. bindsym $mod+9 workspace 9
  95. bindsym $mod+0 workspace 10
  96. # move focused container to workspace
  97. bindsym $mod+Shift+1 move container to workspace 1
  98. bindsym $mod+Shift+2 move container to workspace 2
  99. bindsym $mod+Shift+3 move container to workspace 3
  100. bindsym $mod+Shift+4 move container to workspace 4
  101. bindsym $mod+Shift+5 move container to workspace 5
  102. bindsym $mod+Shift+6 move container to workspace 6
  103. bindsym $mod+Shift+7 move container to workspace 7
  104. bindsym $mod+Shift+8 move container to workspace 8
  105. bindsym $mod+Shift+9 move container to workspace 9
  106. bindsym $mod+Shift+0 move container to workspace 10
  107. # reload the configuration file
  108. bindsym $mod+Shift+c reload
  109. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  110. bindsym $mod+Shift+r restart
  111. # exit i3 (logs you out of your X session)
  112. 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'"
  113. # resize window (you can also use the mouse for that)
  114. mode "resize" {
  115. # These bindings trigger as soon as you enter the resize mode
  116. # Pressing left will shrink the window’s width.
  117. # Pressing right will grow the window’s width.
  118. # Pressing up will shrink the window’s height.
  119. # Pressing down will grow the window’s height.
  120. bindsym j resize shrink width 10 px or 10 ppt
  121. bindsym k resize grow height 10 px or 10 ppt
  122. bindsym l resize shrink height 10 px or 10 ppt
  123. bindsym semicolon resize grow width 10 px or 10 ppt
  124. # same bindings, but for the arrow keys
  125. bindsym Left resize shrink width 10 px or 10 ppt
  126. bindsym Down resize grow height 10 px or 10 ppt
  127. bindsym Up resize shrink height 10 px or 10 ppt
  128. bindsym Right resize grow width 10 px or 10 ppt
  129. # back to normal: Enter or Escape
  130. bindsym Return mode "default"
  131. bindsym Escape mode "default"
  132. }
  133. bindsym $mod+r mode "resize"
  134. # Start i3bar to display a workspace bar (plus the system information i3status
  135. # finds out, if available)
  136. bar {
  137. status_command i3status
  138. #status_command exec /home/swatson/.config/i3/scripts/bar.sh
  139. colors {
  140. background #001014
  141. statusline #1da049
  142. }
  143. }