Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

We need the ability to copy text (with a checkbox in the widget settings that enables/disables this feature) #46

Open
DAVIDhaker opened this issue Dec 14, 2023 · 4 comments

Comments

@DAVIDhaker
Copy link

No description provided.

@davidosomething
Copy link

fwiw, you can pipe command output in click, e.g.

for my custom tailscale widget, i have the click action set to

ip=$(tailscale ip --4 2>/dev/null) && echo "$ip" | xsel --clipboard && notify-send "Copied ${ip}"

which copy my tailscale ip to the clipboard using xsel, and send a desktop notification using notify-send

@DAVIDhaker
Copy link
Author

@davidosomething, yes. Good idea, but how to be, when i need to copy random parts/string from text?

@davidosomething
Copy link

grep to match the pattern and pipe the grep results, you can find grep commands for matching urls on stackoverflow for instance

@guss77
Copy link
Contributor

guss77 commented Feb 29, 2024

Suggested implementation in PR #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants