LemonBoy / bar

A featherweight, lemon-scented, bar based on xcb
MIT License
1.63k stars 194 forks source link

buttons wont work #84

Closed suptimal closed 10 years ago

suptimal commented 10 years ago

i tried the example from the man page:

echo '%{A:reboot:} Click here to reboot %{A}'| bar -p

but the bar only echoes reboot.

Mishio595 commented 10 years ago

That's how bar is designed to function. "bar | sh" is a simple way to execute the output of bar

My personal use is in the format shown below which allows me to configure shorthand commands like "C mpd" to toggle my conky popup for mpd

bar | \
while read -r line ; do
    case $line in
        #Cases for output from bar
    esac
done
suptimal commented 10 years ago

shame on me, Thx.