TEXT   82

i3 config

Guest on 23rd July 2022 02:06:02 PM

  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 somewhen, 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. ISO 10646 = Unicode
  16. #font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  17. font -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
  18. # The font above is very space-efficient, that is, it looks good, sharp and
  19. # clear in small sizes. However, if you need a lot of unicode glyphs or
  20. # right-to-left text rendering, you should instead use pango for rendering and
  21. # chose a FreeType font, such as:
  22. # font pango:DejaVu Sans Mono 10
  23.  
  24. # Use Mouse+$mod to drag floating windows to their wanted position
  25. floating_modifier $mod
  26.  
  27. # start a terminal
  28. bindsym $mod+Return exec --no-startup-id i3-sensible-terminal
  29.  
  30. # lock screen
  31. bindsym XF86LaunchA exec --no-startup-id i3lock -c 000000
  32. # lock screen and go to sleep
  33. bindsym XF86LaunchB exec --no-startup-id i3lock -c 000000 && sudo /home/joecool/.bin/sleep
  34. # toggle touchpad
  35. #bindsym XF86LaunchB exec --no-startup-id synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')
  36. # volume
  37. bindsym XF86AudioRaiseVolume exec --no-startup-id amixer -c 1 -q set Master 1dB+ unmute
  38. bindsym XF86AudioLowerVolume exec --no-startup-id amixer -c 1 -q set Master 1dB- unmute
  39. bindsym XF86AudioMute exec --no-startup-id amixer -c 1 -q set Master toggle
  40. # screen backlight
  41. #bindsym XF86MonBrightnessUp exec --no-startup-id xbacklight -inc 1
  42. #bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 1
  43. bindsym XF86MonBrightnessUp exec --no-startup-id /home/joecool/.bin/brightness.up
  44. bindsym XF86MonBrightnessDown exec --no-startup-id /home/joecool/.bin/brightness.dn
  45. # keyboard backlight
  46. #bindsym XF86KbdBrightnessUp exec --no-startup-id sudo /home/joecool/.bin/kbdup
  47. #bindsym XF86KbdBrightnessDown exec --no-startup-id sudo /home/joecool/.bin/kbddn
  48. # multimedia
  49. #bindsym XF86AudioPlay
  50. #bindsym XF86AudioPrev
  51. #bindsym XF86AudioNext
  52.  
  53. # disable window titles
  54. new_window none
  55.  
  56. # kill focused window
  57. bindsym $mod+Shift+q kill
  58.  
  59. # start dmenu (a program launcher)
  60. bindsym $mod+d exec --no-startup-id dmenu_run -fn Terminus:pixelsize=10
  61. # There also is the (new) i3-dmenu-desktop which only displays applications
  62. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  63. # installed.
  64. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  65.  
  66. # change focus
  67. bindsym $mod+j focus left
  68. bindsym $mod+k focus down
  69. bindsym $mod+l focus up
  70. bindsym $mod+semicolon focus right
  71.  
  72. # alternatively, you can use the cursor keys:
  73. bindsym $mod+Left focus left
  74. bindsym $mod+Down focus down
  75. bindsym $mod+Up focus up
  76. bindsym $mod+Right focus right
  77.  
  78. # move focused window
  79. bindsym $mod+Shift+j move left
  80. bindsym $mod+Shift+k move down
  81. bindsym $mod+Shift+l move up
  82. bindsym $mod+Shift+semicolon move right
  83.  
  84. # alternatively, you can use the cursor keys:
  85. bindsym $mod+Shift+Left move left
  86. bindsym $mod+Shift+Down move down
  87. bindsym $mod+Shift+Up move up
  88. bindsym $mod+Shift+Right move right
  89.  
  90. # split in horizontal orientation
  91. bindsym $mod+h split h
  92.  
  93. # split in vertical orientation
  94. bindsym $mod+v split v
  95.  
  96. # enter fullscreen mode for the focused container
  97. bindsym $mod+f fullscreen
  98.  
  99. # change container layout (stacked, tabbed, toggle split)
  100. bindsym $mod+s layout stacking
  101. bindsym $mod+w layout tabbed
  102. bindsym $mod+e layout toggle split
  103.  
  104. # toggle tiling / floating
  105. bindsym $mod+Shift+space floating toggle
  106.  
  107. # change focus between tiling / floating windows
  108. bindsym $mod+space focus mode_toggle
  109.  
  110. # focus the parent container
  111. bindsym $mod+a focus parent
  112.  
  113. # focus the child container
  114. #bindsym $mod+d focus child
  115.  
  116. # switch to workspace
  117. bindsym $mod+1 workspace 1
  118. bindsym $mod+2 workspace 2
  119. bindsym $mod+3 workspace 3
  120. bindsym $mod+4 workspace 4
  121. bindsym $mod+5 workspace 5
  122. bindsym $mod+6 workspace 6
  123. bindsym $mod+7 workspace 7
  124. bindsym $mod+8 workspace 8
  125. bindsym $mod+9 workspace 9
  126. bindsym $mod+0 workspace 10
  127.  
  128. # move focused container to workspace
  129. bindsym $mod+Shift+1 move container to workspace 1
  130. bindsym $mod+Shift+2 move container to workspace 2
  131. bindsym $mod+Shift+3 move container to workspace 3
  132. bindsym $mod+Shift+4 move container to workspace 4
  133. bindsym $mod+Shift+5 move container to workspace 5
  134. bindsym $mod+Shift+6 move container to workspace 6
  135. bindsym $mod+Shift+7 move container to workspace 7
  136. bindsym $mod+Shift+8 move container to workspace 8
  137. bindsym $mod+Shift+9 move container to workspace 9
  138. bindsym $mod+Shift+0 move container to workspace 10
  139.  
  140. # reload the configuration file
  141. bindsym $mod+Shift+c reload
  142. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  143. bindsym $mod+Shift+r restart
  144. # exit i3 (logs you out of your X session)
  145. #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'"
  146. bindsym $mod+Shift+E exit
  147.  
  148. # resize window (you can also use the mouse for that)
  149. mode "resize" {
  150.         # These bindings trigger as soon as you enter the resize mode
  151.  
  152.         # Pressing left will shrink the windowā€™s width.
  153.         # Pressing right will grow the windowā€™s width.
  154.         # Pressing up will shrink the windowā€™s height.
  155.         # Pressing down will grow the windowā€™s height.
  156.         bindsym j resize shrink width 10 px or 10 ppt
  157.         bindsym k resize grow height 10 px or 10 ppt
  158.         bindsym l resize shrink height 10 px or 10 ppt
  159.         bindsym semicolon resize grow width 10 px or 10 ppt
  160.  
  161.         # same bindings, but for the arrow keys
  162.         bindsym Left resize shrink width 10 px or 10 ppt
  163.         bindsym Down resize grow height 10 px or 10 ppt
  164.         bindsym Up resize shrink height 10 px or 10 ppt
  165.         bindsym Right resize grow width 10 px or 10 ppt
  166.  
  167.         # back to normal: Enter or Escape
  168.         bindsym Return mode "default"
  169.         bindsym Escape mode "default"
  170. }
  171.  
  172. bindsym $mod+r mode "resize"
  173.  
  174. # Start i3bar to display a workspace bar (plus the system information i3status
  175. # finds out, if available)
  176. bar {
  177.         status_command i3status
  178.         font -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
  179. }
  180.  
  181. #exec --no-start

Raw Paste


Login or Register to edit or fork this paste. It's free.