Added new screenshot for full screenshot.

Added xdg-desktop-portal-wlr for screen sharing.
This commit is contained in:
vorboyvo 2025-11-03 16:11:09 -05:00
parent 38a8921956
commit 4736a539b9

View file

@ -51,6 +51,8 @@ in {
in lib.mkOptionDefault ({ # Screenshot keybinds
"Print" =
"exec grim - | wl-copy && wl-paste > ${screenshotPath}"; # Take screenshot of whole screen, save it, and copy it to clipboard
"${mod}+Ctrl+Shift+s" =
"exec grim - | wl-copy && wl-paste > ${screenshotPath}"; # Take screenshot of whole screen, save it, and copy it to clipboard
"Shift+Print" = ''
exec swaymsg -t get_tree | ${pkgs.lib.getExe pkgs.jq} -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | grim -g - | wl-copy && wl-paste > ${screenshotPath}''; # Take screenshot of current window, save it, and copy it to clipboard
"Ctrl+Print" =
@ -166,8 +168,14 @@ in {
[ swaybg bemenu j4-dmenu-desktop swaysome ] ++
[ brightnessctl grim slurp wl-clipboard wdisplays ] ++
[ playerctl ] ++
[ xdg-desktop-portal-wlr ] ++
[];
home.sessionVariables = {
XDG_CURRENT_DESKTOP = "sway";
MOZ_ENABLE_WAYLAND = 1;
};
services.playerctld = {
enable = true;
};
@ -185,4 +193,9 @@ in {
};
};
# xdg.portal = {
# enable = true;
# extraPortals = with pkgs; [ xdg-desktop-portal-wlr ];
# };
}