Tagged Questions
2
votes
4answers
142 views
xsel < /tmp/xselection not working in script
I'm trying to use the following script:
#!/usr/bin/env bash
# Edit xselection in gvim
xsel > /tmp/xselection
gvim /tmp/xselection
xsel < /tmp/xselection
But the final line does not seem to be ...
2
votes
4answers
4k views
How do I find the X window ID under the mouse pointer in bash?
From a bash script, is there some way to get the ID of the X window under the mouse pointer?
(edit) I need the process to be non-interactive.