Skip to content

Instantly share code, notes, and snippets.

View J053Fabi0's full-sized avatar
🦕
I love Deno

Jose Fabio J053Fabi0

🦕
I love Deno
View GitHub Profile
@J053Fabi0
J053Fabi0 / grimshot-extended.ts
Last active March 9, 2024 05:29
grimshot-extended
// To compile run:
// deno compile --allow-run --allow-read --allow-env screenshot.ts
// Add this to your sway config: for_window [class="fullscreen"] floating enable, fullscreen enable
// It requires viewnior to be installed. pacman -S viewnior
// By default it will save the screenshot in the Downloads folder, but you can specify a different folder with the -d flag.
// screenshot - Open the gui to take a screenshot and copy to clipboard
// screenshot full - Take a full screenshot and copy to clipboard
// screenshot -d /path/to/folder - Open the gui to take a screenshot and copy to clipboard to the specified folder
// screenshot -o - It compresses the screenshot with optipng before copying it to the clipboard. This requires optipng and dunst to be installed. pacman -S optipng dunst