Need a script to autopause clementine on skype call
I am a linux user (PcLinuxOs desktop 64bit kde5). I am looking for a script (bash or python) to autopause clementine (a music player) on skype call. VLC works: autopause on skype call and at the end resume). Clementine automute, but not autopause, on skype call.
I am absolute beginner with the scripts, so I need your help.
Bash comman to pause clementine is "clementine --pause", but witch command for "if" or "when" or "while"?
I believe that under Skype settings -> Notifications you can execute a script on a number of events, why not create a script to do clementine --pause under the incoming call Notification:
This User Gave Thanks to Chubler_XL For This Post:
Your help solved the bulk of the problem, but remain some things to perfect, i.e. how don't start clementine if before the skype call was stopped. How i.e. resume only if paused and not if stopped.
Now I put this script after the call:
Could you help me (another bash script)?
Tried with fg, but don't works.
Oh, you want it to do nothing if the music is stopped. OK. You'll need to ask clementine whether it's paused or not somehow. That's not something pgrep or fg can tell you, since clementine isn't actually "stopped" in a program sense, just a "not playing" sense.
Does clementine show any status information? I don't have any way to test it on this end.
Last edited by Corona688; 02-08-2017 at 12:15 PM..
I recently bought a new HP Spectre x360 laptop and installed Ubuntu 15.10. (I originally went with a later version but I was encountering lots of bugs. This version seems to be more stable for my system).
Things are mostly working okay, but not my webcam.
If I go to a website to test it, it's... (0 Replies)
I'm attempting to write a bash script that will create a network between virtual machines. It accepts three arguments: an RSpec that describes the network topology, and two list of machines (servers and clients).
I have a (working) Perl script that I want to call. This Perl script takes an RSpec... (6 Replies)
Hello All,
I need immediate help in creating shell script to call archivebkup.ksh script when archive file system capacity reaches threshold value or 60%
Need to identify the unique file system that reaches threshold value.
ex:
capacity
... (4 Replies)
Hello,
I want to design a script that will call an existing menu script and select options one by one and redirict the out put to a file.
For example;-
In the script MENU.sh there are 10 options i want to design a script MENU2.sh that will select option 2 3 4 6 7 10 and redirict the output... (4 Replies)
Hi!
I've downloaded the static version (skype_static-2.1.0.81.tar.bz2) and extracted it. Then I tried to start the Skype executable file (./skype) via the terminal but nothing happens.
root@xxx:~# ls
skype_static-2.1.0.81/ skype_static-2.1.0.81.tar.bz2
root@xxx:~# cd skype_static-2.1.0.81... (2 Replies)
Good morning. I am searching for "how-to"'s for some particular questions:
1. How to write a script in HP-UX 11.
2. How to schedule a script.
3. How to "call" scripts from the original script.
4. How to su to another user from within a script.
This is the basics of what the... (15 Replies)