Added new screenshot for full screenshot.
Added xdg-desktop-portal-wlr for screen sharing.
This commit is contained in:
parent
38a8921956
commit
4736a539b9
|
|
@ -51,6 +51,8 @@ in {
|
||||||
in lib.mkOptionDefault ({ # Screenshot keybinds
|
in lib.mkOptionDefault ({ # Screenshot keybinds
|
||||||
"Print" =
|
"Print" =
|
||||||
"exec grim - | wl-copy && wl-paste > ${screenshotPath}"; # Take screenshot of whole screen, save it, and copy it to clipboard
|
"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" = ''
|
"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
|
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" =
|
"Ctrl+Print" =
|
||||||
|
|
@ -166,8 +168,14 @@ in {
|
||||||
[ swaybg bemenu j4-dmenu-desktop swaysome ] ++
|
[ swaybg bemenu j4-dmenu-desktop swaysome ] ++
|
||||||
[ brightnessctl grim slurp wl-clipboard wdisplays ] ++
|
[ brightnessctl grim slurp wl-clipboard wdisplays ] ++
|
||||||
[ playerctl ] ++
|
[ playerctl ] ++
|
||||||
|
[ xdg-desktop-portal-wlr ] ++
|
||||||
[];
|
[];
|
||||||
|
|
||||||
|
home.sessionVariables = {
|
||||||
|
XDG_CURRENT_DESKTOP = "sway";
|
||||||
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
|
};
|
||||||
|
|
||||||
services.playerctld = {
|
services.playerctld = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -185,4 +193,9 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# xdg.portal = {
|
||||||
|
# enable = true;
|
||||||
|
# extraPortals = with pkgs; [ xdg-desktop-portal-wlr ];
|
||||||
|
# };
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue