config 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. # Copyright (C) AlexCr4ckPentest
  2. # i3 config file
  3. set $mod Mod4
  4. # My config __BEGIN__
  5. # --------------------------------------------------------
  6. # CONSTANTS && PATHS
  7. set $POLYBAR_CFG ~/.config/polybar/cuts
  8. set $DUNST_CFG_FILE ~/.config/dunst/dunstrc
  9. set $WALLPAPERS_PATH ~/Pictures/Wallpapers
  10. set $POWER_MANAGER xfce4-power-manager
  11. set $POLICY_AGENT /usr/lib/polkit-kde-authentication-agent-1
  12. # Gaps configs
  13. gaps inner 12
  14. gaps outer 0
  15. default_border pixel 1
  16. for_window [class=".*"] border pixel 2
  17. # Launch some apps at startup
  18. exec --no-startup-id setxkbmap us,ru -option 'grp:alt_shift_toggle'
  19. exec_always --no-startup-id feh --bg-scale $WALLPAPERS_PATH/Arch.png &
  20. exec --no-startup-id $POWER_MANAGER &
  21. exec --no-startup-id $POLICY_AGENT &
  22. exec_always --no-startup-id picom -b &
  23. exec_always --no-startup-id $POLYBAR_CFG/launch.sh &
  24. exec_always --no-startup-id dunst -config $DUNST_CFG_FILE &
  25. exec_always --no-startup-id syncthing --no-browser &
  26. # Bindings
  27. bindsym $mod+d exec rofi -no-config -no-lazy-grab -show drun -modi drun -theme $POLYBAR_CFG/scripts/rofi/launcher.rasi &
  28. bindsym $mod+Shift+e exec --no-startup-id $POLYBAR_CFG/scripts/powermenu.sh &
  29. bindsym Ctrl+Print exec --no-startup-id flameshot gui &
  30. # Functional keys bind
  31. bindsym $mod+F1 exec --no-startup-id librewolf &
  32. bindsym $mod+F2 exec --no-startup-id thunar &
  33. # Start a terminal
  34. bindsym $mod+Return exec --no-startup-id xfce4-terminal &
  35. # Contol brightness on laptops
  36. bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl -q set +5% &
  37. bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl -q set 5%- &
  38. # Specific window config
  39. assign [class="QtCreator"] $ws3
  40. for_window [class="Thunar"] floating enable
  41. for_window [class="Blueman-manager"] floating enable
  42. for_window [class="Pavucontrol"] floating enable
  43. for_window [window_role="pop-up"] floating enable
  44. for_window [window_role="task_dialog"] floating enable
  45. # Window border colors
  46. # class border backgr. text indicator child_border
  47. client.focused #00ffff #285577 #ffffff #ff0000 #00ffff
  48. client.focused_inactive #333333 #5f676a #ffffff #484e50 #5f676a
  49. client.unfocused #333333 #222222 #888888 #292d2e #222222
  50. client.urgent #2f343a #900000 #ffffff #900000 #900000
  51. client.placeholder #000000 #0c0c0c #ffffff #000000 #0c0c0c
  52. client.background #ffffff
  53. # ----------------------------------------------------------
  54. # My config __END__
  55. # Font for window titles. Will also be used by the bar unless a different font
  56. # is used in the bar {} block below.
  57. font pango:sourcecodepro 9
  58. # This font is widely installed, provides lots of unicode glyphs, right-to-left
  59. # text rendering and scalability on retina/hidpi displays (thanks to pango).
  60. #font pango:sourcecodepro 9
  61. # xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
  62. # screen before suspend. Use loginctl lock-session to lock your screen.
  63. # exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
  64. # NetworkManager is the most popular way to manage wireless networks on Linux,
  65. # and nm-applet is a desktop environment-independent system tray GUI for it.
  66. # exec --no-startup-id nm-applet
  67. # Use pactl to adjust volume in PulseAudio.
  68. bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%
  69. bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -5%
  70. bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle
  71. bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle
  72. # Use Mouse+$mod to drag floating windows to their wanted position
  73. floating_modifier $mod
  74. # kill focused window
  75. bindsym $mod+Shift+q kill
  76. # focus window
  77. bindsym $mod+Left focus left
  78. bindsym $mod+Down focus down
  79. bindsym $mod+Up focus up
  80. bindsym $mod+Right focus right
  81. # move window
  82. bindsym $mod+Shift+Left move left
  83. bindsym $mod+Shift+Down move down
  84. bindsym $mod+Shift+Up move up
  85. bindsym $mod+Shift+Right move right
  86. bindsym $mod+h split h
  87. bindsym $mod+v split v
  88. # enter fullscreen mode for the focused container
  89. bindsym $mod+f fullscreen toggle
  90. # change container layout (stacked, tabbed, toggle split)
  91. bindsym $mod+s layout stacking
  92. bindsym $mod+w layout tabbed
  93. bindsym $mod+e layout toggle split
  94. # toggle tiling / floating
  95. bindsym $mod+Shift+space floating toggle
  96. # change focus between tiling / floating windows
  97. bindsym $mod+space focus mode_toggle
  98. # focus the parent container
  99. bindsym $mod+a focus parent
  100. # focus the child container
  101. #bindsym $mod+d focus child
  102. # Define names for default workspaces for which we configure key bindings later on.
  103. # We use variables to avoid repeating the names in multiple places.
  104. set $ws1 "1"
  105. set $ws2 "2"
  106. set $ws3 "3"
  107. set $ws4 "4"
  108. set $ws5 "5"
  109. set $ws6 "6"
  110. set $ws7 "7"
  111. set $ws8 "8"
  112. set $ws9 "9"
  113. #set $ws10 "10"
  114. # switch to workspace
  115. bindsym $mod+1 workspace number $ws1
  116. bindsym $mod+2 workspace number $ws2
  117. bindsym $mod+3 workspace number $ws3
  118. bindsym $mod+4 workspace number $ws4
  119. bindsym $mod+5 workspace number $ws5
  120. bindsym $mod+6 workspace number $ws6
  121. bindsym $mod+7 workspace number $ws7
  122. bindsym $mod+8 workspace number $ws8
  123. bindsym $mod+9 workspace number $ws9
  124. #bindsym $mod+0 workspace number $ws10
  125. # move focused container to workspace
  126. bindsym $mod+Shift+1 move container to workspace number $ws1
  127. bindsym $mod+Shift+2 move container to workspace number $ws2
  128. bindsym $mod+Shift+3 move container to workspace number $ws3
  129. bindsym $mod+Shift+4 move container to workspace number $ws4
  130. bindsym $mod+Shift+5 move container to workspace number $ws5
  131. bindsym $mod+Shift+6 move container to workspace number $ws6
  132. bindsym $mod+Shift+7 move container to workspace number $ws7
  133. bindsym $mod+Shift+8 move container to workspace number $ws8
  134. bindsym $mod+Shift+9 move container to workspace number $ws9
  135. #bindsym $mod+Shift+0 move container to workspace number $ws10
  136. bindsym $mod+Shift+c reload
  137. bindsym $mod+Shift+r restart
  138. mode "resize" {
  139. bindsym Left resize shrink width 10 px
  140. bindsym Down resize grow height 10 px
  141. bindsym Up resize shrink height 10 px
  142. bindsym Right resize grow width 10 px
  143. bindsym Escape mode "default"
  144. bindsym $mod+r mode "default"
  145. }
  146. bindsym $mod+r mode "resize"