Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Common Scripts

This repository contains common scripts for various tasks.

Setup

To use these scripts, you can either:

  1. 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-scripts with the actual path to this directory.

  2. Symlink individual scripts to ~/.local/bin for easy access:

    mkdir -p ~/.local/bin
    ln -s /path/to/common-scripts/take-screenshot.sh ~/.local/bin/

    Then, add ~/.local/bin to your PATH if not already:

    export PATH="$HOME/.local/bin:$PATH"

Scripts

take-screenshot.sh

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)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages