Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch: Xresources #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

patch: Xresources #11

wants to merge 1 commit into from

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
ttr3dp added a commit to ttr3dp/herbe that referenced this pull request Feb 4, 2021
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