dwl: screenshotting

This commit is contained in:
Zynh Ludwig 2025-02-24 00:59:34 -08:00
parent cf89e2b807
commit 3cb61f024f

View file

@ -47,19 +47,36 @@ in
xwayland.enable = lib.mkDefault true; xwayland.enable = lib.mkDefault true;
}; };
xdg.portal.wlr.enable = lib.mkDefault true; xdg.portal = {
xdg.portal.extraPortals = [ enable = true;
pkgs.xdg-desktop-portal-gtk wlr.enable = lib.mkDefault true;
pkgs.xdg-desktop-portal-wlr extraPortals = [
]; pkgs.xdg-desktop-portal-gtk
pkgs.xdg-desktop-portal-wlr
];
};
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050913 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050913
xdg.portal.config.dwl.default = lib.mkDefault [ "wlr" "gtk" ]; xdg.portal.config.dwl.default = lib.mkDefault [ "wlr" "gtk" ];
services.xserver.desktopManager.runXdgAutostartIfNone = lib.mkDefault true; 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; [ environment.systemPackages = with pkgs; [
(flameshot.override { enableWlrSupport = true; }) grim
slurp
satty
wdisplays
xorg.xlsclients
wl-clipboard wl-clipboard
wmenu wmenu