XRQ(1)
NAME π
xrq β query the X Resource Database. Yup bestie, this is the xrq(1) manual page, and it's lowkey iconic π
SYNOPSIS πΈ
xrq resource [...]
DESCRIPTION π¦
Okay so here's the tea β: xrq queries the X Resource Database for the values of the given resources and prints them to the standard output. That's it, that's the whole vibe β¨
ENVIRONMENT π
xrq acts on the X display specified by the DISPLAY variable. Don't forget about her, she's the main character of where this runs π«Ά
EXAMPLES β¨
At the computer and time of writing, the following command
$ xrq URxvt.foreground URxvt.background URxvt.font
Yields the following values
#b7bdcc
#14181f
-*-tewi-medium-*-*-*-11-*-*-*-*-*-iso10646-*
For querying all 16 colors, one could take advantage of shell expansion.
$ xrq URxvt.color{0..15}
yields
#2b303b
#994e55
#849971
#c5aa75
#707e8c
#8f7189
#778f8e
#a6aab2
#4d576b
#bf616a
#a3be8c
#ebcb8b
#8fa1b3
#b48ead
#96b5b4
#b9bbbe
If in your ~/.Xresources or ~/.Xdefaults you use glob patterns β such as *color4: #aabbcc β you could simply skip the class's name that precedes the resource name. thus the above commands could become this:
$ xrq color{0..15}
SEE ALSO π
mwah π source/version vibes: this one's from the XRQ(1) manual page, dated October 20, 2015 β now go query your little heart out π«Άπ
π¦ where this page comes from
- nixpkgs unstable: xrq 0-unstable-2016-01-15
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms