Linux System Skill
Utilities for interacting with the Linux desktop environment.
Desktop Notifications
Send a desktop notification:
bash
notify-send "Title" "Your message here"
Active Window Info
Get the currently focused window:
bash
xdotool getactivewindow getwindowname
Clipboard
Read clipboard:
bash
xclip -selection clipboard -o
Write to clipboard:
bash
echo "text" | xclip -selection clipboard
Screenshot
Take a screenshot of the entire screen:
bash
gnome-screenshot -f /tmp/screenshot.png
Take a screenshot of a specific window:
bash
gnome-screenshot -w -f /tmp/window.png
Notes
- •
notify-sendrequires a desktop environment with notification support - •
xdotoolrequires X11 (may not work on Wayland) - •
xclipneeds to be installed:sudo apt install xclip