maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   New XChat build available (https://talk.maemo.org/showthread.php?t=38927)

fms 2009-12-31 19:22

New XChat build available
 
Hello, All!

I have just uploaded a new build of XChat to Extras-Devel non-free. It is coming to free as soon as the AutoBuilder comes back to life. Changes in this build, relative to Qwerty12's build:

1) Disabled Python support (XChat did not compile with it on SB2).
2) Disabled libsexy spellchecker (it was causing crash when exiting Settings dialog).
3) Changed text window background to black and adjusted all the other colors accordingly.
4) Moved user list to the left and collapsed it to give more space to the text window. You can always drag it back by the tab.
5) Moved channel list to the bottom, turning it into a row of small tabs. They are really convinient to flick through with your finger, too.
6) Changed text window font to a more condensed, fixed-width one, to squeeze more text and make it more readable.
7) Removed nickname tabbing to save space.
8) Moved DCC downloads directory to MyDocs/Downloads, to be compatible with Transmission.

Give it a try. Happy New Year! :)

PS: You probably want to delete /home/user/.xchat2 first.

Bratag 2009-12-31 19:34

Re: New XChat build available
 
Will do and thanks.

d-iivil 2009-12-31 19:40

Re: New XChat build available
 
Great! Just downloading and I'm surely giving feeback & voting after testing this out :)

ArnimS 2010-01-01 01:11

Re: New XChat build available
 
Having putzed a bit with this myself i must say THANKS and GOOD JOB. There was a (feature) void and fms said 'let there be light'.

(I don't have any compunctions about bumping-up threads about new/improved software.)

wmarone 2010-01-01 01:46

Re: New XChat build available
 
Speaking of xchat, do you have a repo I could check out a copy from?

jebba 2010-01-01 03:22

Re: New XChat build available
 
Cool. Is it optified yet?

jebba 2010-01-02 17:28

Re: New XChat build available
 
Quote:

Originally Posted by jebba (Post 448562)
Cool. Is it optified yet?

No, it's not optified....

fms 2010-01-03 14:50

Re: New XChat build available
 
All right, I have just uploaded XChat build 14 to Extras-Devel. This build adds the following:
  • Optification.
  • Shift+Space will now invoke nickname completion.
  • Lagometer disabled by default, as it was causing 500ms wakeups.
  • When you enable lagometer, it will run on 1s wakeups now.
  • DCC timeout check now runs every minute (was running every second).

Overally, XChat should be way lighter on the battery now. In order to test it fully, you will have to delete /home/user/.xchat2 directory!

denix 2010-01-04 01:04

Re: New XChat build available
 
Nice work! Thanks.

HtheB 2010-01-04 01:15

Re: New XChat build available
 
now we need a tray icon like pidgin has.

so it will stay online in the background when u tap on the X.

fms 2010-01-04 06:51

Re: New XChat build available
 
Quote:

Originally Posted by HtheB (Post 451950)
now we need a tray icon like pidgin has. so it will stay online in the background when u tap on the X.

Sorry but what prevents you from tapping on the task switcher icon instead?

d-iivil 2010-01-04 07:31

Re: New XChat build available
 
Works like a charm! Thank you!

fms 2010-01-05 13:45

Re: New XChat build available
 
The latest build of XChat is now available in Extras-Testing. Please, vote for it here:

http://maemo.org/packages/package_in...2.8.6-maemo14/

It will never go into proper Extras unless you vote.

Sameer 2010-01-06 07:02

Re: New XChat build available
 
Hi,

I need some help.
I am unable to see the users list in the Xchat.
You mentioned that you have moved it to the left and collapsed it.

Can someone please let me know how to get it back?

Thanks -

EDIT: Got it now ! Just had to drag it out :)

robbiem 2010-01-06 14:36

Re: New XChat build available
 
Quote:

Originally Posted by fms (Post 453931)
The latest build of XChat is now available in Extras-Testing. Please, vote for it here:

http://maemo.org/packages/package_in...2.8.6-maemo14/

It will never go into proper Extras unless you vote.

fms,
how can i clean install this. I messed up my settings and want the default back?
EDIT: when I uninstall and re-install my setting remain?

fms 2010-01-06 15:36

Re: New XChat build available
 
Quote:

Originally Posted by robbiem (Post 455582)
how can i clean install this. I messed up my settings and want the default back?

rm -rf /home/user/.xchat2

Quote:

EDIT: when I uninstall and re-install my setting remain?
Because that is how it has been designed. You do not want your personal settings trashed when you install a new version. Well, normally you do not.

MasterPo 2010-01-12 16:38

Re: New XChat build available
 
Is there something special I need to do to get notifications, or are they not working? I set the alerts in my preferences, but I get no notification of highlighted messages other than the channel tab changing color. Ideally I would like an audible 'beep' and / or vibrate, as well as the blue notification light to blink when highlighted messages are sent (similar to an email notification).

fms 2010-01-12 18:20

Re: New XChat build available
 
Quote:

Originally Posted by MasterPo (Post 466622)
Is there something special I need to do to get notifications, or are they not working? I set the alerts in my preferences, but I get no notification of highlighted messages other than the channel tab changing color. Ideally I would like an audible 'beep' and / or vibrate, as well as the blue notification light to blink when highlighted messages are sent (similar to an email notification).

What you are describing sounds like the unified IM behaviour (i.e. Telepathy). XChat has nothing to do with this. I do not think any of these features were ever implemented in XChat.

MasterPo 2010-01-12 23:08

Re: New XChat build available
 
Quote:

Originally Posted by fms (Post 466808)
What you are describing sounds like the unified IM behaviour (i.e. Telepathy). XChat has nothing to do with this. I do not think any of these features were ever implemented in XChat.

I see. I'm obviously new to irc. I recently began a job where I need to be connected throughout the day. If someone tries to reach me, the 'alerts' in xchat will send out a beep and a tray notification on my desktop. I was hoping to run xchat in the background on my n900 (when I am away from my desktop) and be able to know when someone is trying to reach me without having to always be visually checking the screen. If the phone could beep / vibrate when a highlighted message is received, that would be great.

fms 2010-01-13 06:20

Re: New XChat build available
 
Quote:

Originally Posted by MasterPo (Post 467368)
I see. I'm obviously new to irc. I recently began a job where I need to be connected throughout the day. If someone tries to reach me, the 'alerts' in xchat will send out a beep and a tray notification on my desktop. I was hoping to run xchat in the background on my n900 (when I am away from my desktop) and be able to know when someone is trying to reach me without having to always be visually checking the screen. If the phone could beep / vibrate when a highlighted message is received, that would be great.

You may want to install the telepathy-idle plugin. It will do exactly what you are describing, for private IRC messages. Of course, it will not have the full IRC functionality like XChat, but should work just fine for private message exchanges (similar to IM).

MasterPo 2010-01-14 02:11

Re: New XChat build available
 
I actually figured something out that helps a little. As I said before, setting the 'alerts' preferences to beep on private message or highlighted message does not work. However, if you set those alerts, then go into the sound preferences, and set the 'beep' action to play a custom sound, it works! I first tried with an mp3 file, but that didn't do anything. Then I tried a .wav file and that is working fine. It would still help alot if it there was some way to make the phone vibrate, but having the sounds work is better than nothing.

MasterPo 2010-01-17 04:57

Re: New XChat build available
 
Made some more progress in getting this to notify me the way I want. It's not the most elegant solution, but it seems to work pretty well. What I did was create a script that makes the phone vibrate, plays a sound, and makes the led notification blink. Then, in the sound preferences, set the script to be the external sound player. This will kill all your custom event sound settings since the script is not really a sound player, but it will be executed when the beep sound is supposed to play. So if you set up the alerts preferences to play a beep on highlighted messages and / or private messages, etc. the script will run and the phone will vibrate, blink, and play a sound. If the silent profile is set, the sound will not play. Heres my script if anyone's interested:

Code:

#!/bin/sh

#Set the vibration pattern (see /etc/mce/mce.ini)
vibrate_pattern=PatternIncomingMessage

#Set the led pattern (see /etc/mce/mce.ini)
led_pattern=PatternCommunicationIM

#Set the sound file to play
sound_file=/path/to/your/sound/file


#Make the phone vibrate
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_vibrator_pattern_activate string:$vibrate_pattern

#Play a sound
aplay -q $sound_file

#Make the led notification light blink
dbus-send --system --type=method_call --dest=com.nokia.mce /com/nokia/mce/request com.nokia.mce.request.req_led_pattern_activate string:$led_pattern

Just save this file to your phone, edit the variables (the sound file variable must be edited, the vibrate pattern and led pattern can be left as is, or you can choose your own from /etc/mce/mce.ini) and set the 'External sound playing program' in the xchat sound preferences to be the script file.

Like I said this isn't a perfect solution, but it will make the phone vibrate and play a sound when someone pm's me, or a highlighted message is received. Now I can carry the phone in my pocket with xchat running and know when someone is trying to reach me.

Oh, and the standard "If this messes up your phone, I'm not responsible" disclaimer applies. I'm pretty sure it's safe, but I am kind of a n00b, so anything could happen :-)

denix 2010-01-29 06:02

Re: New XChat build available
 
Quote:

Originally Posted by MasterPo (Post 477505)
I am kind of a n00b, so anything could happen :-)

Actually, not bad for a n00b at all! Thanks.

qole 2010-02-08 02:43

Re: New XChat build available
 
Got the script by DocScrutinizer / Master Po working for me.

Quote:

Originally Posted by MasterPo (Post 477505)
Made some more progress in getting this to notify me the way I want.

...and set the 'External sound playing program' in the xchat sound preferences to be the script file....

Some notes:

Just use $1 instead of /path/to/your/sound/file

In xchat, go to the Sound tab in Preferences and set the "external sound playing program" to your script, "Sound files directory" to /usr/share/sounds/

Find "Channel Msg Hilight" and set "Sound file" to chat-msg_in_bg.wav (or one of the others in that dir that you like better). Do the same for "Private Message".

fwrnando 2010-02-10 21:34

Re: New XChat build available
 
Hi, first post.

I think I've found a bug in it that isn't on either the linux or windows versions of Xchat, and just wanted to confirm.

I'm running my own irc bouncer on my home connection, and just to try to hide it a little better, I'm using a non-standard port. I have the server set as "myhost.dyndns.org/6670", as that's the setting I use for Xchat on linux and windows. Whenever I try to connect, it first tries using /6670 as part of the tld, failing to resolve, then after cycling to the "next" server, it connects normally.

A screencap, because screencaps are always nice:

http://www.fwrnando.com/files/Screen...210-163147.png

Am I missing something, or is this a bug?

fms 2010-02-11 06:38

Re: New XChat build available
 
Quote:

Originally Posted by fwrnando (Post 520181)
Am I missing something, or is this a bug?

I am not sure what "irc bouncer" is, but maybe you have to enter "myhost.dyndns.org:6670" instead?

MasterPo 2010-02-11 14:25

Re: New XChat build available
 
Quote:

Originally Posted by fwrnando (Post 520181)
Whenever I try to connect, it first tries using /6670 as part of the tld, failing to resolve, then after cycling to the "next" server, it connects normally.


I am also using a bouncer with a custom port and I see the same behaviour as you do. I've noticed that if after connecting, you disconnect from the server, then reconnect, it will connect on the first try. It's only when first launching xchat that I see it, so I don't think it's anything wrong with the settings. I haven't tried connecting directly to an irc server to see if this only happens when using a bouncer, or when using a bouncer with a custom port, or all the time. I can say that it does not happen from my fedora desktop when connecting to the same bouncer / same port.

Really, all it amounts to is a 1 or 2 second delay when connecting from the N900, so it's not really that big of a deal IMO.

robbiem 2010-02-17 02:56

Re: New XChat build available
 
hello, i have a problem. i uninstalled and re-installed and deleted my settings and it's still happening.
basically.send for a xdcc file it allows me to select the folder to save to and then fails to save.
if i try save again I only get offerend the 'bin' folder?? and it fails 'unable to save'. This bin folder might be a system folder?

any ideas?

fms 2010-02-17 05:49

Re: New XChat build available
 
Quote:

Originally Posted by robbiem (Post 531296)
hello, i have a problem. i uninstalled and re-installed and deleted my settings and it's still happening.
basically.send for a xdcc file it allows me to select the folder to save to and then fails to save.
if i try save again I only get offerend the 'bin' folder?? and it fails 'unable to save'. This bin folder might be a system folder? any ideas?

I think you are trying to give it a system folder of some kind. Give it a proper folder in MyDocs.

cehteh 2010-02-18 18:29

Re: New XChat build available
 
it blinks babe!
I just made a first version of a xchat plugin using the maemo notfication gadgets, being able to blink, vibrate, show banners or dialog boxes for highlighted messages, the raw code for review:

http://lumiera.org/maemo_notify.c

compiling is a bit bumpy, basically:
gcc -std=gnu99 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -Wall -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lglib-2.0 -Wl,--export-dynamic -Wall -O1 -shared -fPIC maemo_notify.c -o maemo_notify.so

put maemo_notify.so into ~/.xchat2/

cheers

ToJa92 2010-02-18 18:36

Re: New XChat build available
 
Quote:

Originally Posted by cehteh (Post 534958)
it blinks babe!
I just made a first version of a xchat plugin using the maemo notfication gadgets, being able to blink, vibrate, show banners or dialog boxes for highlighted messages, the raw code for review:

http://lumiera.org/maemo_notify.c

compiling is a bit bumpy, basically:
gcc -std=gnu99 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g -Wall -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lglib-2.0 -Wl,--export-dynamic -Wall -O1 -shared -fPIC maemo_notify.c -o maemo_notify.so

put maemo_notify.so into ~/.xchat2/

cheers

Wow, sounds awesome. Any chance you can provide a compiled version?

cehteh 2010-02-18 19:26

Re: New XChat build available
 
Quote:

Originally Posted by ToJa92 (Post 534974)
Wow, sounds awesome. Any chance you can provide a compiled version?

Quick one:
http://lumiera.org/maemo_notify.so

note that this is quite gued together, many lots of configurability and some feature are not implemented yet.

cehteh 2010-02-19 00:28

Re: New XChat build available
 
I'm finished Ma!

Sourcecode at:
http://lumiera.org/maemo_notify.c

The plugin at:
http://lumiera.org/maemo_notify.so

How to use it

Put the maemo_notify.so into your ~/.xchat2/ dir. Maybe write a maemo_notify.conf file there (using the commands below without the leading /, untested).
Defaults are full blown and work for me so i didn't test the config file thing.

The plugin adds some new commands:
First some raw stuff, for use in scripts, you likely never need that directly

/LED_ACTIVATE <pattern>
enables a led blinking pattern
/LED_CANCEL <pattern>
disables a led blinking pattern
/VIBRA_ACTIVATE <pattern>
enables a vibration pattern
/VIBRA_CANCEL <pattern>
disables a vibration pattern
/MAEMO_BANNER <message...>
shows a message for a short while
/MAEMO_DIALOG <message...>
shows a messages which must be acknowledged (tapped)

Then the configuration primitives, this is what you likely want to use:

/LED_PATTERN [pattern]
set or show the led pattern for notifications, see /etc/msc/mce.ini for possible values or configure your own.
/VIBRA_PATTERN [pattern]
set or show the vibrator pattern for notifications
/NOTIFY_MODE [+/-flags]
set notification flags, l=LED, v=Vibrator, b=Banner, d=Dialog, example: '/notify_mode +b-v+l-d' turns banners and led on, dialogs and vibrator off.

Things act only when it makes sense (YMMV, maybe someone wants to make this configureable), that is:
Notification LED and Vibrator act only when the display is not on. Banners and Dialogs are only shown when xchat has no focus, banners are only shown when the display is on and we don't show a dialog.

For me this is now in a 'useable' state, if anyone wants to hack further on it, feel free to improve it.

Christian

fms 2010-02-19 06:00

Re: New XChat build available
 
Thanks, cehteh, will roll it into the next XChat release, if everything works.

cehteh 2010-02-19 16:03

Re: New XChat build available
 
Ok, final update for now:

New featues:
includes the channel name in banners and dialog boxes, (unfortunally doubles the nick name for private chats "nick: nick: message", i am too lazy to fix that)

add +c and +p (-c,-p) modes for /NOTIFY_MODE which enables/disables notifications on channel respective private notifications.

add throttling for dialogs, configurable with /DIALOG_THROTTLE which take a maximum parameter of how many dialogs it may present in a row and a recovery time which increases a current counter every soonafter. Defaults are 5 Dialog boxes and 10 minutes recovery time, should be usable out of the box I think.

Christian

fms 2010-02-21 13:06

Re: New XChat build available
 
cehteh, please provide me with the makefile you are using to build your plugin. I need to build it as part of the XChat package.

fms 2010-02-23 07:32

Re: New XChat build available
 
New XChat build available, that includes cehteh's notification plugin. Please, test and vote here:

http://maemo.org/packages/package_in...2.8.6-maemo15/

SirMuttley 2010-02-25 10:55

Re: New XChat build available
 
Is Xchat compiled with Proxy support? I notice the Preferences lack ability to set your proxy, but I set it up in the xchat.conf file instead. However it can't connect to the proxy, I get:

*Connecting to myproxy.server.com (XXX.XXX.XXX.XXX) port XXXXX
Proxy failed to connect to host (error 3)
Proxy traversal failed

The config was copied directly from my xchat config on my laptop so should work fine.

Any ideas?

fwrnando 2010-02-25 17:31

Re: New XChat build available
 
How do disable the new notify plugin? It works fine, I just don't like having a banner every time I get a private message. Didn't find anything in ~/.xchat2/ (besides a empty .conf)

fms 2010-02-25 18:47

Re: New XChat build available
 
Quote:

Originally Posted by fwrnando (Post 546190)
How do disable the new notify plugin? It works fine, I just don't like having a banner every time I get a private message. Didn't find anything in ~/.xchat2/ (besides a empty .conf)

/NOTIFY_MODE -l-v-b-d

or to just disable the banner

/NOTIFY_MODE -b


All times are GMT. The time now is 01:11.

vBulletin® Version 3.8.8