config 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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. #Needed for i3-gaps
  11. #hide_edge_borders both
  12. for_window [class="^.*"] border pixel 2
  13. gaps inner 15
  14. gaps outer 15
  15. bindsym $mod+z gaps outer current plus 5
  16. bindsym $mod+Shift+z gaps outer current minus 5
  17. set $mod Mod4
  18. # Font for window titles. Will also be used by the bar unless a different font
  19. # is used in the bar {} block below.
  20. font pango:monospace 12
  21. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  22. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  23. #font pango:DejaVu Sans Mono 8
  24. # Before i3 v4.8, we used to recommend this one as the default:
  25. # font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
  26. # The font above is very space-efficient, that is, it looks good, sharp and
  27. # clear in small sizes. However, its unicode glyph coverage is limited, the old
  28. # X core fonts rendering does not support right-to-left and this being a bitmap
  29. # font, it doesn’t scale on retina/hidpi displays.
  30. # Use Mouse+$mod to drag floating windows to their wanted position
  31. floating_modifier $mod
  32. # start a terminal
  33. bindsym $mod+Return exec tilix
  34. # kill focused window
  35. bindsym $mod+Shift+q kill
  36. # start rofi (a program launcher)
  37. bindsym $mod+d exec rofi -show run
  38. # There also is the (new) i3-dmenu-desktop which only displays applications
  39. # shipping a .desktop file. It is a wrapper around dmenu, so you need that
  40. # installed.
  41. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
  42. # change focus
  43. bindsym $mod+j focus left
  44. bindsym $mod+k focus down
  45. bindsym $mod+l focus up
  46. bindsym $mod+semicolon focus right
  47. # alternatively, you can use the cursor keys:
  48. bindsym $mod+Left focus left
  49. bindsym $mod+Down focus down
  50. bindsym $mod+Up focus up
  51. bindsym $mod+Right focus right
  52. # move focused window
  53. bindsym $mod+Shift+j move left
  54. bindsym $mod+Shift+k move down
  55. bindsym $mod+Shift+l move up
  56. bindsym $mod+Shift+semicolon move right
  57. # alternatively, you can use the cursor keys:
  58. bindsym $mod+Shift+Left move left
  59. bindsym $mod+Shift+Down move down
  60. bindsym $mod+Shift+Up move up
  61. bindsym $mod+Shift+Right move right
  62. # split in horizontal orientation
  63. bindsym $mod+h split h
  64. # split in vertical orientation
  65. bindsym $mod+v split v
  66. # enter fullscreen mode for the focused container
  67. bindsym $mod+f fullscreen toggle
  68. # change container layout (stacked, tabbed, toggle split)
  69. bindsym $mod+s layout stacking
  70. bindsym $mod+w layout tabbed
  71. bindsym $mod+e layout toggle split
  72. # toggle tiling / floating
  73. bindsym $mod+Shift+space floating toggle
  74. # change focus between tiling / floating windows
  75. bindsym $mod+space focus mode_toggle
  76. # focus the parent container
  77. bindsym $mod+a focus parent
  78. # focus the child container
  79. #bindsym $mod+d focus child
  80. # switch to workspace
  81. bindsym $mod+1 workspace 1
  82. bindsym $mod+2 workspace 2
  83. bindsym $mod+3 workspace 3
  84. bindsym $mod+4 workspace 4
  85. bindsym $mod+5 workspace 5
  86. bindsym $mod+6 workspace 6
  87. bindsym $mod+7 workspace 7
  88. bindsym $mod+8 workspace 8
  89. bindsym $mod+9 workspace 9
  90. bindsym $mod+0 workspace 10
  91. bindsym $mod+shift+w workspace WeeChat
  92. # move focused container to workspace
  93. bindsym $mod+shift+1 move container to workspace 1
  94. bindsym $mod+shift+2 move container to workspace 2
  95. bindsym $mod+shift+3 move container to workspace 3
  96. bindsym $mod+shift+4 move container to workspace 4
  97. bindsym $mod+shift+5 move container to workspace 5
  98. bindsym $mod+shift+6 move container to workspace 6
  99. bindsym $mod+shift+7 move container to workspace 7
  100. bindsym $mod+shift+8 move container to workspace 8
  101. bindsym $mod+shift+9 move container to workspace 9
  102. bindsym $mod+Shift+0 move container to workspace WeeChat
  103. # reload the configuration file
  104. bindsym $mod+Shift+c reload
  105. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  106. bindsym $mod+Shift+r restart
  107. # exit i3 (logs you out of your X session)
  108. 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'"
  109. # resize window (you can also use the mouse for that)
  110. mode "resize" {
  111. # These bindings trigger as soon as you enter the resize mode
  112. # Pressing left will shrink the window’s width.
  113. # Pressing right will grow the window’s width.
  114. # Pressing up will shrink the window’s height.
  115. # Pressing down will grow the window’s height.
  116. bindsym j resize shrink width 10 px or 10 ppt
  117. bindsym k resize grow height 10 px or 10 ppt
  118. bindsym l resize shrink height 10 px or 10 ppt
  119. bindsym semicolon resize grow width 10 px or 10 ppt
  120. # same bindings, but for the arrow keys
  121. bindsym Left resize shrink width 10 px or 10 ppt
  122. bindsym Down resize grow height 10 px or 10 ppt
  123. bindsym Up resize shrink height 10 px or 10 ppt
  124. bindsym Right resize grow width 10 px or 10 ppt
  125. # back to normal: Enter or Escape
  126. bindsym Return mode "default"
  127. bindsym Escape mode "default"
  128. }
  129. bindsym $mod+r mode "resize"
  130. # Color settings
  131. set $bg-color #7b7b7b
  132. set $inactive-bg-color #5b5b5b
  133. set $text-color #494949
  134. set $inactive-text-color #7b7b7b
  135. set $urgent-bg-color #7b7b7b7
  136. # border background text indicator
  137. client.focused $bg-color $bg-color $text-color #424242
  138. client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color #424242
  139. client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color #424242
  140. client.urgent $urgent-bg-color $urgent-bg-color $text-color #424242
  141. #hide_edge_borders both
  142. # Start i3bar to display a workspace bar (plus the system information i3status
  143. # finds out, if available)
  144. bar{
  145. position top
  146. status_command i3status
  147. colors{
  148. background $bg-color
  149. separator #7b7b7b
  150. # border background text
  151. focused_workspace #bg-color bg-color $text-color
  152. urgent_workspace #urgent-bg-color bg-color $text-color
  153. }
  154. }
  155. # Screensaver Settings
  156. #exec --no-startup-id xset dpms 600
  157. # Lock screen
  158. #bindsym $mod+F9 exec i3lock -c 000000 -i /home/mathisen/Images/lock.png
  159. # Floating programs
  160. for_window [class="Pavucontrol"] floating enable
  161. for_window [class="Pavucontrol"] resize shrink left 100, resize shrink right 100, resize shrink down 50, resize shrink up 50
  162. # Wallpaper settings
  163. exec--no-startup-id nitrogen --restore
  164. #Transparency
  165. exec --no-startup-id compton
  166. # Program exec
  167. bindsym $mod+b exec librewolf
  168. #Language switching
  169. exec --no-startup "sestxkbmap -layout us,ru"
  170. exec --no-startup "setxkbmap -option 'grp:alt_shift_toggle'"