mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-29 13:51:50 +02:00
• Updated input 'nixpkgs':
→ 'github:NixOS/nixpkgs/0254eab410b90ef2420c1059f908ae777e3b02f9?narHash=sha256-/US2Ei9JHXHVBAxV4FX49Q7H5s4UNBrIiOA6Xjzgq44%3D' (2025-12-06)
• Updated input 'home-manager':
'github:nix-community/home-manager/f4cb25928fafa9ae68660fe71f730fc820a59028?narHash=sha256-5xOuutXM7UPTUcn3uDAD8UlPQsXmqPrX81cXoDOAGcA%3D' (2025-11-26)
→ 'github:nix-community/home-manager/89c9508bbe9b40d36b3dc206c2483ef176f15173?narHash=sha256-rB45jv4uwC90vM9UZ70plfvY/2Kdygs%2BzlQ07dGQFk4%3D' (2025-12-17)
• Updated input 'nixpkgs-master':
'github:nixos/nixpkgs/6812bcfd614abedbdb3f68d7b6554eda6ca3e014?narHash=sha256-sNF/PZcuzYBHKRBkerEiPf5mkZM15A3fWD%2BlqpwKc60%3D' (2025-12-15)
→ 'github:nixos/nixpkgs/e50ab9bb181f9fb3ce00e7a6007c70ddaa007203?narHash=sha256-acPMRCAPgPykzkwATwD1EfF7xgmbraAvIJyCeR6bKxc%3D' (2025-12-18)
Signed-off-by: Ryan Yin <xiaoyin_c@qq.com>
104 lines
2.2 KiB
Plaintext
104 lines
2.2 KiB
Plaintext
// Window rules let you adjust behavior for individual windows.
|
|
// Find more information on the wiki:
|
|
// https://yalter.github.io/niri/Configuration:-Window-Rules
|
|
|
|
// Terminal applications - open in workspace 1
|
|
window-rule {
|
|
match app-id="foot"
|
|
open-on-workspace "1terminal"
|
|
open-maximized true
|
|
}
|
|
window-rule {
|
|
match app-id="Alacritty"
|
|
open-on-workspace "1terminal"
|
|
open-maximized true
|
|
}
|
|
window-rule {
|
|
match app-id="com.mitchellh.ghostty"
|
|
open-on-workspace "1terminal"
|
|
open-maximized true
|
|
}
|
|
|
|
// Web browsers - open in workspace 2
|
|
window-rule {
|
|
match app-id="firefox"
|
|
open-on-workspace "2browser"
|
|
open-maximized true
|
|
}
|
|
window-rule {
|
|
match app-id="google-chrome"
|
|
open-on-workspace "2browser"
|
|
open-maximized true
|
|
}
|
|
window-rule {
|
|
match app-id="chromium-browser"
|
|
open-on-workspace "2browser"
|
|
open-maximized true
|
|
}
|
|
|
|
// Chat applications - open in workspace 3
|
|
window-rule {
|
|
match app-id="org.telegram.desktop"
|
|
open-on-workspace "3chat"
|
|
}
|
|
window-rule {
|
|
match app-id="wechat"
|
|
open-on-workspace "3chat"
|
|
}
|
|
window-rule {
|
|
match app-id="QQ"
|
|
open-on-workspace "3chat"
|
|
}
|
|
|
|
// Gaming applications - open in workspace 4
|
|
window-rule {
|
|
match app-id="steam"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
window-rule {
|
|
match app-id="steam_app_default"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
window-rule {
|
|
match app-id="heroic"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
window-rule {
|
|
match app-id="net.lutris.Lutris"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
window-rule {
|
|
match app-id="com.vysp3r.ProtonPlus"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
window-rule {
|
|
// Run anime games on Linux
|
|
match app-id="^moe.launcher"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
window-rule {
|
|
// All *.exe (Windows applications)
|
|
match app-id=".exe$"
|
|
open-on-workspace "4gaming"
|
|
}
|
|
|
|
// File management applications - open in workspace 6
|
|
window-rule {
|
|
match app-id="com.github.johnfactotum.Foliate"
|
|
open-on-workspace "6file"
|
|
}
|
|
window-rule {
|
|
match app-id="thunar"
|
|
open-on-workspace "6file"
|
|
}
|
|
|
|
// Other applications - open in workspace 0
|
|
window-rule {
|
|
match app-id="clash-verge"
|
|
open-on-workspace "0other"
|
|
}
|
|
window-rule {
|
|
match app-id="Zoom Workplace"
|
|
open-on-workspace "0other"
|
|
}
|