Page 1 of 1

Any good Night-Mode settings?

PostPosted: 2019-11-12 11:55
by bester69
Hi,
I'd like some good NightMode script settings for eyestrain..

I saw we can use, xcalib and xgamma..

We can invert gamma: xcalib -i -a, but dont like very much the result, its like down in contrast or kind of that. So I'd like to find a good looking and confortable profile for Night reading, do you have anything about it?


thanks.

Re: Any good Night-Mode settings?

PostPosted: 2019-11-12 14:23
by Lecram
there is an app called redshift and its GUI ounterpart redshift-gtk in the repo. You can use that for night mode settings

Re: Any good Night-Mode settings?

PostPosted: 2019-11-12 18:53
by Hallvor
For KDE:
plasma-applet-redshift-control

Re: Any good Night-Mode settings?

PostPosted: 2019-11-12 19:15
by stevepusser
Some apps also have a night mode built into them, such as Cool Reader 3 (it's not in Debian, though).

Re: Any good Night-Mode settings?

PostPosted: 2019-11-13 14:03
by bester69
thanks to all for help,

I was looking for something like wps night mode in okular and libreoffice, trying to play with xcalib or/and xgamma, then i tried with PLasma night/reversed themes, and then I realised these apps manage colors in a embeded way.. (for libreoffice would be changing colors to default template)
So, Its as easy as creating an addtional config profile that apply these colors and a shortcut launch that open the app with that config profile (Night mode).
And the script for NightMode Okular would be such as.:

Nokular.sh
Code: Select all
#!/bin/bash
#
SMPATH=/home/user/.kde/share/config
SAPATH=/home/user/.altconfig/share/config
SCRPATH=/home/user/LINUXDEBS/scripts
export KDEHOME=$HOME/.altconfig

mkdir $HOME/.altconfig
mkdir -p $KDEHOME/share/config

cp $SMPATH/okularrc $SAPATH/okularrc
cp $SMPATH/okularpartrc $SAPATH/okularpartrc

SAPATH=/home/user/.altconfig/share/config
refn=$(grep -n  "ChangeColors" $SAPATH/okularpartrc | cut -d':' -f 1)

if [  -z $refn ]
then
sed -i '/Document/a ChangeColors=true' $SAPATH/okularpartrc
fi
okular "$@" 2> /dev/null
cp  $SAPATH/okularpartrc $SMPATH/okularpartrc
sed -i  '/ChangeColors/d' $SMPATH/okularpartrc


I dont know If these are a good pair of colors for night mode... Any suggestion here?. :roll:

Image

Re: Any good Night-Mode settings?

PostPosted: 2019-11-13 16:58
by bester69
Here, a lot of great colours combinations

https://www.designwizard.com/blog/desig ... ombination

Re: Any good Night-Mode settings?

PostPosted: 2019-11-14 16:47
by Lecram
so bester, what you wanted was night mode settings in an program rather than system wide like stevepusser suggested.

Re: Any good Night-Mode settings?

PostPosted: 2019-11-14 16:48
by alan stone

Re: Any good Night-Mode settings?

PostPosted: 2019-11-15 12:08
by bester69
Lecram wrote:so bester, what you wanted was night mode settings in an program rather than system wide like stevepusser suggested.

yeah, I prefered so, Ive installed an addon in chrome that works very well inverting colors but picture ones,.,
With PDF reader (okular), Ive created a script mode-night that open it with in a different profile with accesibility colours setted, And finally, for libreoffice ive seen we ca use a template for this purpose. So we can open libreoffice in a mode-night by using a different profile with a default template in a mode-night colours.. or we can just convert a document by applying that template so we can just read it in libreoffice.

here, what we can do, for example for editing a document while we convert it in a mode-night fashion.
Code: Select all
unoconv -t modenight.ott -f odt mymail.txt

and here, the result after applying a libreoffice template with colours pre-setted.:

Image

Re: Any good Night-Mode settings?

PostPosted: 2019-11-20 18:48
by bester69
I love this color template combination; I copied from bookworm viewer, and use it with calibre viewer

lovely for night

Image

Re: Any good Night-Mode settings?

PostPosted: 2019-11-20 21:02
by L_V
Hallvor wrote:For KDE:
plasma-applet-redshift-control

And now without any widget, kcm_nightcolor.
Code: Select all
kcmshell5 kcm_nightcolor

(for very updated plasma release / not available in buster or tbc).

Re: Any good Night-Mode settings?

PostPosted: 2019-11-23 11:56
by Head_on_a_Stick