omasnap
Native Wayland screenshot and annotation editor for Omarchy and Hyprland
omasnap Latest Version Download
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
cmake
View Details ▼
cmake
Cross-platform build automation system, that generates recipes for native build systems.
cmake {{path/to/project_directory}}
Generate a build recipe in the current directory with `CMakeLists.txt` from a project directory:
cmake --build {{path/to/build_directory}}
Use a generated recipe in a given directory to build artifacts:
cmake --install {{path/to/build_directory}} --strip
Install the build artifacts into `/usr/local/` and strip debugging symbols:
git clone
View Details ▼
git clone
Clone an existing repository.
git clone {{remote_repository_location}} {{path/to/directory}}
Clone an existing repository into a new directory (the default directory is the repository name):
git clone --recursive {{remote_repository_location}}
Clone an existing repository and its submodules:
git clone {{[-n|--no-checkout]}} {{remote_repository_location}}
Clone only the `.git` directory of an existing repository:
git filter-repo
View Details ▼
git filter-repo
A versatile tool for rewriting Git history.
See also: `bfg`.
git filter-repo --replace-text <(echo '{{find}}==>{{replacement}}')
Replace a sensitive string in all files:
git filter-repo --path {{path/to/folder}}
Extract a single folder, keeping history:
git filter-repo --path {{path/to/folder}} --invert-paths
Remove a single folder, keeping history:
tesseract
View Details ▼
tesseract
OCR (Optical Character Recognition) engine.
tesseract {{path/to/image.png}} {{path/to/output_file}}
Recognize text in an image and save it to the given path (a `.txt` extension is added automatically):
tesseract -l deu {{path/to/image.png}} {{path/to/output_file}}
Specify a custom [l]anguage (default is English) with an ISO 639-2 code (e.g. deu = Deutsch = German):
tesseract --list-langs
List the ISO 639-2 codes of installed languages:
grim
View Details ▼
grim
Grab images (screenshots) from a Wayland compositor.
By default, files are saved to `$GRIM_DEFAULT_DIR` or `$XDG_PICTURES_DIR` if the first variable is unset.
If none of the environment variables are set, files are saved to the current working directory.
grim
Screenshot all outputs to the default path:
grim -o {{DP-1}} {{path/to/output.png}}
Screenshot a specific output to the specified file:
grim -g "$(slurp)" {{path/to/output.png}}
Select a specific region using `slurp` and screenshot it:
hyprctl
View Details ▼
hyprctl
Control parts of the Hyprland Wayland compositor.
hyprctl reload
Reload Hyprland configuration:
hyprctl activewindow
Return the active window name:
hyprctl devices
List all connected input devices:
pacman -S
View Details ▼
pacman -S
This command is an alias of `pacman --sync`.
tldr pacman sync
View documentation for the original command:
wl-copy
View Details ▼
wl-copy
Clear and copy to Wayland clipboard.
See also: `wl-paste`, `xclip`.
wl-copy "{{text}}"
Copy the text to the clipboard:
{{ls}} | wl-copy
Pipe the command (`ls`) output to the clipboard:
wl-copy --paste-once "{{text}}"
Copy for only one paste and then clear it:
wl-paste
View Details ▼
wl-paste
Paste content in Wayland clipboard.
See also: `wl-copy`, `xclip`.
wl-paste
Paste the contents of the clipboard:
wl-paste --primary
Paste the contents of the primary clipboard (highlighted text):
wl-paste > {{path/to/file}}
Write the contents of the clipboard to a file:
