Skip to content

blisscs/common-script

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 of a selected area using slurp (for selection) and grim (for capture), saves it to ~/Pictures/Screenshots with a timestamped filename. Notifies the user upon completion.

Requires: grim, slurp, wl-clipboard (for Hyprland)

copy-screenshot.sh

Takes a screenshot of a selected area using slurp and grim, copies it directly to the clipboard for pasting with Ctrl+V. Notifies the user upon completion.

Requires: grim, slurp, wl-clipboard (for Hyprland)

take-window-screenshot.sh

Lists all open windows across workspaces using rofi (showing workspace, title, and address), allows selection. If the selected window is on a different workspace, temporarily switches to that workspace, focuses the window, captures it, and switches back. Saves to ~/Pictures/Screenshots with a timestamped filename. Notifies the user upon completion.

Requires: grim, hyprctl, jq, wl-clipboard (for Hyprland)

copy-window-screenshot.sh

Lists all open windows across workspaces using rofi (showing workspace, title, and address), allows selection. If the selected window is on a different workspace, temporarily switches to that workspace, focuses the window, captures it, and switches back. Copies to the clipboard for pasting with Ctrl+V. Notifies the user upon completion.

Requires: grim, hyprctl, jq, wl-clipboard (for Hyprland)

take-screen-screenshot.sh

Takes a screenshot of the entire screen (all outputs) using grim and saves it to ~/Pictures/Screenshots with a timestamped filename. Notifies the user upon completion.

Requires: grim, wl-clipboard (for Hyprland)

copy-screen-screenshot.sh

Takes a screenshot of the entire screen (all outputs) using grim and copies it directly to the clipboard for pasting with Ctrl+V. Notifies the user upon completion.

Requires: grim, wl-clipboard (for Hyprland)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages