Skip to content

deadfry42/fancygrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fancygrim

a small bash script that I use for screenshotting. (wayland only, targetting hyprland)
i made this because I was infuriated with the lack of good screenshotting tools. This tool takes a screenshot and THEN resizes it, instead of taking a resizing and taking a screenshot of slurp. It also allows you to toggle a shadow and change the border radius for each individual mode. This causes a delay when taking screenshots, but that doesn't matter all too much.

Important

This was made for Hyprland/Wayland in mind.
This will not work on X11, due to the use of slurp and grim.

examples

area screenshot: (fancygrim area -c 10 -s)

window screenshot: (fancygrim window -c 15 -s)

features

  • area, window & full screenshots
    • window screenshots rely on hyprctl, will not work on sway without tweaks to the code
  • shadows & corner rounding
    • shadows can be toggled
    • border radius can be configured.
  • a small range of options
    • explained in fancygrim usage
  • notification w/ preview
  • writing screenshots to a folder

default settings (with no options)

(you can edit these defaults by opening /usr/bin/fancygrim in a text editor, eg. nano)

Shadow=false # whether or not to have a shadow by default, you can enable this with the "--shadow" flag
CornerIntensity=10 # how intense the corners should be

Notification=true # whether or not to send a notification after the screenshot has been taken
PreNotification=true # whether or not to send a notification after the screenshot has begun processing
NotificationImage=true # whether or not the notification that is sent after the screenshot is taken should include that screenshot.

CopyToClipboard=true # whether or not to copy the Image do your clipboard
PasteOnce=false # whether or not the screenshot can be pasted only once
WriteImage=false # whether or not to write the image to disk
WriteDirectory="/home/$USER/Pictures/" # where the image should be written to disk

dependencies

  • grim
  • slurp
  • imagemagik
  • jq
  • hyprpicker
  • hyprctl
  • wl-clipboard
  • bash
  • sudo (for the installer)
  • wget (for the installer)

Arch Example:

sudo pacman -S grim slurp imagemagik jq wl-clipboard hyprpicker

installation

release version (stable, recommended)

git clone https://github.com/deadfry42/fancygrim && bash ./fancygrim/installation.sh stable

git version (unstable, unrecommended)

Warning

May be unstable, please use with caution.

git clone https://github.com/deadfry42/fancygrim && bash ./fancygrim/installation.sh git

(installation.sh found at the root of this repo, check if you don't trust this.)

License

This project is licensed under GLWTS
Translations available at https://github.com/me-shaon/GLWTPL/tree/master/translations

About

grim, but fancy (hyprland only)

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages