This repository contains common scripts for various tasks.
To use these scripts, you can either:
-
Add this directory to your PATH by adding the following line to your shell configuration file (e.g., ~/.bashrc or ~/.zshrc):
export PATH="$PATH:/path/to/common-scripts"
Replace
/path/to/common-scriptswith the actual path to this directory. -
Symlink individual scripts to
~/.local/binfor easy access:mkdir -p ~/.local/bin ln -s /path/to/common-scripts/take-screenshot.sh ~/.local/bin/
Then, add
~/.local/binto your PATH if not already:export PATH="$HOME/.local/bin:$PATH"
Takes a screenshot in one of three modes, saves it to ~/Pictures/Screenshots with a timestamped filename, copies it to the clipboard, and notifies the user upon completion.
Usage: take-screenshot.sh [region|window|full] (defaults to region)
region(default): select an area with slurp and capture it with grim.window: capture the currently focused window (via hyprctl).full: capture the entire screen with grim.
Requires: grim, slurp, hyprctl, jq, wl-clipboard (for Hyprland)