Re: twmn
Too bad for the qt dependencies... ![]()
CrunchBang Linux Forums » WM/DE Talk » twmn
Too bad for the qt dependencies...
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
<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.
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)
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"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.
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)";
doneGoing to see if I can somehow filter out pause events. ![]()
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. ![]()
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)
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 installHi 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. ![]()
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...
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
maybe I can try again when I have time.
Last edited by mahatman2 (2012-03-29 15:01:41)
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 notifyYou 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)
notify-osd and libnotify-bin I had. I've uninstalled them now!
Also, I am running twmnd in .xinitrc.
Posts [ 51 to 68 of 68 ]
CrunchBang Linux Forums » WM/DE Talk » twmn
Forums powered by PunBB. Hosted by Linode.
Copyright © CrunchBang Linux.
Proudly powered by Debian GNU/Linux.
Debian is a registered trademark of Software in the Public Interest, Inc.