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+2 { focus-workspace "2browser"; }
Mod+3 { focus-workspace "3chat"; } Mod+3 { focus-workspace "3chat"; }
Mod+4 { focus-workspace "4entertainment"; } Mod+4 { focus-workspace "4entertainment"; }
Mod+5 { focus-workspace "5mail"; } Mod+5 { focus-workspace "5utility"; }
Mod+6 { focus-workspace "6utility"; }
Mod+0 { focus-workspace "0other"; } Mod+0 { focus-workspace "0other"; }
Mod+Ctrl+1 { move-column-to-workspace "1terminal"; } Mod+Ctrl+1 { move-column-to-workspace "1terminal"; }
Mod+Ctrl+2 { move-column-to-workspace "2browser"; } Mod+Ctrl+2 { move-column-to-workspace "2browser"; }
Mod+Ctrl+3 { move-column-to-workspace "3chat"; } Mod+Ctrl+3 { move-column-to-workspace "3chat"; }
Mod+Ctrl+4 { move-column-to-workspace "4entertainment"; } Mod+Ctrl+4 { move-column-to-workspace "4entertainment"; }
Mod+Ctrl+5 { move-column-to-workspace "5mail"; } Mod+Ctrl+5 { move-column-to-workspace "5utility"; }
Mod+Ctrl+6 { move-column-to-workspace "6utility"; }
Mod+Ctrl+0 { move-column-to-workspace "0other"; } Mod+Ctrl+0 { move-column-to-workspace "0other"; }
// Alternatively, there are commands to move just a single window: // Alternatively, there are commands to move just a single window:
+18 -9
View File
@@ -97,40 +97,50 @@ window-rule {
open-on-workspace "4entertainment" open-on-workspace "4entertainment"
} }
// Utility applications - open in workspace 6 // Utility applications - open in workspace 5
window-rule { window-rule {
match app-id="com.github.johnfactotum.Foliate" match app-id="com.github.johnfactotum.Foliate"
open-on-workspace "6utility" open-on-workspace "5utility"
} }
window-rule { window-rule {
match app-id="thunar" match app-id="thunar"
open-on-workspace "6utility" open-on-workspace "5utility"
} }
window-rule { window-rule {
match app-id="^Clash-verge$" match app-id="^Clash-verge$"
match app-id="^[.]clash-verge-wrapped$" match app-id="^[.]clash-verge-wrapped$"
open-on-workspace "6utility" open-on-workspace "5utility"
} }
window-rule { window-rule {
match app-id="^org[.]kde[.]easyeffects$" 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 { window-rule {
match app-id="Zoom Workplace" match app-id="Zoom Workplace"
// Zoom Home Page // Zoom Home Page
match title="^(Zoom Workplace)( - Free account)?$" match title="^(Zoom Workplace)( - Free account)?$"
open-on-workspace "6utility" open-on-workspace "0other"
} }
window-rule { window-rule {
match app-id="Zoom Workplace" match app-id="Zoom Workplace"
// Zoom - other windows // Zoom - other windows
exclude title="^(Zoom Workplace)( - Free account)?$" exclude title="^(Zoom Workplace)( - Free account)?$"
open-on-workspace "6utility" open-on-workspace "0other"
open-floating true open-floating true
} }
window-rule { window-rule {
match app-id="^Zoom$" match app-id="^Zoom$"
open-on-workspace "6utility" open-on-workspace "0other"
} }
window-rule { window-rule {
match app-id="^Zoom$" title="^as_toolbar$" match app-id="^Zoom$" title="^as_toolbar$"
@@ -150,4 +160,3 @@ window-rule {
open-focused false open-focused false
default-floating-position x=0 y=0 relative-to="bottom-right" default-floating-position x=0 y=0 relative-to="bottom-right"
} }
+5 -6
View File
@@ -7,10 +7,10 @@ case "$(hostname)" in
workspace_order=( workspace_order=(
"4entertainment:1" "4entertainment:1"
"2browser:2" "2browser:2"
"5utility:3"
"3chat:1"
"1terminal:2"
"0other:3" "0other:3"
"1terminal:1"
"3chat:2"
"6utility:3"
) )
;; ;;
shoukei) shoukei)
@@ -19,9 +19,8 @@ case "$(hostname)" in
"2browser:2" "2browser:2"
"3chat:3" "3chat:3"
"4entertainment:4" "4entertainment:4"
"5mail:5" "5utility:5"
"6utility:6" "0other:6"
"0other:7"
) )
;; ;;
*) *)
+1 -3
View File
@@ -8,8 +8,6 @@ workspace "1terminal" { open-on-output "eDP-1"; }
workspace "2browser" { open-on-output "eDP-1"; } workspace "2browser" { open-on-output "eDP-1"; }
workspace "3chat" { open-on-output "eDP-1"; } workspace "3chat" { open-on-output "eDP-1"; }
workspace "4entertainment" { open-on-output "eDP-1"; } workspace "4entertainment" { open-on-output "eDP-1"; }
workspace "5mail" { open-on-output "eDP-1"; } workspace "5utility" { open-on-output "eDP-1"; }
workspace "6utility" { open-on-output "eDP-1"; }
workspace "0other" { open-on-output "eDP-1"; } workspace "0other" { open-on-output "eDP-1"; }
debug { render-drm-device "/dev/dri/renderD128"; } debug { render-drm-device "/dev/dri/renderD128"; }
+3 -3
View File
@@ -40,8 +40,8 @@ output "HDMI-A-2" {
// ============= Named Workspaces ============= // ============= Named Workspaces =============
workspace "4entertainment" { open-on-output "DP-1"; } workspace "4entertainment" { open-on-output "DP-1"; }
workspace "2browser" { 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 "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"; }