| Prev | 11   19     20   21   22     23   | Next | Last
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Odds and ends (https://talk.maemo.org/showthread.php?t=74915)

Addison 2011-11-11 08:06

Re: Odds and ends
 
I'm launching SCUMM with an invisible touch screen area on the entire right side of the game screen.

When clicking on this area, it brings up the big keyboard for input.

Here's my launch script.

#! /bin/sh

rm /tmp/xkbd2.pid
killall xbindkeys
xbindkeys -f /home/user/.xbindkeysrc_scumm
xkbd -geometry +720+65536 -k /media/mmc2/N800/Keyboards/scummside.xkbd & /opt/scummvm/bin/scummvm
killall xbindkeys
killall xkbd
xbindkeys


In Personal Menu, I have

Command to execute
/usr/bin/scummkeyboard

This works just fine but it doesn't get added to the Task Manager.

If I hit the Home key, it doesn't show.

The only way to go from one app and back to SCUMM again is by using that old Quickswitch script "matchbox-remote -next" that I have set with my Escape key.

Any ideas on how to get my startup script to have it's own place in the Task Manager?

Addison 2011-11-16 07:43

Re: Odds and ends
 
Well, I think I'm almost out of questions since I'm losing most of my steam here. :)

But for now, I really would like this one answered if possible.

I finally have a great Xbindkey setting.

Code:

"matchbox-remote -next"
Escape

"xmmsctrl next"
F8

"xmmsctrl previous"
F7

"xmmsctrl pause"
F6

This will immediately switch between apps using the Escape key, plus I can control tracks in Xmms with the Zoom keys and also Pause and Play songs with the Full Screen button, even when Xmms is minimized off the screen.

Very nice.

However, I'm trying to package this all together into one script.

This is what I currently have.

Code:

killall xbindkeys
xbindkeys -f /home/user/.xbindkeysrc_xmms
xmms -p
killall xbindkeys

It sets the keybindings, fires up Xmms and immediately forces it to play music.

This works, but it's really gross looking.

http://img577.imageshack.us/img577/9...1111602164.png

Not all of the settings get loaded when using "xmms -p".

In Personal Menu, the default is to launch it like this.
bin/sh -c "LC_MESSAGES=C LANG=C /usr/bin/xmmsctrl launch main 0 equalizer 0 play_list 0 main 1"

This however doesn't do anything if I insert it into my script.

What I would love is to launch Xmms and have it minimized, display the Playlist Editor in Playlist WindowsShade mode, and to have it immediately start to play the current play list.

After you close Xmms, to have it also kill xbindkeys as well.

Any help?

This one has me confused.

auouymous 2011-11-16 08:28

Re: Odds and ends
 
Quote:

Originally Posted by Addison (Post 1124238)
Code:

killall xbindkeys
xbindkeys -f /home/user/.xbindkeysrc_xmms
xmms -p
killall xbindkeys

bin/sh -c "LC_MESSAGES=C LANG=C /usr/bin/xmmsctrl launch main 0 equalizer 0 play_list 0 main 1"

The problem is that xmms halts the script until it completes (is terminated) but 'xmmsctrl launch' forks xmms in the background and then quits causing the keys to be unbound immediately.

Google for "man xmms" and play around with its options. If it doesn't do everything that xmmsctrl does then try the following in your script:

...
(sleep 2; xmmsctrl ...options...) &
xmms
...

That will fork another shell that sleeps for 2 seconds and then runs xmmsctrl. While it is sleeping your script will launch xmms so don't tell xmmsctrl to launch it. If it takes more than 2 seconds for xmms to launch then increase the sleep. You can combine xmmsctrl with the xmms options to get the window mostly in whatever state you want and then xmmsctrl can finish off with anything not supported by the xmms options.

Addison 2011-11-16 08:30

Re: Odds and ends
 
^ Okay.

Off to do some Googling.

Thanks! :)

Addison 2011-11-16 23:34

Re: Odds and ends
 
Okay.

There's really no launch options with Xmms, just key bindings.

Example:
Playlist winshade mode is Shift + Control + w

Here's my current script.

Code:

killall xbindkeys
xbindkeys -f /home/user/.xbindkeysrc_xmms
(sleep 4; xmmsctrl launch) & xmms
killall xbindkeys
xbindkeys

I'm still getting the same behavior as my previous screenshot.

So that script, xmms, and xmmsctrl launch in xterm, none of these will load the menu font.

Ah nuts.

Addison 2011-11-16 23:53

Re: Odds and ends
 
Well, in the menu system, if I click on Playlist Windowshade mode to keep that setting, this does the trick.

xmmsctrl launch main 0 play_list 1 play

But still, no menu font for some reason after launching it this way.

Addison 2011-11-17 01:31

Re: Odds and ends
 
One other thing.

xmmsctrl title

Is there anything I can do with this?

Like have the output go to the desktop background and being able to set the font, size, and color or something?

That would be awesome. :)

auouymous 2011-11-17 02:52

Re: Odds and ends
 
Quote:

Originally Posted by Addison (Post 1124715)
Code:

killall xbindkeys
xbindkeys -f /home/user/.xbindkeysrc_xmms
(sleep 4; xmmsctrl launch) & xmms
killall xbindkeys
xbindkeys


Do NOT use 'launch' in xmmsctrl, the 'xmms' command launches itself. Put all other commands after xmmsctrl, when the sleep expires xmms should be running and xmmsctrl will configure it.

Addison 2011-11-17 03:00

Re: Odds and ends
 
Okay.

I see what you're saying.

2 seconds is too short but 3 seconds does the trick.

Code:

(sleep 3; xmmsctrl main 0 play_list 1 play) & xmms
Still no font though in the menu options after this.

I don't get it.

auouymous 2011-11-17 04:31

Re: Odds and ends
 
Quote:

Originally Posted by Addison (Post 1124811)
Still no font though in the menu options after this.

I don't why the font isn't showing but if it works from personal menu with the two exports then try using them in the script.

Code:

(sleep 3; xmmsctrl main 0 play_list 1 play) &
LC_MESSAGES=C
LANG=C
xmms



| Prev | 11   19     20   21   22     23   | Next | Last
All times are GMT. The time now is 21:02.

vBulletin® Version 3.8.8