Re: twmn

Too bad for the qt dependencies... sad

Re: twmn

Milozzy wrote:

Too bad for the qt dependencies... sad

Exactly, I was about to try this as well untill I noticed those. So far my setup is GTK2 only so I would like to keep it that way

Let's do it and don't screw it.
      Github || Deviantart

Re: twmn

<3 I'll be trying this out later, I just installed and got dwm up and running, so after I figure some stuff out (like making the text in the status bar much, much smaller) I'll be trying to figure this out. Love that moc script, going to definitely have to add something like that. Possibly hotkey that pops a notification that tells me what I'm listening to, and make it happen onsongchange.

Re: twmn

D:< Can't get the animation to stop, I'll figure it out eventually I guess. Trying to set up some scripts. For some reason I could've sworn cb-fortune worked without a change, but it didn't when I just tried it. and it works again. I set bounce to false and it still bounces, but whatever. Happy times! Now I just have to set up my .xinit/.xsession file for dwm

Last edited by thevdude (2012-02-07 07:07:56)

Re: twmn

^ yep, i ran into that too. bounce=false doesn't seem to do anything. what you need to do to stop it from doing that silly bounce, and just have it do a simple slide-in animation, is to adjust the QT-curve to one that doesn't have a bounce in it.

Re: twmn

Set up an easy one for MoC. Create a file like nowplaying in ~/bin and have it like this:

#!/bin/sh

twmnc -c "$(mocp -Q %a' - '%t)"&
/usr/bin/lastfmsubmitd/lastfmsubmit --artist $(mocp -Q %a) --title $(mocp -Q %t) --length $(mocp -Q %d) --album $(mocp -Q %r)

in ~/.moc/config change OnSongChange = "/home/USER/nowplaying"

When the song changes, you'll get a notification of the new song and it'll scrobble. Alternatively, you could have OnSongChange = "/home/USER/nowplaying %a %t %d %r" and use this as the nowplaying script:

#!/bin/sh

twmnc -c "$1 - $2"&
/usr/lib/lastfmsubmitd/lastfmsubmit --artist "$1" --title "$2" --length "$3" --album "$4"

Re: twmn

cool.

did you manage to solve that bounce-thingy from two posts back?

Re: twmn

Haven't worried about it yet, going to set something up for mpd when I get home tonight, then I'll deal with the bounce.

Re: twmn

small mpd script, notifies on just any kind of song change (including pause at the moment. I'm pretty sure I can get that fixed though)

#!/bin/sh

while true; do
    mpc idle player > /dev/null
    twmnc -c "$(mpc current)";
done

Going to see if I can somehow filter out pause events. hmm

Oh, looks like ncmpcpp has something that does this already kind of...

ncmpcpp-0.3.5

    new feature: custom command execution on song change

just gotta figure that out really quick. big_smile

If you're using ncmpcpp you can add this line to your config: execute_on_song_change = 'twmnc -c "$(ncmpcpp --now-playing SONG_FORMAT)"' and set it up however you like. That should work for ncmpcpp at least.

EDIT: my ncmpcpp config line is like this: "twmnc -c \"$(ncmpcpp --now-playing %a' - '%t)\""

Last edited by thevdude (2012-02-14 21:13:46)

Re: twmn

Thanks thevdude just what I have always wanted! =] This is awesome.

Last edited by xeNULL (2012-02-16 07:36:30)

:: AKA xenjii on #crunchbang :: Archlinux.WMFS2 :: EVERYTHING HERE @ Blogger
:: .dotshare :: 1 1 0 1 0 1 0 0 0 ::

Re: twmn

I had a closer look at the dependancies and the following will get twmn installed and running without any unrequired libraries on your system (mainly from libboost-all-dev)

apt-get install git
cd /usr/local/src
git clone https://github.com/sboli/twmn.git
cd twmn/
apt-get install qt4-qmake libqt4-dev libboost1.49-dev libdbus-1-dev libxext-dev \
libboost-program-options1.49-dev libboost-system1.49-dev
qmake
make
make install

Re: twmn

^ cool, thanks! the more bloat-free, the better!

Re: twmn

Hi all, I just installed this and was wondering how I could wrest control from the notification-daemon. Can I just kill it as I start X and start twmnd, or could I even get rid of it as in http://blog.yjl.im/2011/09/notification … n-new.html? Thanks for the help. smile

Leave the gun. Take the cannoli.

Re: twmn

Interestingly on my Debian Sid system twmn automatically works with notifications sent from various programs,  I have not investigated how it does this yet but my guess is some sort of override with libnotify.

You should be able to simply remove notification-daemon.  You can always re-install it if things go wrong...

Re: twmn

^ indeed, i had it magically working with notifications from most programs as well. could it be it just does the Dbus-stuff itself? the blog-post mahatman linked to is an old one, so the developer might've updated the program in the meantime..

Re: twmn

That may be, but on my Testing system it doesn't override. Although I did install it from git... I wonder if that had something to do with it? I'll check update-alternatives...nope. Well I'll try getting rid of notification-daemon. Wish me luck!

EDIT: a development: notification-daemon is not installed. However I do get the bubbles in the top-right corner... hm. Well that's for that roll maybe I can try again when I have time.

Last edited by mahatman2 (2012-03-29 15:01:41)

Leave the gun. Take the cannoli.

Re: twmn

mahatman2 wrote:

notification-daemon is not installed. However I do get the bubbles in the top-right corner...

You most likely have notify-osd and libnotify-bin installed (or possibly even xfce4-notifyd) as opposed to notification-daemon.  Check it using:

dpkg -l | grep notify

You could then try removing those if they exist.

Edit:  also... you are running the twmn daemon (twmnd) first aren't you?

Last edited by jelloir (2012-03-30 00:11:15)

Re: twmn

notify-osd and libnotify-bin I had. I've uninstalled them now!

Also, I am running twmnd in .xinitrc.

Leave the gun. Take the cannoli.