|
Page 3 of 8 |
|
Prev |
1 2 3
4 5
|
Next
| Last
Re: Odds and ends
Hmm, maybe "su - user -c 'xmmsctrl whatever'" in the script will work
|
Re: Odds and ends
Do you mean writing it exactly like this?
if [ "$1" = "in" ]; then 'su - user -c 'xmmsctrl next'' That gave me nothing as well. |
Re: Odds and ends
Try replacing the script with this:
Code:
#!/bin/sh |
Re: Odds and ends
Be sure to stop that screenlock program if you try out the new ASUI release. :)
|
Re: Odds and ends
Quote:
What are you using this for stokes? |
Re: Odds and ends
TBH, I have no need for this. Does the script have the executable bit set? If you're running screenlock from the Terminal, you should see the output of xmmsctrl as it's running.
Anyway, I'd forget about this and update ASUI :) |
Re: Odds and ends
This is how I have it set.
/usr/bin/xmmslock http://img199.imageshack.us/img199/3...1091510524.png /home/user/xmmskey http://img828.imageshack.us/img828/8...1091510584.png |
Re: Odds and ends
Just a thought: make it setuid user and omit the "su - user -c" business.
|
Re: Odds and ends
@Addison
That looks correct... I guess I should buy a new battery so that I can properly test xmmsctrl myself... auouymous seems to be using the same commands for his new ASUI feature. @lma I thought about that, but (and I haven't checked so I may be wrong) I need to be root to use the /dev/input interface directly, so I'd have to fork I think and I'm lazy |
Re: Odds and ends
Is the "setuid user" permissions correct on the way I have it now, lma?
|
Re: Odds and ends
You're not lazy stokes.
I'm actually quite humbled by how much you still do here. :) |
Re: Odds and ends
Thanks, Addison. If you're unwilling to try a's (gah, your user name!) ASUI feature, I'll try and directly implement some logic into the program to change XMMS so that we don't need to mess around with this script stuff, tomorrow
|
Re: Odds and ends
Ooooooooh!
I was running xmmslock as user from Xterm, not as root. With lma's idea, I now get /home/user/xmmskey: line 6: xmmsctrl next: not found /home/user/xmmskey: line 6: xmmsctrl previous: not found /home/user/xmmskey: line 6: xmmsctrl next: not found /home/user/xmmskey: line 6: xmmsctrl previous: not found /home/user/xmmskey: line 6: xmmsctrl next: not found So give me a few to try your previous suggestions stokes. I've got a good feeling about this now! :D |
Re: Odds and ends
Squeeeeeeeeeeee! :D
Code:
#!/bin/shSuch happy joy! :D |
Re: Odds and ends
Okay.
So I'm now at trying to launch both of these together without the need for Xterm /usr/bin/xmmsstart Code:
#!/bin/shIf I just say xmms it won't load the correct graphics and settings for the player. Also, xmmslock is only half working, screen wakes then shuts off, but no track functions. I'm running my xmmsstart as root in Personal Launcher. I'm super confused on all of these permissions. Any help? :) |
Re: Odds and ends
@ addison, Do you not use ASUI? Its new audio lock lets you bind commands to all hardware keys, not just the zoom keys.
|
Re: Odds and ends
ASUI seemed so complicated the few times I've read through and tried to understand your thread.
I'll install it tonight. But be warned, I tend to ask quite a few questions on most things. :D |
Re: Odds and ends
Quote:
ASUI replaces the SystemUI menu that appears when you press the power button. It also replaces the battery applet, the bluetooth applet, the wifi applet and the load-applet applet. All of its features are explained on the website. Also be sure to run the asui-settings program and explore each section (changes take place immediately). You will need to run "asui dit; asui dis; asui da" after installing to download and install the test version which has the new audio lock button. And find my latest post in that thread for instructions on adding an xmms profile. Not complex at all, unless it breaks your system. ;) |
Re: Odds and ends
Joy!
I found out that as long as modest isn't running and you don't go to Communication --> Email, you can change the duration on how often new emails will scanned for notification. :) So could some please give me the command line that does the same as this in Configuration Editor? apps-->modest-->update_interval = 1 and apps-->modest-->auto_update = true Like in this format as an example... gconftool-2 --type int --set /apps/osso/applet/osso-applet-display/turn_off_display 6000000 Cheers everyone! |
Re: Odds and ends
*facepalm*
Why did I even bother asking? It was right there in front of me. gconftool-2 --type int --set /apps/modest/update_interval 1 gconftool-2 --type boolean --set /apps/modest/auto_update True Now any new emails or SMS messages will instantly notify me within the minute. Awesome. :) |
Re: Odds and ends
Quote:
Just because I turn on the Auto Update, which it always will do, sometimes it seems like it's not actually running. Do I need to launch some process to kick start this thing going every time? I would love to hear back from someone on this. :) |
Re: Odds and ends
It's running perfectly right now and giving me instant notifications for both email and SMS messages.
Could someone stab a guess as to what process is running this update check and how to kick start it without going to the Application-->Email program? 830 user SW< 9636 339 11.1 7.5 matchbox-window 6584 user RW 3944 6581 5.5 3.1 top 786 root SW< 11836 339 4.6 9.3 Xomap 1025 user SW< 45736 989 3.7 36.0 maemo-launcher 6580 user SW 36276 989 3.7 28.5 maemo-launcher 3699 user SW< 94904 989 0.9 74.7 maemo-launcher 6573 user SW 67364 1319 0.0 53.0 browserd 1390 user SW 51404 1 0.0 40.4 gnome-vfs-daemo 1319 user SW 40568 1 0.0 31.9 browserd 1204 user SW< 33180 989 0.0 26.1 maemo-launcher 989 user SW< 21292 1 0.0 16.7 maemo-launcher 1303 user SWN 17108 339 0.0 13.4 metalayer-crawl 1297 user SW 16640 339 0.0 13.1 mediaplayer-eng 3014 root SW< 14672 339 0.0 11.5 advanced-system 1114 nobody SW< 8080 339 0.0 6.3 dnsmasq 971 root SW< 7888 339 0.0 6.2 ke-recv 1208 user SW< 7444 339 0.0 5.8 osso-media-serv 826 user SW< 7272 339 0.0 5.7 sapwood-server 1258 user SW 5260 339 0.0 4.1 alarmd 1276 root SW< 5112 339 0.0 4.0 hulda 905 root SW 4836 339 0.0 3.8 multimediad 6581 user SW 4784 6580 0.0 3.7 bash |
Re: Odds and ends
Quote:
|
Re: Odds and ends
Thanks A.
I just reflashed yesterday and totally forgot about metalayer-crawler. |
Re: Odds and ends
Yes! I think I definitely got it now. :)
It was just a matter of stopping MCE, changing the notification values, then restarting MCE and restoring the brightness settings along with auouymous' set-backlight script. Turning on 1 minute notifications: Code:
blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`Turning it off: Code:
bank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`Oh, and auouymous, I don't use any of these mail apps either. I'm only using it for the LED alerts so I no longer have to check my Gmail account anymore. :) |
Re: Odds and ends
Quote:
|
Re: Odds and ends
No. Not at all. In fact, I wish that I would have jumped on your incredible app a long time ago! :)
What happened was that I got a little carried away and kept installing junk until I was left with only 1 kb in flash memory. Oops! :D By the way, if there's any way to incorporate the above scripts into ASUI, that would be fantastic. It basically works just like Google Talk on my Windows PC. If you forward your Google Voice messages to your gmail account, you'll receive instant notifications on all new messages, SMS, Voice Mail, missed calls, and emails. You could do this before, but now, you no longer have that 5 minute delay, and when texting with someone, this makes a huge difference. :) |
Re: Odds and ends
Quote:
After 0.6.0 is released I plan on adding 4 (maybe more) half widgets (the clock is a half widget, volume is a full widget) to ASUI that can each hold 2 buttons. I will also be adding 4-6 command buttons that you can set commands to run as root or user and give them a name and maybe an icon. You'll be able to move any button between the button bars and the new button widgets. Then you can put your scripts in files and call them from buttons in ASUI. :) the number of button half widgets and command buttons can easily be increased if anyone thinks there should be more. |
Re: Odds and ends
That's a great idea!
Most likely I'll use those slot widgets to change different profiles for Xbindkeys. I tend to use Quickswitch the most. http://talk.maemo.org/showthread.php...ht=quickswitch But the hardware keys sometimes need to go back to default when playing music. I also have a setup for right clicks to be used with SCUMM and Dosbox. So yeah, this will definitely come in handy for me. :) |
Re: Odds and ends
This one should be easy. :)
In my script I'm doing a bunch of junk and then at the end of it I'm launching /opt/adom/adom The thing is, this adom file reports not being able to find qemu-i386. http://img37.imageshack.us/img37/887...1092500493.png If I do this in Xterm cd /opt/adom ./adom this works just fine. How can I get this same result in my script? |
Re: Odds and ends
Quote:
The program is looking in present working directory for its files, so you must run the program from within that directory. Shell scripts use the same commands you type on the command line, the first line spawns a shell and pretty much dumps the contents of the file into it. |
Re: Odds and ends
I am too stupid to live! *lol*
|
Re: Odds and ends
Hey auouymous.
Could you take a look at this thread here? http://talk.maemo.org/showthread.php?t=67737 If there's anyone who can figure out how to get qemu working on the older tablet, it would be you. :) I don't get it. Linuxeventually has it running on his end. The poop? I don't understand why it won't work for me. Anyway, if we do get this installed correctly, what all doors will this open up for us being able to use i386 binaries? |
Re: Odds and ends
Quote:
|
Re: Odds and ends
^ Cute. *lol*
|
Re: Odds and ends
|
Re: Odds and ends
^ I never liked you. :)
|
Re: Odds and ends
So I'm trying to do a really fast zoom feature when using Tear.
Mostly for sites such as google.com/voice/m In Personal Menu I have two icons I can launch Zoom in: xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' & xte 'keydown F7' 'keyup F7' Zoom out: xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' & xte 'keydown F8' 'keyup F8' It works great. What I have to do is put Tear in window mode, click Personal Menu, then the icon. Is there a way to do this with the zoom in and out keys? Binding a key to launch such a script and then using xte to send out these signals is an endless loop error I believe. Any suggestions? |
Re: Odds and ends
I have a question. How can I get xbindkeys to start on boot rather than having to open xterm?
|
Re: Odds and ends
Yeah, there are two things I would like to start at boot:
This is needed every time on boot for Xkbd to be stable: gconftool-2 --set -t bool /system/osso/af/keyboard-attached true && sleep 2 && gconftool-2 --set -t bool /system/osso/af/keyboard-attached false & xbindkeys I never figured out how to do this so I usually try to never reboot. :) |
| All times are GMT. The time now is 21:02. |
Page 3 of 8 |
|
Prev |
1 2 3
4 5
|
Next
| Last
vBulletin® Version 3.8.8