You are not logged in.

#1 2021-04-29 00:51:32

eggrole
Member
Registered: 2021-01-30
Posts: 13

[Solved] Configuring sxiv in Xresources

I am trying to change some configuration settings for sxiv via xresources.

From the sxiv man page:

The following X resources are supported:
background Color of the window background and bar foreground
foreground Color of the window foreground and bar background
font   Name of Xft bar font

After reading https://wiki.archlinux.org/index.php/X_ … ces_syntax
I can see this is the syntax I need in ~/.Xresources is:

name.Class.resource: value

I have successfully made changes to xterm via Xresources using wildcards. For
example:

xterm*foreground: Grey
xterm*background: rgb:00/00/00

When I try

sxiv*background: Green

it doesn't change anything. I use xrdb ~/.Xresources after making the change,
but still nothing.

I would like to use the Class instead of the wildcard, but I don't know what
Classes are available.

Any help as to how I can change the back/foreground and font in sxiv would be
appreciated.

Last edited by eggrole (2021-04-29 02:30:20)

Offline

#2 2021-04-29 02:08:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Configuring sxiv in Xresources

The class is Sxiv, so the following works:

Sxiv.background: green

You can always check the resource class and name of any program with xprop.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-04-29 02:29:51

eggrole
Member
Registered: 2021-01-30
Posts: 13

Re: [Solved] Configuring sxiv in Xresources

Worked like a charm. I feel like such an idiot for not trying to capitalize the sxiv! Thank you.

Offline

Board footer

Powered by FluxBB