Topic: rc.xml keybindings for conky
I know people had asked for some automated way to get all of their keybindings into conky. Well I'm taking an xml class now and learning xquery, so I figured I'd whip something up:
declare default element namespace "http://openbox.org/3.4/rc";
declare option saxon:output "method=text";
for $keybind in doc("rc.xml")/openbox_config/keyboard/keybind
return concat("key: ",
$keybind/@key/data(.),
"		name: ",
string-join($keybind/action/@name/data(.), ","),
" ",
$keybind/action/desktop/text(),
" ",
$keybind/action/command/text(),
$keybind/action/execute/text(),
"
")save this as rc.xquery and change the doc("rc.xml") part to the path to your rc.xml. Then install saxonb, it's in the repos, and put it in your conky like:
${exec saxonb-xquery /path/to/rc.xquery}