feat(niri): reorganize workspaces

This commit is contained in:
Ryan Yin
2026-08-03 22:42:37 +08:00
parent 20dac3bb84
commit cce15300d6
5 changed files with 29 additions and 25 deletions
+2 -4
View File
@@ -152,15 +152,13 @@ binds {
Mod+2 { focus-workspace "2browser"; }
Mod+3 { focus-workspace "3chat"; }
Mod+4 { focus-workspace "4entertainment"; }
Mod+5 { focus-workspace "5mail"; }
Mod+6 { focus-workspace "6utility"; }
Mod+5 { focus-workspace "5utility"; }
Mod+0 { focus-workspace "0other"; }
Mod+Ctrl+1 { move-column-to-workspace "1terminal"; }
Mod+Ctrl+2 { move-column-to-workspace "2browser"; }
Mod+Ctrl+3 { move-column-to-workspace "3chat"; }
Mod+Ctrl+4 { move-column-to-workspace "4entertainment"; }
Mod+Ctrl+5 { move-column-to-workspace "5mail"; }
Mod+Ctrl+6 { move-column-to-workspace "6utility"; }
Mod+Ctrl+5 { move-column-to-workspace "5utility"; }
Mod+Ctrl+0 { move-column-to-workspace "0other"; }
// Alternatively, there are commands to move just a single window:
+18 -9
View File
@@ -97,40 +97,50 @@ window-rule {
open-on-workspace "4entertainment"
}
// Utility applications - open in workspace 6
// Utility applications - open in workspace 5
window-rule {
match app-id="com.github.johnfactotum.Foliate"
open-on-workspace "6utility"
open-on-workspace "5utility"
}
window-rule {
match app-id="thunar"
open-on-workspace "6utility"
open-on-workspace "5utility"
}
window-rule {
match app-id="^Clash-verge$"
match app-id="^[.]clash-verge-wrapped$"
open-on-workspace "6utility"
open-on-workspace "5utility"
}
window-rule {
match app-id="^org[.]kde[.]easyeffects$"
open-on-workspace "6utility"
open-on-workspace "5utility"
}
// Other applications - open in workspace 0
window-rule {
match app-id="BambuStudio"
open-on-workspace "0other"
}
window-rule {
match app-id="OrcaSlicer"
open-on-workspace "0other"
}
window-rule {
match app-id="Zoom Workplace"
// Zoom Home Page
match title="^(Zoom Workplace)( - Free account)?$"
open-on-workspace "6utility"
open-on-workspace "0other"
}
window-rule {
match app-id="Zoom Workplace"
// Zoom - other windows
exclude title="^(Zoom Workplace)( - Free account)?$"
open-on-workspace "6utility"
open-on-workspace "0other"
open-floating true
}
window-rule {
match app-id="^Zoom$"
open-on-workspace "6utility"
open-on-workspace "0other"
}
window-rule {
match app-id="^Zoom$" title="^as_toolbar$"
@@ -150,4 +160,3 @@ window-rule {
open-focused false
default-floating-position x=0 y=0 relative-to="bottom-right"
}
+5 -6
View File
@@ -7,10 +7,10 @@ case "$(hostname)" in
workspace_order=(
"4entertainment:1"
"2browser:2"
"5utility:3"
"3chat:1"
"1terminal:2"
"0other:3"
"1terminal:1"
"3chat:2"
"6utility:3"
)
;;
shoukei)
@@ -19,9 +19,8 @@ case "$(hostname)" in
"2browser:2"
"3chat:3"
"4entertainment:4"
"5mail:5"
"6utility:6"
"0other:7"
"5utility:5"
"0other:6"
)
;;
*)
+1 -3
View File
@@ -8,8 +8,6 @@ workspace "1terminal" { open-on-output "eDP-1"; }
workspace "2browser" { open-on-output "eDP-1"; }
workspace "3chat" { open-on-output "eDP-1"; }
workspace "4entertainment" { open-on-output "eDP-1"; }
workspace "5mail" { open-on-output "eDP-1"; }
workspace "6utility" { open-on-output "eDP-1"; }
workspace "5utility" { open-on-output "eDP-1"; }
workspace "0other" { open-on-output "eDP-1"; }
debug { render-drm-device "/dev/dri/renderD128"; }
+3 -3
View File
@@ -40,8 +40,8 @@ output "HDMI-A-2" {
// ============= Named Workspaces =============
workspace "4entertainment" { open-on-output "DP-1"; }
workspace "2browser" { open-on-output "DP-1"; }
workspace "0other" { open-on-output "DP-1"; }
workspace "5utility" { open-on-output "DP-1"; }
workspace "1terminal" { open-on-output "HDMI-A-2"; }
workspace "3chat" { open-on-output "HDMI-A-2"; }
workspace "6utility" { open-on-output "HDMI-A-2"; }
workspace "1terminal" { open-on-output "HDMI-A-2"; }
workspace "0other" { open-on-output "HDMI-A-2"; }