From 3cb61f024f59a136d5e6cee2592d182f671f035b Mon Sep 17 00:00:00 2001 From: Zynh Ludwig <zynh0722@gmail.com> Date: Mon, 24 Feb 2025 00:59:34 -0800 Subject: [PATCH] dwl: screenshotting --- modules/dwl.nix | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/modules/dwl.nix b/modules/dwl.nix index 24dd327..b72e5ca 100644 --- a/modules/dwl.nix +++ b/modules/dwl.nix @@ -47,19 +47,36 @@ in xwayland.enable = lib.mkDefault true; }; - xdg.portal.wlr.enable = lib.mkDefault true; - xdg.portal.extraPortals = [ - pkgs.xdg-desktop-portal-gtk - pkgs.xdg-desktop-portal-wlr - ]; + xdg.portal = { + enable = true; + wlr.enable = lib.mkDefault true; + extraPortals = [ + pkgs.xdg-desktop-portal-gtk + pkgs.xdg-desktop-portal-wlr + ]; + }; # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050913 xdg.portal.config.dwl.default = lib.mkDefault [ "wlr" "gtk" ]; services.xserver.desktopManager.runXdgAutostartIfNone = lib.mkDefault true; + environment.variables = { + QT_QPA_PLATFORM = "wayland;xcb"; + MOZ_ENABLE_WAYLAND = 1; + SDL_VIDEODRIVEWR = "walyand,x11"; + _JAVA_AWT_WM_NONREPARENTING = 1; + XDG_CURRENT_DESKTOP = "dwl"; + XDG_SESSION_DESKTOP = "dwl"; + }; + environment.systemPackages = with pkgs; [ - (flameshot.override { enableWlrSupport = true; }) + grim + slurp + satty + + wdisplays + xorg.xlsclients wl-clipboard wmenu