Skip to content

Comments

patch: Xresources#11

Open
dudik wants to merge 1 commit intomasterfrom
xresources
Open

patch: Xresources#11
dudik wants to merge 1 commit intomasterfrom
xresources

Conversation

@dudik
Copy link
Owner

@dudik dudik commented Sep 1, 2020

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 dudik added the patch This pull request is a patch label Sep 1, 2020
owm111 pushed a commit to owm111/herbe that referenced this pull request Jun 18, 2022
screen dimensions, with Xresources support

Modified from dudik#21 such that it
applies on top of dudik#11 and
use_primary_montior can be taken from xrdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch This pull request is a patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant