config 6.4 KB

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