Good Morning

Amarok 2.x Scripts

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 63.3%
Description:

This is an alarm script for Amarok.

You can schedule an alarm for every day of the week.
Once the alarm script is enabled, it remains enabled, even after Amarok restarts.
The script will be disabled only when you manually disable it.

The configuration of the script is saved each time enable/disable is clicked.



Usage
Wake up time
[li] Usually
This is where you schedule alarm time for every day. If the day is not
checked, no alarm is scheduled.
[/li]
[li] Exceptionnally
You can setup a "one-shot" exception: the script will ignore every
scheduled alarm and wake you up at the time specified. After the exception
happens, it is automatically disabled, and the script goes back to the
"usual" alarms.
[/li]
Music
[li] Track
You can decide which track should be played:
- First: first track of the playlist.
- Next: next track relative to current.
- Last: last track of playlist.
If unchecked, script will play the current track.
[/li]
[li] Progression
You can set the track progression. This will change the track progression
setting of the playlist.
If unchecked, the current track progression is used.
[/li]
Volume
[li] Volume
Let you decide which volume should be used when playback starts.
If unchecked, current volume is used.
[/li]
[li] Fade-in
Decide if you want any fade-in, and how long it should last.
If unchecked, no fade-in.
[/li]
Computer
[li]In case your computer will be suspended to RAM at the alarm time, you must
check this box. This will schedule a wake-up of the computer through the RTC.
You must specify the path of the shell script that will do this action.
Two scripts are provided for that (see below).
[/li]


About the wake-up computer feature
1. Get it to work
For this feature to work, a few things needs to be done:
[li] Install the rtcwake package.
[/li]
[li] Configure it so that you can run it without root permission.
There's two main ways to achieve that:
- You can do that by configuring your sudoer file.
In this case, the rtcwake script to be used is rtcwake-sudo.sh
- You can also setuid the rtcwake binary.
In this case, the rtcwake script to be used is rtcwake-setuid.sh
- Maybe it's possible to do that another way.
In this case, you also need to write your own rtcwake script.
[/li]
[li] At last, test it once to see how it goes.
[/li]

2. If you want to test it
rtcwake will schedule the wakeup of your computer ONE MINUTE before the alarm time.
So, if you're just trying the script and want to see if rtcwake works, give it
at least two minutes, so that you have time to suspend your computer before
the RTC tries to wake it up.

3. Suspended to disk
For this to work, you need a little bit of setup:
[li] Be sure that you have a swap partition, check that in /etc/fstab.
[/li]
[li] Assuming that your swap lives on /dev/sdaX, add the following parameter to your
kernel parameters: "resume=/dev/sdaX".
If your bootloader is GRUB2, you need to edit the file /etc/default/grub.
[/li]

4. About dual-boot GNU/Linux - Windows
The RTC (Real-Time Clock) is a hardware clock that keeps time on your computer
when it's off.
With rtcwake, we can ask the RTC to wakeup computer at a given date and time.
Usually, GNU/Linux keeps the RTC in UTC time, while Windows keeps it in local time.
GNU/Linux is able to detect that, this information is written in /etc/adjtime.
So, if you have a dual-boot GNU/Linux and Windows, everything should be fine.
But I never tested it, so I can't promise anything !
If you're local timezone is, let's say, 2 hours ahead of UTC, and you notice that
the computer is awakened 2 hours ahead the time it should, you know you've got a
problem with RTC.

5. Daylight saving changes
The two days of the year when daylight saving changes should cause no problem
to the script.



Thanks
Menu icon comes from the Klear KWeather icon set:
http://kde-look.org/content/show.php?content=39988



Git repository
https://gitlab.com/elboulangero/amarok-good-morning
Be the first to comment
12345678910
2
product-maker e1nste1n Apr 13 2013 9 excellent
product-maker msledziona Apr 13 2013 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.1
updated Mar 08 2015
added Apr 13 2013
downloads 24h
0
page views 24h 1
System Tags addon