XRQ(1)

πŸ“¦ version 0-unstable-2016-01, in nixpkgs unstable

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