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 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)
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)
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)
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)
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)
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)