config 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 https://i3wm.org/docs/userguide.html for a complete reference!
  10. # set the default layout to maximize all windows
  11. workspace_layout tabbed
  12. # put the title of windows in the center
  13. title_align center
  14. set $mod Mod1
  15. # Font for window titles. Will also be used by the bar unless a different font
  16. # is used in the bar {} block below.
  17. font pango:monospace 8
  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. # Start XDG autostart .desktop files using dex. See also
  22. # https://wiki.archlinux.org/index.php/XDG_Autostart
  23. # exec --no-startup-id dex --autostart --environment i3
  24. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  25. # they are included here as an example. Modify as you see fit.
  26. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  27. # screen before suspend. Use loginctl lock-session to lock your screen.
  28. #exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  29. # NetworkManager is the most popular way to manage wireless networks on Linux,
  30. # and nm-applet is a desktop environment-independent system tray GUI for it.
  31. #exec --no-startup-id nm-applet
  32. # Use pactl to adjust volume in PulseAudio.
  33. #set $refresh_i3status pkill -SIGUSR1 i3status
  34. #bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  35. #bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  36. #bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  37. #bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  38. # i3 does this automatically on my thinkpad? Cool!
  39. # Use Mouse+$mod to drag floating windows to their wanted position
  40. floating_modifier $mod
  41. # start a terminal
  42. bindsym $mod+Return exec /usr/local/bin/xfce4-terminal -e fish
  43. bindsym $mod+Control+f exec /usr/local/bin/firefox
  44. # this does NOT work
  45. # launch xfce drop down menu
  46. #bindsym $mod+Control+m xfce4-popup-applicationsmenu
  47. # kill focused window
  48. bindsym $mod+Control+c kill
  49. #bindsym $mod+Shift+apostrophe kill
  50. # start dmenu (a program launcher)
  51. bindsym $mod+d exec /usr/local/bin/xfce4-appfinder
  52. bindsym Print exec /usr/local/bin/xfce4-screenshooter
  53. # A more modern dmenu replacement is rofi:
  54. # bindcode $mod+40 exec "rofi -modi drun,run -show drun"
  55. # There also is i3-dmenu-desktop which only displays applications shipping a
  56. # .desktop file. It is a wrapper around dmenu, so you need that installed.
  57. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
  58. # change focus
  59. bindsym $mod+h focus left
  60. bindsym $mod+j focus down
  61. bindsym $mod+k focus up
  62. bindsym $mod+l focus right
  63. # alternatively, you can use the cursor keys:
  64. bindsym $mod+Left focus left
  65. bindsym $mod+Down focus down
  66. bindsym $mod+Up focus up
  67. bindsym $mod+Right focus right
  68. # move focused window
  69. bindsym $mod+Control+h move left
  70. bindsym $mod+Control+t move down
  71. bindsym $mod+Control+n move up
  72. bindsym $mod+Control+s move right
  73. # alternatively, you can use the cursor keys:
  74. bindsym $mod+Control+Left move left
  75. bindsym $mod+Control+Down move down
  76. bindsym $mod+Control+Up move up
  77. bindsym $mod+Control+Right move right
  78. # split in horizontal orientation
  79. #bindsym $mod+d split h
  80. # split in vertical orientation
  81. #bindsym $mod+v split v
  82. # enter fullscreen mode for the focused container
  83. bindsym $mod+f fullscreen toggle
  84. # change container layout (stacked, tabbed, toggle split)
  85. #bindsym $mod+o layout stacking
  86. bindsym $mod+comma layout tabbed
  87. bindsym $mod+period layout toggle split
  88. # toggle tiling / floating
  89. #bindsym $mod+Shift+space floating toggle
  90. # change focus between tiling / floating windows
  91. #bindsym $mod+space focus mode_toggle
  92. # focus the parent container
  93. bindsym $mod+a focus parent
  94. # focus the child container
  95. #bindsym $mod+d focus child
  96. # Define names for default workspaces for which we configure key bindings later on.
  97. # We use variables to avoid repeating the names in multiple places.
  98. set $ws1 "1"
  99. set $ws2 "2"
  100. set $ws3 "3"
  101. set $ws4 "4"
  102. set $ws5 "5"
  103. set $ws6 "6"
  104. set $ws7 "7"
  105. set $ws8 "8"
  106. set $ws9 "9"
  107. set $ws10 "10"
  108. # switch to workspace
  109. bindsym $mod+1 workspace number $ws1
  110. bindsym $mod+2 workspace number $ws2
  111. bindsym $mod+3 workspace number $ws3
  112. bindsym $mod+4 workspace number $ws4
  113. bindsym $mod+5 workspace number $ws5
  114. bindsym $mod+6 workspace number $ws6
  115. bindsym $mod+7 workspace number $ws7
  116. bindsym $mod+8 workspace number $ws8
  117. bindsym $mod+9 workspace number $ws9
  118. bindsym $mod+0 workspace number $ws10
  119. # move focused container to workspace
  120. bindsym $mod+Control+1 move container to workspace number $ws1
  121. bindsym $mod+Control+2 move container to workspace number $ws2
  122. bindsym $mod+Control+3 move container to workspace number $ws3
  123. bindsym $mod+Control+4 move container to workspace number $ws4
  124. bindsym $mod+Control+5 move container to workspace number $ws5
  125. bindsym $mod+Control+6 move container to workspace number $ws6
  126. bindsym $mod+Control+7 move container to workspace number $ws7
  127. bindsym $mod+Control+8 move container to workspace number $ws8
  128. bindsym $mod+Control+9 move container to workspace number $ws9
  129. bindsym $mod+Control+0 move container to workspace number $ws10
  130. # reload the configuration file
  131. #bindsym $mod+Control+j reload
  132. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  133. bindsym $mod+Control+r restart
  134. # exit i3 (logs you out of your X session)
  135. 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'"
  136. # resize window (you can also use the mouse for that)
  137. mode "resize" {
  138. # These bindings trigger as soon as you enter the resize mode
  139. # Pressing left will shrink the window’s width.
  140. # Pressing right will grow the window’s width.
  141. # Pressing up will shrink the window’s height.
  142. # Pressing down will grow the window’s height.
  143. bindsym h resize shrink width 10 px or 10 ppt
  144. bindsym t resize grow height 10 px or 10 ppt
  145. bindsym n resize shrink height 10 px or 10 ppt
  146. bindsym s resize grow width 10 px or 10 ppt
  147. # same bindings, but for the arrow keys
  148. bindsym Left resize shrink width 10 px or 10 ppt
  149. bindsym Down resize grow height 10 px or 10 ppt
  150. bindsym Up resize shrink height 10 px or 10 ppt
  151. bindsym Right resize grow width 10 px or 10 ppt
  152. # back to normal: Enter or Escape or $mod+r
  153. bindsym Return mode "default"
  154. bindsym Escape mode "default"
  155. bindsym $mod+p mode "default"
  156. }
  157. bindsym $mod+p mode "resize"
  158. # launch polybar
  159. exec_always --no-startup-id $HOME/.config/polybar/launch.sh
  160. # Start i3bar to display a workspace bar (plus the system information i3status
  161. # finds out, if available)
  162. # bar {
  163. # status_command i3status
  164. # }