Using ffplay to open a video at a specific window location [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I need to use ffplay to open a video file, but i need to pass it x,y coordinates so i can have it play the video where I want it to.
As default ffplay simply opens the video at the top left corner.
I've tried searching for options in ffplay but i couldnt find it.
Also tried using window managers like fluxbox, again couldnt find the command)
Please note that I need to run it as a shell command.
Any Help would be appreciated.
Thanks in Advance

I think it is a job for xdotool.
Devilspie can be used also.
For instance, if you play best_movie.avi in ffplay, moving the window will be as easy as:
xdotool search --name best_movie windowmove 100 100
HTH

Related

feh imageviewer endless cycle [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 11 months ago.
Improve this question
I want to build something like a digital photoframe with my Raspberry Pi.
On the Raspberry is RaspianOS and the imageviewer feh (version 3.6.3) installed.
As I read from the documentation, I expect this command
feh -qrYzFD10 ~/Pictures to display images in an endless loop, so after the last image the slideshow restarts with the first image.
But if i run this command, the slideshow stops after the last image. In the documentation I could only find the parameter --cycle-once which stops the slideshow after the last image, but i want it to be endless.
Did I miss something here?
like David guessed it above, there was some issue with an image.
I deleted the first non shown image and it worked.
There was no error shown, only hint was the image was really big.

Starting a process with a key stroke in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I want to ask something that just came to my mind. I search google and stackoverflow and couldn't find a answer to my question, if there is any, please inform me.
Is it possible to bind a process to a combination of key strokes? For example, can i start my program with simply pushing the buttons ctrl + k or it can be any other function keys. Is it possible to start a process like that? I know that i must compile kernel and boot up again if it is possible but i couldn't find the place where the meaning of key combinations stored.
Thanks for helping.
you can use bind for this, i.e. to run pwd when F12 is pressed
bind '"\e[24~":"pwd\n"'
move program you want to run to /usr/bin or another directory in the stadard path use the path in the bind command
bind '"\e[24~":"absolute_path_to_program/program"'
https://unix.stackexchange.com/questions/89622/how-to-execute-a-script-in-shell-when-a-shortcut-key-is-pressed

Mirroring Terminal on Linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
When giving a talk I usually use two screens: One is the wall showing the presentation to the audience, the other one is my Laptop screen with a mirror of the presentation, my speakernotes etc.
During the talks I pretty often do demos using a terminal. This requires that
I turn around to check at the wall if everything works correctly. To avoid this I would like to have two terminal window, one on my laptop screen where I am typing and a mirror of it which is shown to the audience at the second screen. How can I do this?
Take a look to the screen program. It does perfectly what you are trying to do. The following link gives a simple example of screen usage:
Start a new screen session with session name:
screen -S <name>
list running sessions/screens:
screen -ls
Attach to a running session:
screen -x
Attach to a running session with name:
screen -r session_name
Screen quick reference: http://aperiodic.net/screen/quick_reference
More links:
https://www.rackaid.com/blog/linux-screen-tutorial-and-how-to/

How to log terminal keystrokes in ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I want to log whatever is happening in my terminal in a text file . I want to save all session information in the log file. We can do this in putty. But I dont know how to achieve the same in simple terminal in ubuntu. Also, is it possible to use putty to open a terminal for localhost? I tried doing that . But does not work.
You can record your terminal session (assuming you're using Bash) by doing script.
You probably want script -k which records input and output.
So in all, doing something like script -k logfilename you will get what you want!

Invoke shell script by double clicking desktop (linux, ubuntu) [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Ubuntu Trusty Tahr 14.04
I would like to replicate a feature from a program i used to use in windows. stardock fences allowed me to hide all of the icons (i wanted to) on my desktop by double clicking, and then reveal them by double clicking again.
I believe something along these lines:
gconftool-2 /apps/nautilus/preferences/show_desktop --type bool --set false
from this page (ubuntu forums)
, is what I am looking to do. my question then becomes:
How do I invoke a shell script by double clicking on the EMPTY desktop?
Yes, I know I can use an icon instead. I want the desktop. I don't even have any icons I have to have on the desktop... Oh well. I would think it's possible and I would like to learn how. The feature itself is not the most important, but when I came to the question of HOW and had no answer - that's a problem ;)

Resources