소스 검색

Merge branch 'imp/auto-sort-windows'

DricomDragon 4 년 전
부모
커밋
3d51001d22
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Guides/i3.md
  2. 6 0
      Install/Templates/config/i3/config

+ 4 - 0
Guides/i3.md

@@ -23,3 +23,7 @@ To get information :
 To adjust screen setup :
 
 `xrandr --output HDMI-0 --auto --above DP-0`
+
+## Filter windows
+
+To get informations used by filter, for example with `for_window`, use `xprop`.

+ 6 - 0
Install/Templates/config/i3/config

@@ -217,6 +217,12 @@ bindsym $mod+Ctrl+a exec atril
 bindsym $mod+Ctrl+m exec mumble
 bindsym $mod+Ctrl+n exec nautilus
 
+# auto set workspace
+for_window [class="Firefox"] move container to workspace 1
+for_window [class="^Gimp.*"] move container to workspace 2
+for_window [class="Thunderbird"] move container to workspace 4
+for_window [class="keepassxc"] move scratchpad
+
 # resize window (you can also use the mouse for that)
 mode "resize" {
         # These bindings trigger as soon as you enter the resize mode