config 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # i3 config file (v4)
  2. # See http://i3wm.org/docs/userguide.html for a complete reference!
  3. # Font for window titles. Will also be used by the bar unless a different font
  4. # is used in the bar {} block below.
  5. font pango:DejaVu Sans 10
  6. set $mod Mod4
  7. focus_follows_mouse yes
  8. exec --no-startup-id feh --bg-fill /home/andreatsh/.config/i3/background001.jpg
  9. exec --no-startup-id redshift
  10. exec --no-startup-id exec xbindkeys
  11. exec --no-startup-id xterm
  12. # Assign some programs to a specific workspace
  13. assign [class="(?i)firefox"] 3
  14. assign [class="(?i)chromium" ] 4
  15. # Avoid useless window titles
  16. for_window [class="^XTerm$"] border pixel 1
  17. for_window [class="^Emacs$"] border pixel 1
  18. # Screenshots
  19. bindsym Print exec "scrot -e 'mv $f ~/.screenshots/' 2>/dev/null"
  20. # Use Mouse+$mod to drag floating windows to their wanted position
  21. floating_modifier $mod
  22. # Start a terminal
  23. bindsym $mod+Return exec xterm
  24. #bindsym $mod+Shift+Return exec i3-sensible-terminal
  25. # Lock X display
  26. bindsym Mod4+l exec xtrlock -b
  27. # Kill focused window
  28. bindsym $mod+Shift+q kill
  29. # Start dmenu (a program launcher)
  30. bindsym $mod+d exec dmenu_run
  31. # There also is the (new) i3-dmenu-desktop which only displays applications
  32. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  33. # installed.
  34. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  35. # The following key binding lets you switch back and forth
  36. # between the last two workspaces that you visited
  37. bindsym $mod+Tab workspace back_and_forth
  38. # Change focus
  39. # Alternatively, you can use the cursor keys:
  40. bindsym $mod+Left focus left
  41. bindsym $mod+Down focus down
  42. bindsym $mod+Up focus up
  43. bindsym $mod+Right focus right
  44. # Move focused window
  45. # Alternatively, you can use the cursor keys:
  46. bindsym $mod+Shift+Left move left
  47. bindsym $mod+Shift+Down move down
  48. bindsym $mod+Shift+Up move up
  49. bindsym $mod+Shift+Right move right
  50. # Split in horizontal orientation
  51. bindsym $mod+h split h
  52. # Split in vertical orientation
  53. bindsym $mod+v split v
  54. # Enter fullscreen mode for the focused container
  55. bindsym $mod+f fullscreen
  56. # Change container layout (stacked, tabbed, toggle split)
  57. bindsym $mod+s layout stacking
  58. bindsym $mod+w layout tabbed
  59. bindsym $mod+e layout toggle split
  60. # Toggle tiling / floating
  61. bindsym $mod+Shift+space floating toggle
  62. # Change focus between tiling / floating windows
  63. bindsym $mod+space focus mode_toggle
  64. # Move the currently focused window to the scratchpad
  65. bindsym $mod+Shift+minus move scratchpad
  66. # Show the next scratchpad window or hide the focused scratchpad window.
  67. # If there are multiple scratchpad windows, this command cycles through them.
  68. bindsym $mod+minus scratchpad show
  69. # Switch to workspace
  70. bindsym $mod+1 workspace 1
  71. bindsym $mod+2 workspace 2
  72. bindsym $mod+3 workspace 3
  73. bindsym $mod+4 workspace 4
  74. bindsym $mod+5 workspace 5
  75. bindsym $mod+6 workspace 6
  76. bindsym $mod+7 workspace 7
  77. bindsym $mod+8 workspace 8
  78. bindsym $mod+9 workspace 9
  79. bindsym $mod+0 workspace 10
  80. # Move focused container to workspace
  81. bindsym $mod+Shift+1 move container to workspace 1
  82. bindsym $mod+Shift+2 move container to workspace 2
  83. bindsym $mod+Shift+3 move container to workspace 3
  84. bindsym $mod+Shift+4 move container to workspace 4
  85. bindsym $mod+Shift+5 move container to workspace 5
  86. bindsym $mod+Shift+6 move container to workspace 6
  87. bindsym $mod+Shift+7 move container to workspace 7
  88. bindsym $mod+Shift+8 move container to workspace 8
  89. bindsym $mod+Shift+9 move container to workspace 9
  90. bindsym $mod+Shift+0 move container to workspace 10
  91. bindsym $mod+Shift+c reload # Reload the configuration file
  92. bindsym $mod+Shift+r restart # Restart i3 inplace
  93. bindsym $mod+Shift+e exit # Exit i3
  94. # Resize window
  95. mode "resize" {
  96. # These bindings trigger as soon as you enter the resize mode
  97. # Pressing left will shrink the window’s width.
  98. # Pressing right will grow the window’s width.
  99. # Pressing up will shrink the window’s height.
  100. # Pressing down will grow the window’s height.
  101. # Same bindings, but for the arrow keys
  102. bindsym Left resize shrink width 10 px or 10 ppt
  103. bindsym Down resize grow height 10 px or 10 ppt
  104. bindsym Up resize shrink height 10 px or 10 ppt
  105. bindsym Right resize grow width 10 px or 10 ppt
  106. # Back to normal: Enter or Escape
  107. bindsym Return mode "default"
  108. bindsym Escape mode "default"
  109. }
  110. bindsym $mod+r mode "resize"
  111. # Start i3bar to display a workspace bar
  112. bar {
  113. status_command i3blocks -c ~/.config/i3/i3blocks.conf
  114. position top
  115. }