Crates.io | pino_xrdb |
lib.rs | pino_xrdb |
version | 0.1.0 |
source | src |
created_at | 2022-11-19 18:38:34.843065 |
updated_at | 2022-11-19 18:38:34.843065 |
description | Simple xrdb query library |
homepage | |
repository | https://github.com/MrPicklePinosaur/pino_xutils.git |
max_upload_size | |
id | 718645 |
size | 8,166 |
Requires xrdb
to be installed on the system as this library directly calls
xrdb
and parses it.
It is very simple to query the xrdb
of the system.
use pino_xrdb::Xrdb;
fn main() {
let mut xrdb = Xrdb::new();
xrdb.read().unwrap();
if let Some(value) = xrdb.query("dwm", "color1") {
println!("dwm.color1 has value {}", value);
} else {
println!("dwm.color1 not found");
}
}