ayekat / localdir

Personal configuration files
65 stars 3 forks source link

Light theme for urxvt/vim #3

Open ayekat opened 9 years ago

ayekat commented 9 years ago

Text is generally easier to read at lower screen brightness if it's dark foreground on white background. This would save energy.

We would ideally have a simple way of switching "profiles" (urxvt has the feature of classes, I'll need to see if this is useful for this case). Vim supports multiple colour schemes (we need to properly export the homebrew colour scheme to a separate file).

roosemberth commented 6 years ago

urxvt has the feature of classes, I'll need to see if this is useful for this case

Can urxvt "dynamically" switch the theme?

ayekat commented 6 years ago

There are ways to use ANSI escape sequences to change the X window properties (see the section XTerm Operating System Commands in urxvt(7), notably the byte sequence \033]3;...\007).

But I don't know if URxvt would properly switch its settings as well (otherwise we'd need to use the ANSI escape sequences to redefine the 16 base colours and the fore- and background colours, which would be rather ugly).

Another thing I haven't really looked at is if there is a way for vim to detect whether it's running in a light background environment or a dark background environment (I doubt it). And the load of other applications that also use colour schemes that are rather optimised for a dark background.

Many questions, few answers... ^^