You are not logged in.

#1 2009-12-04 21:12:11

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

[SOLVED] hwoto make dzen2 disappear after X seconds?

as the topic says i am trying to make dzen2 disappear after a few seconds


mpc status -f "[[%artist% - ]%title%]" | head -1 | dzen2 -y 700 -x 0 -fn 'Times New Roman' -p

this is my little script. I tried to background it and put a sleep command followed by a killall dzen2, but dzen stays alive. I tried to use & and ; to background it.

The only way i found was to use a 2nd script to call the 1st one and put the sleep and kill commands in there. But thats an ugly workaround.

Any help appreciated smile


I love posting on forums... Its ALWAYS the same, right after i posted my question i find the answer myself smile


for the curious: -p 2 will close dzen2 after 2 seconds

Last edited by Rasi (2009-12-04 21:14:22)


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#2 2009-12-04 21:23:41

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: [SOLVED] hwoto make dzen2 disappear after X seconds?

Although your problem is solved - the link below provides a quite good reference:

http://dzen.geekmode.org/dwiki/doku.php … ption-list

Last edited by Ashren (2009-12-04 21:27:28)

Offline

Board footer

Powered by FluxBB