You are not logged in.
Hi there,
I'm just looking for some help with something that is probably really easy to do.
I am running Ratpoison on my netbook and every time I want to check my battery level, I have to open a terminal and type "acpi". What I would like to do is somehow bind a key so that the output of acpi is displayed in the top-right corner of my screen, just like when I hit C-t a to see the time and date. Could someone help my with the correct thing to put in my ratpoisonrc?
Thanks in advance
Offline
I've keybound a small script:
#/bin/dash
ratpoison -c "echo `acpi | awk '{print $4, $3}' | tr -d ','`"
I've tried to keybind 'echo `acpi ...`' but it just displays the code unexecuted.
Edit:
Just rewrote my keybinding, getting rid of the shel-script.
bind C-a exec "ratpoison -c "echo `acpi | awk '{print $4, $3}' | tr -d ','`"
Last edited by Caedmon (2010-06-25 17:17:25)
Offline
Thanks mate! That works a treat. I had to remove the quotation mark before ratpoison to make it work, but it does exactly what i wanted it to!
Offline