You are not logged in.

#1 2013-04-10 03:09:01

taylorchu
Member
Registered: 2010-08-09
Posts: 405

dtray: customizable tray icon

kYPZC7z.png

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

#2 2013-04-10 17:47:03

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

#3 2013-04-10 17:51:58

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

#4 2013-04-10 19:58:43

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: dtray: customizable tray icon

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

#5 2013-04-10 20:28:29

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

Offline

#6 2013-04-10 20:36:54

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: dtray: customizable tray icon

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" smile

Last edited by HalosGhost (2013-04-10 20:39:06)

Offline

#7 2013-04-10 20:37:51

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: dtray: customizable tray icon

dodo3773 wrote:
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

#8 2013-04-10 20:38:47

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: dtray: customizable tray icon

*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

#9 2013-04-10 20:42:10

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: dtray: customizable tray icon

progandy wrote:

@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

#10 2013-04-11 02:12:22

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: dtray: customizable tray icon

@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

#11 2013-04-11 02:22:44

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

Did you update the PKGBUILD up on the aur or just on your github?

Offline

#12 2013-04-11 02:47:27

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

#13 2013-04-11 03:02:54

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: dtray: customizable tray icon

what exactly did you run?


"After you do enough distro research, you will choose Arch."

Offline

#14 2013-04-11 03:05:58

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

taylorchu wrote:

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

#15 2013-04-11 03:44:13

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

#16 2013-04-11 07:04:01

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: dtray: customizable tray icon

@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

#17 2013-04-11 07:20:28

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

#18 2013-04-11 07:36:50

taylorchu
Member
Registered: 2010-08-09
Posts: 405

Re: dtray: customizable tray icon

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

#19 2013-04-11 07:41:00

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: dtray: customizable tray icon

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

Board footer

Powered by FluxBB