2024-12-03 16:50:23 -05:00
|
|
|
{ pkgs, config, ... }:
|
|
|
|
{
|
|
|
|
config.home.niri.settings.rules = pkgs.writeText "rules" ''
|
|
|
|
// Browsers
|
|
|
|
window-rule {
|
|
|
|
match app-id="MainBrowser"
|
|
|
|
open-on-workspace "${config.ws.w1}"
|
|
|
|
}
|
|
|
|
window-rule {
|
|
|
|
match app-id="AltBrowser"
|
|
|
|
open-on-workspace "${config.ws.w1a}"
|
|
|
|
}
|
|
|
|
|
|
|
|
// Communication
|
|
|
|
window-rule {
|
|
|
|
match app-id="MiscBrowser"
|
|
|
|
match app-id="vesktop"
|
|
|
|
block-out-from "screencast"
|
|
|
|
open-on-workspace "${config.ws.w7}"
|
|
|
|
}
|
|
|
|
window-rule {
|
|
|
|
match app-id="org.gnome.Fractal"
|
|
|
|
match app-id="org.telegram.desktop"
|
|
|
|
open-on-workspace "${config.ws.w8}"
|
|
|
|
}
|
|
|
|
window-rule {
|
|
|
|
match app-id="thunderbird"
|
|
|
|
open-maximized true
|
|
|
|
open-on-workspace "${config.ws.w9}"
|
|
|
|
}
|
|
|
|
|
|
|
|
// Etc
|
|
|
|
window-rule {
|
|
|
|
match app-id="looking-glass-client"
|
|
|
|
open-on-workspace "${config.ws.w2a}"
|
|
|
|
}
|
|
|
|
window-rule {
|
|
|
|
match app-id="com.obsproject.Studio"
|
|
|
|
open-on-workspace "${config.ws.w4a}"
|
|
|
|
}
|
2024-12-04 02:54:40 -05:00
|
|
|
|
|
|
|
screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png"
|
|
|
|
|
|
|
|
hotkey-overlay {
|
|
|
|
skip-at-startup
|
|
|
|
}
|
|
|
|
|
|
|
|
environment {
|
|
|
|
DISPLAY ":0"
|
|
|
|
}
|
2024-12-03 16:50:23 -05:00
|
|
|
'';
|
|
|
|
}
|