Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Any good Night-Mode settings?

Off-Topic discussions about science, technology, and non Debian specific topics.
Post Reply
Message
Author
User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Any good Night-Mode settings?

#1 Post 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.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
Lecram
Posts: 120
Joined: 2009-06-03 08:54

Re: Any good Night-Mode settings?

#2 Post 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

User avatar
Hallvor
Global Moderator
Global Moderator
Posts: 2042
Joined: 2009-04-16 18:35
Location: Kristiansand, Norway
Has thanked: 149 times
Been thanked: 212 times

Re: Any good Night-Mode settings?

#3 Post by Hallvor »

For KDE:
plasma-applet-redshift-control
[HowTo] Install and configure Debian bookworm
Debian 12 | KDE Plasma | ThinkPad T440s | 4 × Intel® Core™ i7-4600U CPU @ 2.10GHz | 12 GiB RAM | Mesa Intel® HD Graphics 4400 | 1 TB SSD

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Any good Night-Mode settings?

#4 Post by stevepusser »

Some apps also have a night mode built into them, such as Cool Reader 3 (it's not in Debian, though).
MX Linux packager and developer

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Any good Night-Mode settings?

#5 Post 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
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Any good Night-Mode settings?

#6 Post by bester69 »

Here, a lot of great colours combinations

https://www.designwizard.com/blog/desig ... ombination
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
Lecram
Posts: 120
Joined: 2009-06-03 08:54

Re: Any good Night-Mode settings?

#7 Post by Lecram »

so bester, what you wanted was night mode settings in an program rather than system wide like stevepusser suggested.


User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Any good Night-Mode settings?

#9 Post 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
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

User avatar
bester69
Posts: 2072
Joined: 2015-04-02 13:15
Has thanked: 24 times
Been thanked: 14 times

Re: Any good Night-Mode settings?

#10 Post by bester69 »

I love this color template combination; I copied from bookworm viewer, and use it with calibre viewer

lovely for night

Image
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: Any good Night-Mode settings?

#11 Post 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).

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Any good Night-Mode settings?

#12 Post by Head_on_a_Stick »

deadbang

Post Reply