herbe icon indicating copy to clipboard operation
herbe copied to clipboard

patch: Xresources

Open dudik opened this issue 5 years ago • 0 comments

Description

Allows loading settings from ~/.Xresources. This removes the need to compile from source (except for patching).

All settings are supported except DISMISS_BUTTON and ACTION_BUTTON (will add eventually, comment if interested).

Names of resources are exactly the same as variable names in config.def.h. Settings not found in ~/.Xresources will be set to their default value taken from config.def.h.

Example ~./Xresources file copying default settings:

herbe.background_color: #3e3e3e
herbe.border_color: #ececec
herbe.font_color: #ececec
herbe.font_pattern: monospace:size=10
herbe.line_spacing: 5
herbe.padding: 15
herbe.width: 450
herbe.border_size: 2
herbe.pos_x: 30
herbe.pos_y: 60
! 0 = TOP_LEFT, 1 = TOP_RIGHT, 2 = BOTTOM_LEFT, 3 = BOTTOM_RIGHT
herbe.corner: 1
herbe.duration: 5

Load with:

$ xrdb ~/.Xresources

Download

https://patch-diff.githubusercontent.com/raw/dudik/herbe/pull/11.diff

dudik avatar Sep 01 '20 12:09 dudik