config-backup 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. # Copyright (C) AlexCr4ckPentest
  2. # i3 config file
  3. set $mod Mod4
  4. # My config __BEGIN__
  5. # --------------------------------------------------------
  6. # Gaps configs
  7. gaps inner 7
  8. gaps outer 0
  9. #smart_borders on
  10. default_border pixel 1
  11. # Launch some apps at startup
  12. exec --no-startup-id setxkbmap us,ru -option 'grp:alt_shift_toggle'
  13. exec --no-startup-id feh --bg-scale ~/Pictures/Wallpapers/Arch-Linux_anime_girl.png
  14. exec --no-startup-id picom -b
  15. exec_always --no-startup-id dunst -config ~/.config/dunst/dunstrc
  16. exec_always --no-startup-id ~/.config/polybar/launch.sh
  17. exec_always --no-startup-id blueberry-tray
  18. #exec --no-startup-id thunar
  19. # Bindings
  20. bindsym $mod+Shift+e exec --no-startup-id ~/.config/polybar/shapes/scripts/powermenu.sh &
  21. bindsym $mod+d exec rofi -no-config -no-lazy-grab -show drun -modi drun \
  22. -theme ~/.config/polybar/shapes/scripts/rofi/launcher.rasi
  23. bindsym $mod+F1 exec --no-startup-id librewolf
  24. bindsym Ctrl+Print exec --no-startup-id flameshot gui
  25. # Specific window config
  26. assign [class="LibreWolf"] $ws1
  27. assign [class="Org.gnome.Nautilus"] $ws2
  28. assign [class="Thunar"] $ws2
  29. assign [class="QtCreator"] $ws3
  30. assign [class="VSCodium"] $ws3
  31. assign [class="Steam"] $ws4
  32. #for_window [class="Alacritty"] floating enable move absolute position center
  33. #for_window [class="Org.gnome.Nautilus"] floating enable move absolute position center
  34. #for_window [class="Thunar"] floating enable move absolute position center
  35. # Window border colors
  36. # class border backgr. text indicator child_border
  37. client.focused #4c7899 #285577 #ffffff #2e9ef4 #285577
  38. client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
  39. client.unfocused #333333 #222222 #888888 #292d2e #222222
  40. client.urgent #2f343a #900000 #ffffff #900000 #900000
  41. client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  42. client.background #ffffff
  43. # ----------------------------------------------------------
  44. # My config __END__
  45. # Font for window titles. Will also be used by the bar unless a different font
  46. # is used in the bar {} block below.
  47. font pango:sourcecodepro 9
  48. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  49. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  50. #font pango:sourcecodepro 9
  51. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  52. # screen before suspend. Use loginctl lock-session to lock your screen.
  53. # exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  54. # NetworkManager is the most popular way to manage wireless networks on Linux,
  55. # and nm-applet is a desktop environment-independent system tray GUI for it.
  56. # exec --no-startup-id nm-applet
  57. # Use pactl to adjust volume in PulseAudio.
  58. set $refresh_i3status killall -SIGUSR1 i3status
  59. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
  60. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
  61. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
  62. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
  63. # Use Mouse+$mod to drag floating windows to their wanted position
  64. floating_modifier $mod
  65. # start a terminal
  66. bindsym $mod+Return exec alacritty
  67. # kill focused window
  68. bindsym $mod+Shift+q kill
  69. # focus window
  70. bindsym $mod+Left focus left
  71. bindsym $mod+Down focus down
  72. bindsym $mod+Up focus up
  73. bindsym $mod+Right focus right
  74. # move window
  75. bindsym $mod+Shift+Left move left
  76. bindsym $mod+Shift+Down move down
  77. bindsym $mod+Shift+Up move up
  78. bindsym $mod+Shift+Right move right
  79. bindsym $mod+h split h
  80. bindsym $mod+v split v
  81. # enter fullscreen mode for the focused container
  82. bindsym $mod+f fullscreen toggle
  83. # change container layout (stacked, tabbed, toggle split)
  84. bindsym $mod+s layout stacking
  85. bindsym $mod+w layout tabbed
  86. bindsym $mod+e layout toggle split
  87. # toggle tiling / floating
  88. #bindsym $mod+Button2 floating toggle
  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+Shift+1 move container to workspace number $ws1
  121. bindsym $mod+Shift+2 move container to workspace number $ws2
  122. bindsym $mod+Shift+3 move container to workspace number $ws3
  123. bindsym $mod+Shift+4 move container to workspace number $ws4
  124. bindsym $mod+Shift+5 move container to workspace number $ws5
  125. bindsym $mod+Shift+6 move container to workspace number $ws6
  126. bindsym $mod+Shift+7 move container to workspace number $ws7
  127. bindsym $mod+Shift+8 move container to workspace number $ws8
  128. bindsym $mod+Shift+9 move container to workspace number $ws9
  129. bindsym $mod+Shift+0 move container to workspace number $ws10
  130. # reload the configuration file
  131. bindsym $mod+Shift+c reload
  132. # restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
  133. bindsym $mod+Shift+r restart
  134. # resize window (you can also use the mouse for that)
  135. mode "resize" {
  136. bindsym Left resize shrink width 10 px
  137. bindsym Down resize grow height 10 px
  138. bindsym Up resize shrink height 10 px
  139. bindsym Right resize grow width 10 px
  140. bindsym Escape mode "default"
  141. bindsym $mod+r mode "default"
  142. }
  143. bindsym $mod+r mode "resize"