From d300a8d63146bcf6387bd76ea5723495c9b52066 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Wed, 16 Jul 2025 18:11:46 +0200 Subject: Use proper portal config To get this working a I needed to add a niri-portals.conf. Later this will come from the niri-portalsconf package --- niri.nix | 44 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) (limited to 'niri.nix') diff --git a/niri.nix b/niri.nix index ad0f939..feeb14d 100644 --- a/niri.nix +++ b/niri.nix @@ -60,9 +60,8 @@ backdrop-color "#DDDDDD" } - spawn-at-startup "dbus-update-activation-environment" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP=sway" - spawn-at-startup "/usr/libexec/pipewire-launcher" - //spawn-at-startup "openrc --user gui" + spawn-at-startup "dbus-update-activation-environment" "WAYLAND_DISPLAY" "XDG_CURRENT_DESKTOP=niri" + spawn-at-startup "openrc" "--user" "gui" spawn-at-startup "blueman-applet" spawn-at-startup "mako" @@ -155,6 +154,10 @@ Mod+Ctrl+Shift+WheelScrollDown { move-column-right; } Mod+Ctrl+Shift+WheelScrollUp { move-column-left; } + Mod+S { set-dynamic-cast-window; } + Mod+Shift+S { set-dynamic-cast-monitor; } + Mod+Ctrl+S { clear-dynamic-cast-target; } + Mod+1 { focus-workspace "α"; } Mod+2 { focus-workspace "γ"; } Mod+3 { focus-workspace "δ"; } @@ -257,6 +260,12 @@ block-out-from "screencast" } + window-rule { + match app-id=r#"^firefox$"# + + block-out-from "screencast" + } + window-rule { match app-id=r#"^Bitwarden$"# @@ -274,11 +283,38 @@ layer-rule { - exclude namespace="^notifications$" + match namespace="^notifications$" + block-out-from "screencast" + } + layer-rule { + match namespace="^waybar$" block-out-from "screencast" } + + window-rule { + match is-window-cast-target=true + + focus-ring { + active-color "#f38ba8" + inactive-color "#7d0d2d" + } + + border { + inactive-color "#7d0d2d" + } + + shadow { + color "#7d0d2d70" + } + + tab-indicator { + active-color "#f38ba8" + inactive-color "#7d0d2d" + } + } + // user private to hide private browser // altgr-intl ''; -- cgit v1.2.3