Changes: - Added 80+ scripts with organized structure - payloads/ for third-party pentesting tools - pentesting/ for custom security scripts - Daily drivers remain flat for fast access - Converted wes() function to proper script - Removed .sh extensions from pentesting scripts - Cleaned up aliases (removed 31 redundant lines) - Added kanata/, build artifacts to gitignore - Removed old fre.sh scripts and empty a.out - Updated configs: helix, tmux, zsh, ulauncher, redshift Security: All sensitive data excluded via gitignore
31 lines
779 B
Bash
31 lines
779 B
Bash
#!/usr/bin/env bash
|
|
# Clipboard helper functions for scripts
|
|
# Source this in scripts that need clipboard access
|
|
|
|
# Get clipboard content
|
|
clip_get() {
|
|
if command -v xsel &>/dev/null; then
|
|
xsel --output --clipboard
|
|
elif command -v xclip &>/dev/null; then
|
|
xclip -selection clipboard -o
|
|
elif command -v pbpaste &>/dev/null; then
|
|
pbpaste
|
|
else
|
|
echo "Error: No clipboard tool found (install xsel or xclip)" >&2
|
|
return 1
|
|
fi
|
|
}
|
|
|
|
# Set clipboard content
|
|
clip_set() {
|
|
if command -v xsel &>/dev/null; then
|
|
xsel --input --clipboard
|
|
elif command -v xclip &>/dev/null; then
|
|
xclip -selection clipboard
|
|
elif command -v pbcopy &>/dev/null; then
|
|
pbcopy
|
|
else
|
|
echo "Error: No clipboard tool found (install xsel or xclip)" >&2
|
|
return 1
|
|
fi
|
|
}
|