![]() |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Yeah, I've been trying to follow all the GTK/PyGTK versioning. I think PyGTK tries to jibe with GTK when ever possible. According to PyGTK documentation, the GtkStatusIcon is new in in 2.10.
Well, etch is all-GTK-things 2.8 and lenny is all-GTK-things 2.12. And that seems to be the story of Maemo's So, there's this deprecated egg.trayicon stuff that can probably be stolen from Sonata. But that's one serious strength of Python: the friendliness of the dynamic library binding: "Didn't find GtkStatusIcon, why not try egg.trayicon." Very cool. I'll take a looksy at this egg.trayicon stuff. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Curiouser and curiouser. I ran "stalonetray" from the debian command line so I could debug what was happening. When I ran qole.py in Maemo, nothing showed on any of the supposed "system trays". However, stalonetray announced that it was adding an icon, and when qole.py finished, stalonetray announced that it was removing the icon. So what's going on? Perhaps the icon bitmaps are not available to the chroot tray, so it displays a blank icon?
I want to try either (1) a standard Gnome icon that is available in a standard Debian environment or (2) copy the necessary icons to the chroot. I wish I knew some of this stuff. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
by the way, Tear works much better in LXDE than MicroB (the built-in browser). It has an address bar and everything.
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Are you seeing it make space for a blank icon? If so, that might be a good sign. I'm having alpha channel issues on my Kubuntu machine so I made an xpm.py that replaces the alpha channel with black. But if things are slightly working, you should at least see the red icon stuff. At the moment, my Easy Debian is in a bare-bones state so I won't be able to test there till later.
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Dude, it's working. I'm running stalonetray in Easy Debian as:
stalonetray --geometry 124x40 It defaults to 124x24 and the icons are 40x40. Give it a try. EDIT: The following is kinda cool: stalonetray --geometry 40x40+30+0 -i 40 -t & |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
thanks daperl, that worked. Both for stalonetray and for the LXDE tray, too. One needs only increase the height or width of the tray to incorporate 40x40 icons and they show correctly.
Now to have the program interface with battery-status. Or, perhaps more precisely, now to either (1) learn python or (2) beg shamelessly for you to do it. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
hal-get-property --udi /org/freedesktop/Hal/devices/bme --key battery.charge_level.percentage I think this is what Nokia uses, but your dialog had precision to one decimal point. Do you have a preference? |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Or in Easy Debian maybe it's something like:
sudo chroot /media/mmc0p2 hal-get-property --udi /org/freedesktop/Hal/devices/bme --key battery.charge_level.percentage EDIT: While inside Easy Debian, I had to do the following for this to work: sudo mount --bind /tmp /media/mmc0p2/tmp |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
1 Attachment(s)
I'm using the command-line 'battery-status' (see above posts for details).
I shocked myself. Me and Google, we modded your demo to use battery-status. It works. But, like everything I do, it stinks of Hack. I'll post a screenie in a sec.. UPDATE: Here it is: http://farm4.static.flickr.com/3430/...c729abd1f4.jpg UPDATE2: daperl, do you think there'd be any way to simply tweak Advanced Power to run in a non-maemo system tray? |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
I have no idea what a sandbagger is; I haven't been anywhere near Fargo ND.
EDIT: LOOKED IT UP! Hahaha, "To downplay or misrepresent one's ability in a game or activity in order to deceive (someone), especially in gambling" ... I told you I used Google, I looked up how to run a shell command in Python; 5 forum threads later, I found my answer. Cut and paste, move on. I needed to find out how to look for a string inside a string. That was pretty fast. I then found I had to convert my string to an integer. This time, it only took two forums and a reference work. I then realized you had only 5 pictures (I still have no idea how you make text files into pictures, that's cool), so I had to take my percentage number and divide it by 20 to get a number /5. Oh, and I had to figure out how to do if-then statements. I discovered that indenting is important in Python. So anyway, if hacking your script makes you think I'm a master programmer or something, that is hilarious! Original post continues below: But I never claimed I was a programmer. I just hack and spit-and-string whatever it takes together to make stuff work. Sometimes that means ugly dialogue boxes, other times that means derision from Real Programmers... If I shouldn't have messed with your code, I'm sorry... NOTES: - I can't get that hal method to show anything except '100'. - I wish you could show me how to make a box pop up when you click on the icon... - After the warning box, the icon disappears! |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Sorry, it was actually just a sad attempt at humor. I'm going to PM you.
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
1 Attachment(s)
Quote:
Not so funny if you actually have access to my machines. Quote:
look at /usr/share/icons/40x40/hildon/qgn_stat_battery_*.png When the status bar battery icon looks like qgn_stat_battery_full75.png that value should/might be 75, etc. There's more to it than all this but I would have to dust-off some code to give you a better explanation. So, more on that later. Quote:
Attachment 3284 Popup menus are also an option you can consider. Quote:
I surveyed Advanced Power and Advanced Power Monitor. My opinion is that, because it's in Python, you have an opportunity to push back robust changes to that project in order to maintain one codebase. Maybe more a wish than an opinion. I have plenty more to say on these topics, especially about hildon in non-hildon environments, but I'm too tired at the moment. And there are 6 icons. There backwards and their indexing is 0 based. Look at xpm.py. I created them with "Save As..." using the gimp. I then parse them with an awk script 'cause I don't know anything about plugins for that program. More later. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Qole,
When running Skype under Easy LXDE have you succeeded in getting the microphone to work? Audio out works fine, but the microphone is dead. --denis |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
daperl: The best thing about my N800 is that it is an ultra-portable Cave. I can retreat to my cave anywhere
Oh, and can you show me how to get a menu to pop up when you tap a system tray icon? delaroca: I confess that I haven't tried Skype (or anything else that uses the mic). Perhaps jaeezzy's suggestion about not disabling multimediad might fix things for you... |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
1 Attachment(s)
Quote:
Quote:
self.statusIcon.connect('activate', self.on_activate) Quote:
sudo apt-get install gawk If that fails, move on. Then call the script like this: awk -f batt-stat.awk *.xpm > xpm.py |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
A conventional popup menu is not a problem, but can you be more specific about your expectations. In the meantime, I will create generic, conventional infrastructure by mocking something up. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
Thanks, --denis |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
I've started using the battery applet and my new wlan applet in my Mer replacement desktop. Come over here to see the screenshots.
daperl, I would like to know how to make a dropdown menu appear from an applet icon, similar to the one that appears when you click the Home icon. I am thinking of making a list of applications in a text file, with two "fields" per line, something like: label 1, command 1 label 2, command 2 Then I could use the CSV reading module to read in the values and build the menu from that... I want an applet to replace the hideous menu that I'm using. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
Regardless if you're looking for tap-and-hold functionality, this code will be easy to tailor to your needs. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
daperl: So I've decided to jettison all sandbags and teach myself python.
I've stolen code from everywhere (including dbus-switchboard) and I've got my dropdown menu working! I should have something to show very soon. EDIT: Screenshot http://farm4.static.flickr.com/3305/...31830aaf_o.png |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
daperl: Oh I would very much like to get non-stock icons in there.
I think the next step would be to figure out how to run .desktop files. Is there a command line that takes a .desktop file as a parameter and then executes the .desktop file? And yes, nested menus are the logical continuation of this project. If I do a good enough job here, this could be useful in many places: it is a generic GTK python app that puts a menu in the system tray which can run arbitrary commands... I can see a few uses for that beyond my chroot-busting use-case. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Quote:
Code:
#! /usr/bin/env python |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
hi qole, is there any upgrade for the lxde replacement??? I've discovered it few hours ago, but Trying it is very funny and I like t alot;
is there any progress about the battery icon, the maemo menu and the problems about sound and microphone??? thx EDIT: can you link me a guide to have sounds working please??? because I cannot have the working from debian (the ones from maemo works well) EDIT2: any way to stop the script to stop the media service???? |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
cannot help me?
when I plug the headsets, they are not recgnized under LXDE!!!! the sistems goes via speaker as if I've never plugged the headsets!!! or better, If I start lxde with eadsets plugged, the system remains "Plugged" evenif I unplug them (so speakers does not work) and the viceversa, If i start without, the eadsets will not work!!! help!!!! |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
pinguino89: Try the gnome-alsa-mixer and try changing the checkboxes in the bottom area.
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Hi Qole,
thank you for easy-Debian project, i install it on my n810 - very happy :). can i ask a few questions? 1. when i update system(from oficial squeeze repo's), it's broke correctly boot on LXDE from launcher, i try in console: $sudo hostwin LXDE .... Error: Osso initialize failed. $ cant goole and solve it, but in chroot console "startlxde" launch LXDE panel side-by-side original maemo panel, and eat 100% cpu while i launch pcmanfm manually, then cpu is down o normal. how to fix it "Osso initialize failed." ? 2. i want extract my system on partition from debian-img.ext2 (resize internal disc on 256vfat/1400ext/2xxlinswap) to speed boot up, did you have modified launch scripts? or some link what's/how do it? sorry for bad english. thank you. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
S_Paul:
I don't think it is wise to update the system to Squeeze. It seems that only Lenny works properly. I think I should make a wiki page explaining how to copy data from an image to a partition. But if you can do that, simply edit "/home/user/.chroot" and set IMGFILE to your partition (/dev/mmcblk0p3 or whatever). |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
thank you to answer me,
mmm.. the image on http://qole.org/files/ named "debian-squeeze-img.tar.bz2", it means debian-squeeze? wiki - very good idea, we will waiting :) |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Hello, i unpack my system on dedicated partition(/dev/mmcblk0p2), mount it on /debian, can chroot in console, but if i (example)
#startlxde http://s54.radikal.ru/i146/1002/ca/01e5e9d2bbda.png i dont have enought knowledge to modify standart launcher scripts, i think need to remove mount image options and sdd something else, but.. can you help me? i think it's help not me only. or you working on enother(Mer) project? |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
S_Paul: I'm very very focused on getting Easy Debian working for the N900.
I understand your problem now... You can't just start LXDE, you have to kill the Hildon desktop first, my script (in the switch-lxde package) should do that for you. Did you install that package yet? |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
Yes, (i launch it from ssh):
Quote:
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
S_Paul: The central problem seems to be that your chroot isn't starting correctly. Make sure your /home/user/.chroot file has the line, "IMGFILE=/dev/mmcblk0p2" (also comment out the other IMGFILE lines by putting # at the beginning) so that the chroot starts correctly...
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
No.. steel
(in window) Quote:
i have an / of debian on my /dev/mmcblk1p2 with ext2 filesystem. |
Re: [Debian] Easy Debian LXDE As Replacement Desktop
I just don't get it, you say you can chroot into that partiton, yet it says that the partiton is not valid...
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
i mount /dev/mmcblk1p2 on /debian and chroot in. but from scrips no.
|
Re: [Debian] Easy Debian LXDE As Replacement Desktop
any way to know how to write in arabic with onscreen keyboard with debian i mean to use it in oppen office for example
|
All times are GMT. The time now is 04:56. |
vBulletin® Version 3.8.8