You are not logged in.

#1 2012-11-08 18:46:51

mumo
Member
Registered: 2012-05-06
Posts: 22

Don't group ncmpcpp with terminal in dockbarX

hi there,

perhaps somebody has an idea on how to accomplish the following:

i'm using mpd+ncmpcpp to listen to my music. the panel i'm using is dockbarX (dockX standalone) which groups similar windows in one single icon - just like windows' superbar.
this actually is just the way i like it - with the exception of ncmpcpp which of course gets grouped with other opened xterm-windows. but i'd rather have an extra icon for it.

can somebody share his thoughts on this? maybe specify an alternative default terminal-emulator for ncmpcpp? how can it be done? with a bash-script?

any help is welcome. thnak you very much.

Last edited by mumo (2012-11-08 18:47:03)

Offline

#2 2012-11-08 18:55:06

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Don't group ncmpcpp with terminal in dockbarX

Short of using a different teerminal emulator, I think one would have to know what this dockbarX uses to distinguish between programs.  Are the *.desktop files used?  And if so, maybe you could create one for ncmpcpp?  I notice that there is not one standard for that player (as I too use that).

BTW, if you like xterm, you should try rxvt-unicode.  It is amazing, and it includes a daemon/client function so that you can esseintially have overhead for only one daemon instead of a bazillion stand alone terminals.

Offline

#3 2012-11-08 19:11:15

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Don't group ncmpcpp with terminal in dockbarX

hi,

dockX indeed supports .desktop-files to be pinned to it.

that's exactly the way i tried to accomplish this smile i created music.desktop which links to music.sh which again starts mpd+ncmpcpp. of course it gets grouped in the default terminal icon. and that's where i'm stuck big_smile i just do not have a clue on how to differentiate between those.

i have used urxvt for a while but i have to admit i have never figured out about its benefits^^ might it be easier to accomplish with urxvt?

Offline

#4 2012-11-08 19:16:42

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Don't group ncmpcpp with terminal in dockbarX

I don't think it would be easier to accomplish this with urxvt.  I just think it is pretty great, especially since it is extensible with perl scripts, and the daemon/client setup.

I did some thinking (it was dangerous), and what you actually need to do (I think), is have the title of the window changed to a custom title.  I can't offhand remember how to do this, or if it is a function of the window manager or what.  I have never had a real reason to do this, so I never actually took care of it.

Offline

#5 2012-11-08 19:26:14

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Don't group ncmpcpp with terminal in dockbarX

i guessed it would be problematic smile

thought about the window-titlebar as a distinguishing criterion, too - but i seriously have no idea where to go from here...

maybe i'll give sonata a try.i just learned to love ncmpcpp   big_smile

Last edited by mumo (2012-11-08 19:26:51)

Offline

#6 2012-11-08 19:30:08

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Don't group ncmpcpp with terminal in dockbarX

Stick with what you want to use, as that is one of the key advantages of being an Arch Linux user I think.  I found this with about a second and a half of google use.

Offline

#7 2012-11-08 19:44:30

mumo
Member
Registered: 2012-05-06
Posts: 22

Re: Don't group ncmpcpp with terminal in dockbarX

i guess window-titles are just fine the way they are: xterm displays: "username@archdesktop" whereas ncmpcpp reads "artist - title" by default. just how to prevent dockbarX from grouping them anyway? :-/

maybe there is a chance to play with windows rules in compiz (which I use as standalone WM) - but i haven't found anything promising so far.

Offline

#8 2012-11-08 19:58:00

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Don't group ncmpcpp with terminal in dockbarX

From the launchpad FAQ, i seems that it groups by resource class name.  Use the xorg-xprop package (command is simply xprop) to find this information.  I am not entirely sure, but I think it is what xprop tells you is the class.  I think you can use xdotool to set the class name as well.

Keep in mind, that these ideas are merely that, ideas.  I do not use dockbarX, so I am really not sure.  But these are just things I would try.

Offline

Board footer

Powered by FluxBB