Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
For anyone that uses mplayer to play their videos, but doesnt get enough usability from basic mplayer itself, and doesnt like gmplayer, or the other GUI's, I've just found that mplayer does actually do all I need, if I use mouse bindings. The bindings give me some extra quick functionality.
Heres my ~/.mplayer/input.conf
Quote:
MOUSE_BTN2 vo_fullscreen [[right mouse - actually toggles between full and window]]
MOUSE_BTN0 osd_show_property_text "${time_pos} - ${length}" 5000 [[left-mouse]]
MOUSE_BTN3 seek +70 [[scroll-wheel up]]
MOUSE_BTN4 seek -70 [[scroll-wheel down]]
MOUSE_BTN2-MOUSE_BTN0 Volume -10 [[hold down right mouse+click left mouse]]
MOUSE_BTN0-MOUSE_BTN2 Volume +10 [[hold down left mouse+click right-mouse]]
MOUSE_BTN0_DBL switch_ratio 1.3333 [[double-click left-mouse for 4:3 aspect]]
MOUSE_BTN2_DBL switch_ratio 1.7777 [[double-click right-mouse for 16:9 aspect]]
MOUSE_BTN1 quit [[middle-mouse click]]
The above is fairly explanatory.
[[]] is not needed in the above, it was just to show which buttons need to be used to get the desired result.
Here is again for easy copy/paste into '~/.mplayer/input.conf' if you want to try it quickly:
For fine-grained control of the volume up/down commands above, put this in your ~/.mplayer/config' file:
Code:
volstep = 20
You can find what your mouse button names are by opening a video in mplayer in a terminal, and clicking on the video, it should say if the key has a binding. If you cant get the button name that way, check the following website for ideas on what it could be.
Good to know. I rarely use mplayer, but it is good to know that I can set up mouse bindings. Normally, I like to control everything and anything with a command line
Normally, I like to control everything and anything with a command line
I like to go as low as I can, or rather, make things as simple as possible for those things I do frequently, but I find with watching videos, its easier for me to have mplayer associated to video files via my file manager (xfe).
The real problem I have been having is that I like to stick to GTK2 apps or commandline (burning discs with a small mkisofs & cdrecord script etc, I cant bear the bloated QT apps for such simple tasks, Im sure you can appreciate that as a fellow Slackware user), and that limits me in what GUI I use, and 'Gmplayer' really is fiddly and difficult to use, because of the small, fiddly GUI.
With these mouse bindings I can do all that and more with just the mouse. I really like it now. Its taken all the pain out of watching a video
Last edited by clifford227; 11-22-2011 at 08:47 PM.
Honestly dude, I use the command line for EVERYTHING I do..... I use Fedora on my laptop, which I use all the time, and I still use the command line more than I do in slackware..... But as far as watching videos, yes, I use a terminal to play and control them. Is that bad?
No its not bad if it works for you, I just wouldnt get the level of ease that I want from using the commandline for certain tasks. But definatley the CL is a very cool place to be, and a lot can be done from there. Its just that a file manager makes my life easier. I could do anything the FM does, on the commandline, but the FM does it faster for everyday tasks.
I think as regards the mplayer mouse bindings, they would compliment the playing of videos, wether started from the commandline or a file manager. Or you could use the key-bindings. I definatley think that one of those should be customized though if just using mplayer on its own.
Last edited by clifford227; 11-23-2011 at 06:43 AM.
Well I have a small multi-touch input pad, Bamboo Pen & Touch to be exact, and I use it for shortcuts as well (hardware buttons). I know, I'm on odd guy.... I just love to hack devices and make them do what I want them to do. On a side note, I rebinded the multimedia keys on my keyboard to take care of audio control, including changing songs and playing/pausing my music.
Well I have a small multi-touch input pad, Bamboo Pen & Touch to be exact, and I use it for shortcuts as well (hardware buttons).
So has this device replaced your mouse for everyday computing/web browsing? How does it work?
I have to say, I've had a horrible time with mice over the years, I cant get one that I feel comfortable with, the one I have at the moment is terrible.
Last edited by clifford227; 11-23-2011 at 06:51 AM.
Ehh, definitely not. I use it just as shortcuts, and to have fun with. And I'm not a gamer at all.... Well, yes, I do play minecraft, but I'm a geek, and I get to build T Flip-Flops out of redstone..... Doesn't get any better than that
But about the mouse.... I bought it because I had the same issues as you - I couldn't find a comfortable mouse. With the RAT 5, I can add counter-weights to weigh it down, and adjust the slider to fit in my palm better.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.