Автор: funk2256@funk2256-manjaro-pc, 2 лет назад, написана на языке Plain Text.
Встраивание на сайт
  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. #exec --no-startup-id onboard &
  8. exec --no-startup-id pamac-tray
  9. exec --no-startup-id /usr/bin/lxqt-policykit-agent
  10. exec feh --bg-scale /home/funk2256/Изображения/wallpaper.jpg
  11. exec --no-startup-id conky
  12. exec_always --no-startup-id  $HOME/.config/polybar/launch.sh
  13. exec_always --no-startup-id  $HOME/my_scripts/glava.sh
  14. #polkit for pass
  15.  
  16. ##exec_always --no-startup-id  $HOME/.config/i3/screenrotator.sh
  17. #exec --no-startup-id nitrogen
  18.  
  19. exec --no-startup-id setxkbmap -model pc105 -layout us,ru -option grp:alt_shift_toggle
  20. exec --no-startup-id numlockx on
  21.  
  22.  
  23. #Maximum width for floating windows
  24. floating_minimum_size 400 x 350
  25. floating_maximum_size 1980 x 720
  26.  
  27. #(1366 -10)/2 and (766 - 10)/2
  28. for_window [class=".*"] floating enable
  29. for_window [class=".*"] resize set 955 355
  30. for_window [class=".*"] focus
  31.  
  32. # i3 config file (v4)
  33. #
  34. # Please see https://i3wm.org/docs/userguide.html for a complete reference!
  35.  
  36. set $mod Mod4
  37.  
  38. # Font for window titles. Will also be used by the bar unless a different font
  39. # is used in the bar {} block below.
  40. font pango:monospace 8
  41.  
  42. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  43. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  44. #font pango:DejaVu Sans Mono 8
  45.  
  46. # Start XDG autostart .desktop files using dex. See also
  47. # https://wiki.archlinux.org/index.php/XDG_Autostart
  48. exec --no-startup-id dex --autostart --environment i3
  49.  
  50. # The combination of xss-lock, nm-applet and pactl is a popular choice, so
  51. # they are included here as an example. Modify as you see fit.
  52.  
  53. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  54. # screen before suspend. Use loginctl lock-session to lock your screen.
  55. exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  56.  
  57. # NetworkManager is the most popular way to manage wireless networks on Linux,
  58. # and nm-applet is a desktop environment-independent system tray GUI for it.
  59. exec --no-startup-id nm-applet
  60.  
  61. # Use pactl to adjust volume in PulseAudio.
  62. set $refresh_i3status killall -SIGUSR1 i3status
  63. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  64. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  65. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  66. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  67.  
  68. # Use Mouse+$mod to drag floating windows to their wanted position
  69. floating_modifier $mod
  70.  
  71. # start a terminal
  72. bindsym $mod+Return exec tilix
  73.  
  74. # kill focused window
  75. bindsym $mod+Shift+q kill
  76.  
  77. # start dmenu (a program launcher)
  78. bindsym $mod+d exec --no-startup-id dmenu_run
  79. # A more modern dmenu replacement is rofi:
  80. # bindcode $mod+40 exec "rofi -modi drun,run -show drun"
  81. # There also is i3-dmenu-desktop which only displays applications shipping a
  82. # .desktop file. It is a wrapper around dmenu, so you need that installed.
  83. # bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
  84.  
  85. # change focus
  86. bindsym $mod+j focus left
  87. bindsym $mod+k focus down
  88. bindsym $mod+l focus up
  89. bindsym $mod+semicolon focus right
  90.  
  91. # alternatively, you can use the cursor keys:
  92. bindsym $mod+Left focus left
  93. bindsym $mod+Down focus down
  94. bindsym $mod+Up focus up
  95. bindsym $mod+Right focus right
  96.  
  97. # move focused window
  98. bindsym $mod+Shift+j move left
  99. bindsym $mod+Shift+k move down
  100. bindsym $mod+Shift+l move up
  101. bindsym $mod+Shift+colon move right
  102.  
  103. # alternatively, you can use the cursor keys:
  104. bindsym $mod+Shift+Left move left
  105. bindsym $mod+Shift+Down move down
  106. bindsym $mod+Shift+Up move up
  107. bindsym $mod+Shift+Right move right
  108.  
  109. # split in horizontal orientation
  110. bindsym $mod+h split h
  111.  
  112. # split in vertical orientation
  113. bindsym $mod+v split v
  114.  
  115. # enter fullscreen mode for the focused container
  116. bindsym $mod+f fullscreen toggle
  117.  
  118. # change container layout (stacked, tabbed, toggle split)
  119. bindsym $mod+s layout stacking
  120. bindsym $mod+w layout tabbed
  121. bindsym $mod+e layout toggle split
  122.  
  123. # toggle tiling / floating
  124. bindsym $mod+Shift+space floating toggle
  125.  
  126. # change focus between tiling / floating windows
  127. bindsym $mod+space focus mode_toggle
  128.  
  129. # focus the parent container
  130. bindsym $mod+a focus parent
  131.  
  132. # focus the child container
  133. #bindsym $mod+d focus child
  134.  
  135. # Define names for default workspaces for which we configure key bindings later on.
  136. # We use variables to avoid repeating the names in multiple places.
  137. set $ws1 "1"
  138. set $ws2 "2"
  139. set $ws3 "3"
  140. set $ws4 "4"
  141. set $ws5 "5"
  142. set $ws6 "6"
  143. set $ws7 "7"
  144. set $ws8 "8"
  145. set $ws9 "9"
  146. set $ws10 "10"
  147.  
  148. # switch to workspace
  149. bindsym $mod+1 workspace number $ws1
  150. bindsym $mod+2 workspace number $ws2
  151. bindsym $mod+3 workspace number $ws3
  152. bindsym $mod+4 workspace number $ws4
  153. bindsym $mod+5 workspace number $ws5
  154. bindsym $mod+6 workspace number $ws6
  155. bindsym $mod+7 workspace number $ws7
  156. bindsym $mod+8 workspace number $ws8
  157. bindsym $mod+9 workspace number $ws9
  158. bindsym $mod+0 workspace number $ws10
  159.  
  160. # move focused container to workspace
  161. bindsym $mod+Shift+1 move container to workspace number $ws1
  162. bindsym $mod+Shift+2 move container to workspace number $ws2
  163. bindsym $mod+Shift+3 move container to workspace number $ws3
  164. bindsym $mod+Shift+4 move container to workspace number $ws4
  165. bindsym $mod+Shift+5 move container to workspace number $ws5
  166. bindsym $mod+Shift+6 move container to workspace number $ws6
  167. bindsym $mod+Shift+7 move container to workspace number $ws7
  168. bindsym $mod+Shift+8 move container to workspace number $ws8
  169. bindsym $mod+Shift+9 move container to workspace number $ws9
  170. bindsym $mod+Shift+0 move container to workspace number $ws10
  171.  
  172. # reload the configuration file
  173. bindsym $mod+Shift+c reload
  174. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  175. bindsym $mod+Shift+r restart
  176. # exit i3 (logs you out of your X session)
  177. 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'"
  178.  
  179. # resize window (you can also use the mouse for that)
  180. mode "resize" {
  181.         # These bindings trigger as soon as you enter the resize mode
  182.  
  183.         # Pressing left will shrink the window’s width.
  184.         # Pressing right will grow the window’s width.
  185.         # Pressing up will shrink the window’s height.
  186.         # Pressing down will grow the window’s height.
  187.         bindsym j resize shrink width 10 px or 10 ppt
  188.         bindsym k resize grow height 10 px or 10 ppt
  189.         bindsym l resize shrink height 10 px or 10 ppt
  190.         bindsym semicolon resize grow width 10 px or 10 ppt
  191.  
  192.         # same bindings, but for the arrow keys
  193.         bindsym Left resize shrink width 10 px or 10 ppt
  194.         bindsym Down resize grow height 10 px or 10 ppt
  195.         bindsym Up resize shrink height 10 px or 10 ppt
  196.         bindsym Right resize grow width 10 px or 10 ppt
  197.  
  198.         # back to normal: Enter or Escape or $mod+r
  199.         bindsym Return mode "default"
  200.         bindsym Escape mode "default"
  201.         bindsym $mod+r mode "default"
  202. }
  203.  
  204. bindsym $mod+r mode "resize"
  205.  
  206. # Start i3bar to display a workspace bar (plus the system information i3status
  207. # finds out, if available)
  208. #bar {
  209. #        status_command polybar
  210. #}
  211. new_window pixel