You are not logged in.

#26 2011-08-21 10:12:42

Sirsurthur
Member
Registered: 2009-02-02
Posts: 114

Re: [twmn] Notification system for tiling window managers.

Hello boli,

Thanks for twmn ; it can be very useful ! I am using i3-wm and can not get twmn to work. I guess, I am doing something wrong :

$ twmnd
$ twmnc -c 'content'
Settings::get(QString setting): Attempt to get a non existing setting

Thanks for your help.

Best regards,

Sirsurthur

Offline

#27 2011-08-21 15:13:59

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

jasonwryan : I pushed something to git. Can you tell me if that solves the problem ?

Sirsurthur : I'm on it.

Last edited by boli (2011-08-21 15:15:27)

Offline

#28 2011-08-21 15:17:40

Sirsurthur
Member
Registered: 2009-02-02
Posts: 114

Re: [twmn] Notification system for tiling window managers.

Hi Boli,

You latest push in git solved my problem. Thanks a lot !

Sirsurthur

Offline

#29 2011-08-21 15:28:26

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

@Sirsurthur : Fixed. And if something is manually deleted in the config file, the error message will tell you which setting it didn't found.

Last edited by boli (2011-08-21 15:28:39)

Offline

#30 2011-08-21 16:50:46

Sirsurthur
Member
Registered: 2009-02-02
Posts: 114

Re: [twmn] Notification system for tiling window managers.

Thanks again ! Is it possible to use xfonts like for example : font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 to match with some wm ?

Best regars,

Sirsurthur

Offline

#31 2011-08-21 18:17:35

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [twmn] Notification system for tiling window managers.

Amazing: the perfect notification system is finally here. Thank you so much & chapeau bas!


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#32 2011-08-21 18:43:45

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

@Sirsurthur : It's done.

twmn offers an XML api so this allows you to write very simple clients, for example here is a 15 lines python mpd notifyer :

#!/usr/bin/env python2

import socket, mpd, time

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("127.0.0.1", 9797))
client = mpd.MPDClient()
client.connect("127.0.0.1", "6600")
prev = ""
while True:
    current = client.currentsong()
    if prev != current:
        s.send("<root><title>" + current["title"] + "</title>"
	       "<content> from " + current["artist"] + "</content></root>")
        prev = current
    time.sleep(1)

Pretty straightforward.

Offline

#33 2011-08-21 23:46:24

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,078
Website

Re: [twmn] Notification system for tiling window managers.

boli wrote:

jasonwryan : I pushed something to git. Can you tell me if that solves the problem ?

Thanks boli smile
That has fixed the dbus issue. Now, however, I get an xml error to stdout:

<?xml version="1.0" encoding="utf-8"?>
<root><content>New twmn notifications...</content><title>Alert</title><aot>false</aot></root>

Unrelated: has anyone got dropbox notifications to send to twmn?


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#34 2011-08-22 02:07:46

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

I fixed the xml output a while ago.
DropBox request a whole bunch of crap via DBUS, which is useless ... because it doesn't even work. Same result with notify-osd.
By the way dropbox was crashing twmd,  it's fixed. (Not available now, because i'm working on the shortcuts)

(HS: I hate the DBUS C Api, definitely.)

Offline

#35 2011-08-22 03:04:03

jasonwryan
Forum & Wiki Admin
From: .nz
Registered: 2009-05-09
Posts: 18,078
Website

Re: [twmn] Notification system for tiling window managers.

boli wrote:

I fixed the xml output a while ago.

Thanks.

By the way dropbox was crashing twmd,  it's fixed. (Not available now, because i'm working on the shortcuts)

Ah, I wondered why I couldn't get a persistent connection...

(HS: I hate the DBUS C Api, definitely.)

Good to see you are having some fun with this thing tongue


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#36 2011-08-24 10:25:39

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 370

Re: [twmn] Notification system for tiling window managers.

Hi,
This is really nice and pretty! Thanks.

Would it be possible to have multiple notification at the same time? For example by having them lay on top of each other as in the following illustration. It could be some other mechanism as well.

        Desktop
+-----------------------+
|                       |
|                       |
+-------------+         |
|Note 3       |         |
+---------+---+         |
|Note 2   |             |
+---------+--+          |
|Note 1      |          |
+------------+----------+

Thanks,
Rasmus


Arch x64 on Thinkpad X200s/W530

Offline

#37 2011-08-24 14:58:16

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

Yes. In fact i'm going to do that today. The notifications will be exactly on top of each other[1], hiding the next one. You will be able to switch between them whith the mouse wheel or a keyboard shortcut.
Although given that this project is designed to display notifications on a single line there is no way i can display several notifications at the same time.

[1] : From an user point of view of course. I'm not going to open a whole bunch of windows.

Offline

#38 2011-08-24 20:05:14

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

Here is a very demanded feature: Several notifications.

Given that twmn is designed to show a unique slide, it isn't possible to display several notifications at the same time, so thanks to some shortcuts you'll be able to navigate through the pending notifications.
If you don't use any of the shortcuts, each notification will remain visible for the given amount of time. Also, the slide no longer go away if there is one or more pending notifications but update the content. We get back the 1.5 secondes lost here.

Shortcuts are configurable in /home/$USER/.config/twmn/twmn.conf, like almost everything else.
Here is what i chose for default :
- Next notification : Alt + J. Mouse wheel down.
- Previous notification: Alt + K. Mouse wheel up.
- Activation : Alt + Return. Left click. This executes the command given in --ac from twmnc, or the value of activate_command in the config file.
- Close the notification : Alt+x. Right click. If there is pending notifications, you might wanna use the Alt+J Alt+X combo or you will not see them.

I fixed a dual screen position bug by adding the  'absolute_position' key in the config file. Setup this to the exact position of your slide. You still need to setup the key 'position'.
If you don't have any problem with your slide position, twmn is still guessing a position according to the 'position' value.
This 'absolute_position' key can lead to new a new usage si i will add 3 new possible values for the key 'position':
- center. Adapted animation to display the notification centered regarding the screen size.
- top_center. It says it by itself, adapted to display on top, centered..
- bottom_center : Same as above but on bottom.
It's possible to do so but with the existing animations it's ain't pretty.

Last edited by boli (2011-08-24 20:08:55)

Offline

#39 2011-08-25 06:23:27

Sirsurthur
Member
Registered: 2009-02-02
Posts: 114

Re: [twmn] Notification system for tiling window managers.

Hello Boli,

Thanks a lot for this update but sadly it is not building using aur pkgbuild. You will find the erros I encountered here : http://pastebin.com/9QLkybre

Thanks for your help.

Best regards,

Offline

#40 2011-08-25 11:04:52

kiooeht
Member
Registered: 2011-08-25
Posts: 1

Re: [twmn] Notification system for tiling window managers.

@Sirsurthur: I ran into the same problem.

I managed to fix it by adding

QPoint stringToPos(QString string);

under the private section of the Widget class in twmnd/widget.h

Should be line 60 or so.

Hope that help

Offline

#41 2011-08-25 14:14:08

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

Ahhh. I forgot to add widget.h to the commit (why can't git track files like svn .....).
It works now. Thanks guys.

Offline

#42 2011-08-25 21:02:13

Gooru
Member
From: Poland
Registered: 2010-08-25
Posts: 53

Re: [twmn] Notification system for tiling window managers.

Great job, thx for this useful tool. Keep doing such a great work ;D
You may think of implementing an option, where the newest notfication kills every previous notifications.

Last edited by Gooru (2011-08-26 11:11:51)

Offline

#43 2011-08-26 04:12:39

barzam
Member
From: Sweden
Registered: 2009-01-27
Posts: 277

Re: [twmn] Notification system for tiling window managers.

This looks incredibly slick, I love the smooth movement! Now I just got to figure out how what I want to be notified about smile Thanks a lot for this program!

Offline

#44 2011-08-26 15:25:11

orph
Member
From: Montréal, Canada
Registered: 2009-03-01
Posts: 25
Website

Re: [twmn] Notification system for tiling window managers.

Don't be shy to contribute at https://github.com/sboli/twmn. boli is a great repo maintainer. wink

Last edited by orph (2011-08-26 17:07:49)


I KISS you.

Offline

#45 2011-08-26 21:29:48

Erus_Iluvatar
Member
Registered: 2010-04-01
Posts: 102

Re: [twmn] Notification system for tiling window managers.

I'm so sad to have to download 24 MB and install 100 MB of QT, just to build an awesome tool.


I'm french, don't mind my mistakes in english.

Offline

#46 2011-08-27 00:30:51

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

And orph is a great contributor !

@Erus_Iluvatar : Yeah that's the sad part. I hesitated a lot before going for Qt but i couln't have done that as easily with Xlib or even GTK(mm). Given that i'm already using Qt i can (and i sure will) improve this to do pretty cutting edge stuff (Interactive scripted notifications being one of them).

Offline

#47 2011-08-27 18:43:10

Erus_Iluvatar
Member
Registered: 2010-04-01
Posts: 102

Re: [twmn] Notification system for tiling window managers.

I'll take a look at this on the computer i'll share with my wife (I don't expect her to use anything else than KDE).


I'm french, don't mind my mistakes in english.

Offline

#48 2011-08-29 18:39:03

nXqd
Member
Registered: 2010-07-01
Posts: 173
Website

Re: [twmn] Notification system for tiling window managers.

since it comes with qt, wm's user have to think about this smile

@Erus_Iluvatar: I think you should keep your wife using DE, it will be much easier for both of you big_smile


When you live for a strong purpose, then hard work isn't an option. It's a necessity. - Steve Pavlina
dotFiles

Offline

#49 2011-08-30 15:52:55

boli
Member
Registered: 2011-08-16
Posts: 19

Re: [twmn] Notification system for tiling window managers.

Hi.

Some news about the project :
A patch from kiooeht has been integrated, which allows you to configure twmn easily on a dual-heal setup, documentation improvement and a new Python example thanks to orftz. And I solved some bugs and did some refactoring. The next step is to integrate widgets in a notification but I'm not sure about that. I don't want to spend a lof of time implementing this while it's not appreciated or useless. Moreover you already have the possibility to run a command from a notification (activate_command).

So I'm asking for your opinion :
My idea is to give the possibility to integrate widgets (slider, boutton, lineEdit) inside a notification, still with a single line. Many usages are possible, for example :
- MPD : Three buttons, Next, Previous, Toggle, Even bring your favourite player on top ...
- Mail : A button to open your mail box.
- Device : A button to mount the device, one to go inside the mount folder (can be done with one command ...)
- The possibility to launch any action from a notification, a lineEdit can be used to read your command.
Every widget is fully scriptable in the  XML format (command, image, icon, action when activated ...), widgets can  talk one to another and everything fully controlable with keyboard shortcuts.

If you think this might be useful, please let me know. Otherwise i won't worry with this.

Last edited by boli (2011-08-30 15:54:46)

Offline

#50 2011-09-03 00:12:29

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 370

Re: [twmn] Notification system for tiling window managers.

What I would find it useful for would be volume notification, brightness notification etc. This could simply be implemented as an updated frame, e.g. when I press volume up a second time twmnc is updated/replaced from 'Vol. 70/100' to 'Vol. 80/100'. It could also be some fancy stuff with sliders or whatnot like you mentioned.

Personally I can see the usefulness of buttons and similar stuff but I would not use a lot of time to utilize it in my own scripts. However, a simple activate_command_on_click would be very useful in my opinion. E.g. when I click on a mail notification my workspace could be switched to 'txt' and a gnus (== mail) frame could be opened. That would be very useful and simple from a user perspective.

Edit: Sorry, it seems this is exactly what an activated notification does, although I can't tell from the github whether different commands can be specified (I am too tired to test it now).

Last edited by Pank (2011-09-03 00:15:08)


Arch x64 on Thinkpad X200s/W530

Offline

Board footer

Powered by FluxBB