AgentSkillsCN

linux-system

Linux 系统实用程序——桌面通知、窗口信息等

SKILL.md
--- frontmatter
name: linux-system
description: Linux system utilities - desktop notifications, window info, and more
metadata: {"requires": {"bins": ["notify-send", "xdotool"]}, "os": ["linux"]}

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-send requires a desktop environment with notification support
  • xdotool requires X11 (may not work on Wayland)
  • xclip needs to be installed: sudo apt install xclip