Module beautiful.xresources

Library for getting xrdb data.

Info:

Functions

get_current_theme () Get current base colorscheme from xrdb.
set_dpi (dpi[, s]) Set DPI for a given screen (defaults to global).
apply_dpi (size[, s]) Compute resulting size applying current DPI value (optionally per screen).

Deprecated functions

get_dpi Get global or per-screen DPI value falling back to xrdb.


Functions

Methods
get_current_theme ()
Get current base colorscheme from xrdb.

Returns:

    table Color table with keys ‘background’, ‘foreground’ and ‘color0’..‘color15’
set_dpi (dpi[, s])
Set DPI for a given screen (defaults to global).
  • dpi number DPI value.
  • s integer Screen. (optional)
apply_dpi (size[, s])
Compute resulting size applying current DPI value (optionally per screen).
  • size number Size
  • s integer or screen The screen. (optional)

Returns:

    integer Resulting size (rounded to integer).

Deprecated functions

get_dpi
Get global or per-screen DPI value falling back to xrdb.

This function is deprecated. Use s.dpi and avoid getting the DPI without a screen.

param:

  • s integer or screen The screen. (optional)
generated by LDoc 1.4.6 Last updated 2030-01-01 00:00:00