Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Odds and ends

    Reply
    Page 21 of 30 | Prev | 11   19     20   21   22     23   | Next | Last
    Addison | # 201 | 2011-11-11, 08:06 | Report

    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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Addison | # 202 | 2011-11-16, 07:43 | Report

    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.



    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    auouymous | # 203 | 2011-11-16, 08:28 | Report

    Originally Posted by Addison View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to auouymous For This Useful Post:
    Addison

     
    Addison | # 204 | 2011-11-16, 08:30 | Report

    ^ Okay.

    Off to do some Googling.

    Thanks!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Addison | # 205 | 2011-11-16, 23:34 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Addison | # 206 | 2011-11-16, 23:53 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Addison | # 207 | 2011-11-17, 01:31 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    auouymous | # 208 | 2011-11-17, 02:52 | Report

    Originally Posted by Addison View Post
    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to auouymous For This Useful Post:
    Addison

     
    Addison | # 209 | 2011-11-17, 03:00 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    auouymous | # 210 | 2011-11-17, 04:31 | Report

    Originally Posted by Addison View Post
    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to auouymous For This Useful Post:
    Addison

     
    Page 21 of 30 | Prev | 11   19     20   21   22     23   | Next | Last
vBulletin® Version 3.8.8
Normal Logout