-
Notifications
You must be signed in to change notification settings - Fork 28
Wmfs fifo
arpinux edited this page May 9, 2012
·
2 revisions
wmfs-fifo is an application that could be a good alternative to the wmfs -c
command.
when launched, wmfs-fifo can recieve commands, scripts-outputs or action for wmfs.
the project is on github, so you can clone the git repertory:
git clone git://github.com/linkdd/wmfs-fifo.git
or download the tgz/zip sources
once the directory cloned or obtained the sources, change to the directory and then perform a classical installation:
make
sudo make install
or
sudo make install PREFIX=/usr/local
or
sudo make install DESTDIR=~/.local/
be sure to run wmfs-fifo before any program which use it.
wmfs-fifo &
echo "spawn urxvtc" > /tmp/wmfs-$DISPLAY.fifo
example: launch irssi, change tag then launch firefox:
urxvtc -title irssi -e irssi
echo "tag_next" > /tmp/wmfs-$DISPLAY.fifo
firefox &
how to send informations to wmfs-statusbar with wmfs-fifo:
- with conky: put the texte “status infobar_name” at the beginning of the conky output section. replace ‘infobar_name’ with the name of the bar where you want the conky output to be displayed, ex: then send the conky output to the fifo from your ~/.xinitrc:
TEXT status bottombar ^s[right;\#FFFFFF;${time %I:%M %P}]
wmfs-fifo & conky > /tmp/wmfs-$DISPLAY.fifo
- with a bash script: the same rule, “status infobar_name” text has to be placed on your script output, ex:
while true; do echo "status bottombar `date +%I:%M:%S`" > /tmp/wmfs-$DISPLAY.fifo ; done