You are not logged in.
Pages: 1
it is a simple launcher at the moment. but it really can be anything you want.
Hope you can suggest some usages and extendable feature below.
how to use it
dtray <image icon path> <option 1 name> <command 1> ....
get it
in aur: dtray-git
https://github.com/taylorchu/dtray/
Last edited by taylorchu (2013-04-10 03:14:20)
"After you do enough distro research, you will choose Arch."
Offline
Okay so option 1 is the title and command 1 is the executable or whatever. Seems like it can just keep going too like option 1 command 1 option 2 command 2 etc.. I think it would have been easier to understand for me if it said something like:
dtray <image icon path> <Title> <command> <Title 2> <command 2> or something like that. Or maybe just have an example in there in the --help switch would be nice. Also, if there was a way to do left click right click that would be okay. Maybe left click for options / titles and right click for quit? I don't know. Either way this seems like a useful application (been wanting something like this for a while). Thanks.
Offline
Okay so I noticed it can launch as many as I want in the tray. Is there any way that if only one option is specified left click opens that instead of menu?
Offline
so, if there is only one option, if you click on the icon, it will just launch?
"After you do enough distro research, you will choose Arch."
Offline
so, if there is only one option, if you click on the icon, it will just launch?
Well that's what I was thinking. Instead of two clicks just one if there was only one thing to launch and if there were two items then a list on left click. Maybe just the quit option on right click? Just my opinion maybe it would be better to wait for more feedback here I don't know
Offline
I guess I'm just having trouble figuring out exactly how to use this. What are the available options? Can this be run from anywhere (like, a terminal, for instance)? (Because, it doesn't appear to run for me; at least, it doesn't show up and there are no relevant errors thrown in stdout or stderr).
Can you be a little more specific about the usage?
All the best,
-HG
P.S., your README on the git says "dmenu" not "dtray"
Last edited by HalosGhost (2013-04-10 20:39:06)
Offline
taylorchu wrote:so, if there is only one option, if you click on the icon, it will just launch?
Well that's what I was thinking. Instead of two clicks just one if there was only one thing to launch and if there were two items then a list on left click. Maybe just the quit option on right click? Just my opinion maybe it would be better to wait for more feedback here I don't know
Maybe do it this way:
Rightclick and leftclick always show menu by default, only if there is an entry beginning with an exclamation mark, use this as left-click action without the menu.
@HalosGhost: specify a path for the image the tray icon will show, then list the names and commands of menu items that will be shown when you click on it.
Last edited by progandy (2013-04-10 20:39:11)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
*edit*
meh... i should understand what a software does first.
Last edited by Rasi (2013-04-10 20:40:25)
He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.
Douglas Adams
Offline
@HalosGhost: specify a path for the image the tray icon will show, then list the names and commands of menu items that will be shown when you click on it.
Okay, can it be any kind of image? Because, I've been specifying a .icon file, though I have some svgs available. Ahh, I see, so this is not a viable program to replace a system status tray, I assume?
All the best,
-HG
Offline
@dodo3773
done
@Rasi
it basically can be any kind of tray icon launcher and one-click button(thanks for dodo3773)
but in general, its purpose is to be a general tray thing that an user can define its purpose.
"After you do enough distro research, you will choose Arch."
Offline
Did you update the PKGBUILD up on the aur or just on your github?
Offline
Rebuilt from aur. With the new version I get errors and it does not work for me. Here are the messages from stdout:
command p:
sh: $'p:\240\001': command not found
part of the error message changes though. This part:
sh: $'p\312\345\001': command not found
sh: $'p\332\322\001': command not found
Offline
what exactly did you run?
"After you do enough distro research, you will choose Arch."
Offline
what exactly did you run?
I ran the same test command as I did last time:
dtray Pictures/icons/gnome-terminal.png terminator terminator
The stdout error comes when left clicking on the icon. When I right click and select the command it works and when I right click and select quit it quits. My shell I am launching from is zsh if that matters.
Offline
Okay new bug: After opening program with right click -> program name it is not possible to then quit dtray (not able to test with left click yet). If quit is tried multiple times while application loaded from it is still running it freezes system. Switching to tty and killing dtray processes fixes it. The two processes that were running were: "dtray" "dtray/ /<defunct>". Hope that helps.
Offline
@dodo3773
I accidentally upload the bad pkgbuild (from very beginning). please rebuild and it should be fine.
"After you do enough distro research, you will choose Arch."
Offline
Now left click and right click doesn't work. Same issues:
left click stdout:
sh: $'\200\323\350': command not found
command terminator
right click to left click open
Traceback (most recent call last):
File "/usr/bin/terminator", line 45, in <module>
import terminatorlib.optionparse
File "/usr/lib/python2.7/site-packages/terminatorlib/optionparse.py", line 25, in <module>
import config
File "/usr/lib/python2.7/site-packages/terminatorlib/config.py", line 93, in <module>
'try_posix_regexp' : platform.system() != 'Linux',
File "/usr/lib/python2.7/platform.py", line 1310, in system
return uname()[0]
File "/usr/lib/python2.7/platform.py", line 1277, in uname
processor = _syscmd_uname('-p','')
File "/usr/lib/python2.7/platform.py", line 1012, in _syscmd_uname
rc = f.close()
IOError: [Errno 10] No child processes
Last edited by dodo3773 (2013-04-11 07:20:47)
Offline
try this:
dtray /usr/share/icons/Faenza/actions/96/stock_search.png firefox firefox
"After you do enough distro research, you will choose Arch."
Offline
I don't have faenzia icon pack but I tried with firefox same thing. I can help to debug more if you have any additional suggestions. Won't be for about 12 hours though on my end.
Offline
Pages: 1