add(screenshot): screenshot now saves and copies
This commit is contained in:
@@ -21,9 +21,11 @@
|
|||||||
grim - | swappy -f -
|
grim - | swappy -f -
|
||||||
;;
|
;;
|
||||||
region-save)
|
region-save)
|
||||||
# Quick region screenshot (save without editing)
|
# Quick region screenshot (save without editing and copy to clipboard)
|
||||||
grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%Y-%m-%d_%H-%M-%S.png')
|
filepath=~/Pictures/Screenshots/$(date +'%Y-%m-%d_%H-%M-%S.png')
|
||||||
notify-send "Screenshot saved" "Saved to ~/Pictures/Screenshots/"
|
grim -g "$(slurp)" "$filepath"
|
||||||
|
wl-copy < "$filepath"
|
||||||
|
notify-send "Screenshot saved" "Saved and copied to clipboard"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: screenshot {region|window|screen|all|region-save}"
|
echo "Usage: screenshot {region|window|screen|all|region-save}"
|
||||||
@@ -33,11 +35,12 @@
|
|||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
grim # Screenshot utility
|
grim # Screenshot utility
|
||||||
slurp # Region selector
|
slurp # Region selector
|
||||||
swappy # Annotation tool
|
swappy # Annotation tool
|
||||||
jq # For window selection
|
jq # For window selection
|
||||||
screenshot # Our wrapper script
|
wl-clipboard # For copying to clipboard
|
||||||
|
screenshot # Our wrapper script
|
||||||
];
|
];
|
||||||
|
|
||||||
# Create Screenshots directory
|
# Create Screenshots directory
|
||||||
|
|||||||
Reference in New Issue
Block a user