From 15f8aca682e5d6fbf7e4db764538cd2858dd80c9 Mon Sep 17 00:00:00 2001 From: lucy Date: Wed, 2 Sep 2026 01:16:03 +0200 Subject: [PATCH] add fixes for screensharing by claude --- modules/home/home.nix | 4 ++++ modules/hosts/base/configuration.nix | 5 +++++ modules/programs/mango.nix | 5 ++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/home/home.nix b/modules/home/home.nix index 463f64c..c0af3e2 100644 --- a/modules/home/home.nix +++ b/modules/home/home.nix @@ -8,6 +8,10 @@ nixfmt clang kdePackages.qtdeclarative + grim + slurp + jq + wl-clipboard ]; home.stateVersion = "26.05"; home.pointerCursor = { diff --git a/modules/hosts/base/configuration.nix b/modules/hosts/base/configuration.nix index 1624b21..30e11bb 100644 --- a/modules/hosts/base/configuration.nix +++ b/modules/hosts/base/configuration.nix @@ -17,6 +17,11 @@ "nix-command" "flakes" ]; + xdg.portal.wlr.settings.screencast = { + chooser_type = "dmenu"; + chooser_cmd = "${pkgs.fuzzel}/bin/fuzzel --dmenu --lines 12 --prompt 'Share: '"; + }; + hardware.graphics.enable = true; time.timeZone = "Europe/Berlin"; i18n.defaultLocale = "en_US.UTF-8"; diff --git a/modules/programs/mango.nix b/modules/programs/mango.nix index 5b7011c..f2f96a7 100644 --- a/modules/programs/mango.nix +++ b/modules/programs/mango.nix @@ -4,7 +4,7 @@ }: let c = config.scheme; - in +in { home.file.screenshot = { enable = true; @@ -14,6 +14,9 @@ let }; wayland.windowManager.mango = { enable = true; + autostart_sh = '' + # say gex + ''; settings = { rootcolor = "0x${c.base00}ff"; bordercolor = "0x${c.base02}ff";