LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-12-2014, 04:29 AM   #1
corstar
Member
 
Registered: Feb 2005
Location: Perth, Western Australia
Distribution: Manjaro Linux
Posts: 30

Rep: Reputation: 2
Bash open mplayer on all desktops (xfce)


Hi all,
I have a short script i made to open mplayer in a certain position and on top by default using mplayers built in "on top".

I've aliased it and open video files with it by default but I want to know if it's possible to force the video to play on all desktops without having to change it in the window menu or shortcut.

I should add that I'm using xfce on slackware 14.1

here's the snippet from the script..
Code:
BOTTOM_RIGHT_ON_TOP="-geometry 100%:100% -ontop"
mplayer ${BOTTOM_RIGHT_ON_TOP} "$1"

Last edited by corstar; 03-12-2014 at 04:53 AM. Reason: words
 
Old 03-13-2014, 07:31 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you should be able to achieve this by using wmctrl to set the mplayer window as "sticky".

Code:
wmctrl -r "MPlayer" -b add,sticky
Use xprop to check confirm the window name ("MPlayer" was just my guess).

HTH,

Evo2.
 
1 members found this post helpful.
  


Reply

Tags
bash scripting, mplayer



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Manjaro 0.8.9 review – KDE and Xfce desktops LXer Syndicated Linux News 0 02-26-2014 06:00 PM
LXer: LXDE and Xfce - the other desktops LXer Syndicated Linux News 1 12-19-2011 03:23 PM
[SOLVED] Switching desktops in KDE/Xfce. stf92 Slackware 5 08-25-2011 03:02 AM
LXer: PCLinuxOS Magazine: Gtk Lightweight Desktops: Xfce & LXDE Special Edition LXer Syndicated Linux News 0 11-19-2010 06:40 PM
Not your normal question here on KDE vs Gnome vs XFce desktops KevinAlaska Linux - Newbie 7 05-15-2007 03:33 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration