config 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. #font pango:Fira Code 12, FontAwesome 12, FiraCode Nerd Font 12
  2. font Unifont, 12
  3. focus_on_window_activation urgent
  4. focus_follows_mouse no
  5. mouse_warping none
  6. floating_minimum_size 100 x 100
  7. floating_maximum_size 1920 x 1080
  8. # class border bground text indicator child_border
  9. client.focused #FF5555 #6272A4 #F8F8F2 #6272A4 #FF5555
  10. client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
  11. client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
  12. client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
  13. client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
  14. client.background #F8F8F2
  15. exec --no-startup-id ~/.screenlayout/monitor.sh
  16. exec --no-startup-id pipewire
  17. exec --no-startup-id pipewire-pulse
  18. exec --no-startup-id wireplumber
  19. exec --no-startup-id pactl load-module module-combine-sink
  20. #exec --no-startup-id dunst --config ~/.config/dunst/dunstrc
  21. #exec --no-startup-id ~/.config/i3/scripts/delayedautostart.sh
  22. for_window [class="Alacritty"] focus
  23. for_window [all] border pixel 2
  24. for_window [all] title_window_icon on
  25. for_window [class="Xfce4.*settings"] floating enable
  26. set $mod Mod4
  27. # Use Mouse+$mod to drag floating windows to their wanted position
  28. floating_modifier $mod
  29. bindsym $mod+Return exec xrdb -load ~/.config/X11/Xresources; exec terminal
  30. # kill focused window
  31. bindsym $mod+Shift+c kill
  32. set $ws1 "1:CMD"
  33. set $ws2 "2:WORK"
  34. set $ws3 "3:WWW"
  35. set $ws4 "4:FILE"
  36. set $ws5 "5:GAMES"
  37. set $ws6 "6"
  38. set $ws7 "7"
  39. set $ws8 "8"
  40. set $ws9 "9:CHAT"
  41. set $ws10 "10:KEY"
  42. # switch to workspace
  43. bindsym $mod+1 workspace $ws1
  44. bindsym $mod+2 workspace $ws2
  45. bindsym $mod+3 workspace $ws3
  46. bindsym $mod+4 workspace $ws4
  47. bindsym $mod+5 workspace $ws5
  48. bindsym $mod+6 workspace $ws6
  49. bindsym $mod+7 workspace $ws7
  50. bindsym $mod+8 workspace $ws8
  51. bindsym $mod+9 workspace $ws9
  52. bindsym $mod+0 workspace $ws10
  53. # move focused container to workspace
  54. bindsym $mod+Shift+1 move container to workspace $ws1
  55. bindsym $mod+Shift+2 move container to workspace $ws2
  56. bindsym $mod+Shift+3 move container to workspace $ws3
  57. bindsym $mod+Shift+4 move container to workspace $ws4
  58. bindsym $mod+Shift+5 move container to workspace $ws5
  59. bindsym $mod+Shift+6 move container to workspace $ws6
  60. bindsym $mod+Shift+7 move container to workspace $ws7
  61. bindsym $mod+Shift+8 move container to workspace $ws8
  62. bindsym $mod+Shift+9 move container to workspace $ws9
  63. bindsym $mod+Shift+0 move container to workspace $ws10
  64. bindsym Print exec "flameshot full"
  65. bindsym Shift+Print exec "flameshot gui"
  66. bindsym Control+Print exec "flameshot screen"
  67. bindsym $mod+h focus left
  68. bindsym $mod+j focus down
  69. bindsym $mod+k focus up
  70. bindsym $mod+l focus right
  71. bindsym $mod+Mod1+h focus output left
  72. bindsym $mod+Mod1+j focus output down
  73. bindsym $mod+Mod1+k focus output up
  74. bindsym $mod+Mod1+l focus output right
  75. bindsym $mod+Shift+h move left
  76. bindsym $mod+Shift+j move down
  77. bindsym $mod+Shift+k move up
  78. bindsym $mod+Shift+l move right
  79. bindsym $mod+Mod1+Shift+h move output left; focus output left
  80. bindsym $mod+Mod1+Shift+j move output down; focus output down
  81. bindsym $mod+Mod1+Shift+k move output up; focus output up
  82. bindsym $mod+Mod1+Shift+l move output right; focus output right
  83. bindsym $mod+Mod1+Control+h move workspace to output left
  84. bindsym $mod+Mod1+Control+j move workspace to output down
  85. bindsym $mod+Mod1+Control+k move workspace to output up
  86. bindsym $mod+Mod1+Control+l move workspace to output right
  87. # Swap workspace between screens
  88. #bindsym Mod4+Shift+Control+j exec ~/.config/i3/scripts/display_swap
  89. bindsym $mod+Ctrl+h resize shrink width 10 px or 10 ppt
  90. bindsym $mod+Ctrl+k resize grow height 10 px or 10 ppt
  91. bindsym $mod+Ctrl+j resize shrink height 10 px or 10 ppt
  92. bindsym $mod+Ctrl+l resize grow width 10 px or 10 ppt
  93. bindsym $mod+Shift+s split toggle
  94. # Change focus between tiling / floating windows
  95. bindsym $mod+space focus mode_toggle
  96. # focus the parent container
  97. bindsym $mod+a focus parent
  98. bindsym $mod+t layout tabbed
  99. bindsym $mod+v layout toggle split
  100. bindsym $mod+f floating toggle
  101. bindsym $mod+m fullscreen
  102. set $rofi "r - Apps | c - Calc"
  103. bindsym $mod+r exec dmenu_run -b
  104. mode $rofi {
  105. bindsym r exec rofi -modi drun -show drun \
  106. -location 6 -m -1 -display-drun "Apps: " \
  107. -show-icons; mode "default"
  108. bindsym c exec rofi -modi calc -show calc \
  109. -location 6 -m -1; mode "default"
  110. bindsym Return mode "default"
  111. bindsym Escape mode "default"
  112. }
  113. set $system "p - Power Off | r - Reboot | s - Suspend | h - Hibernate | \
  114. l - Lock | R - Reload I3 | C-r - Restart I3 | L - Logout"
  115. bindsym $mod+s mode $system
  116. mode $system {
  117. bindsym p exec "i3-nagbar -t warning -m 'Power off?' \
  118. -B 'Yup' 'systemctl poweroff'"; mode "default"
  119. bindsym r exec "i3-nagbar -t warning -m 'Restart?' \
  120. -B 'Yup' 'systemctl reboot'"; mode "default"
  121. bindsym s exec systemctl suspend; mode "default"
  122. bindsym h exec systemctl hibernate; mode "default"
  123. bindsym l exec i3lock -c000000; mode "default"
  124. bindsym Shift+r reload; mode "default"
  125. bindsym Ctrl+r restart; mode "default"
  126. bindsym Shift+l exit; mode "default"
  127. bindsym Return mode "default"
  128. bindsym Escape mode "default"
  129. }
  130. bar {
  131. #font pango:Fira Code 11, FontAwesome 11
  132. font Unifont 11
  133. tray_output primary
  134. tray_padding 0
  135. status_command i3blocks -c ~/.config/i3/blocks.conf
  136. position bottom
  137. strip_workspace_numbers yes
  138. colors {
  139. background #2E303F
  140. statusline #F8F8F2
  141. separator #44475A
  142. focused_workspace #44475A #44475A #F8F8F2
  143. active_workspace #282A36 #44475A #F8F8F2
  144. inactive_workspace #282A36 #282A36 #BFBFBF
  145. urgent_workspace #FF5555 #FF5555 #F8F8F2
  146. binding_mode #FF5555 #FF5555 #F8F8F2
  147. }
  148. }