HOWTO Invert X colours on the fly

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

HOWTO Invert X colours on the fly

#1 Post by GustavoYz »

Two steps.
1- Install xcalib (maybe newer puppies have it, not sure).
2- Find a way of bind it to a keyboard shortcut.

1- Easy, install the pet below.
2- In OpenBox, you need to add something like this to your rc.xml:

Code: Select all

<keybind key="C-A-i">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Colorines</name>
        </startupnotify>
        <command>xcalib -invert -alter</command>
      </action>
    </keybind>
Add it after:

Code: Select all

<!-- Keybindings for running applications -->
and dont interrupt any previous entry (between the 'keybind' tags).
Then just restart X and try it out.
For others wm, search here.

*It works for me, as I tend to use black themes, to read from the screen when is a bare light.
Enjoy.
Attachments
xcalib_0.8.pet
xcalib package, tested in qrky 1.2.
(16.48 KiB) Downloaded 600 times

User avatar
harii4
Posts: 448
Joined: Fri 30 Jan 2009, 04:08
Location: La Porte City, IA , U.S.A.
Contact:

#2 Post by harii4 »

For others wm, search here.
Is there an missing link/url? :?
3.01 Fat Free / Fire Hydrant featherweight/ TXZ_pup / 431JP2012
----------------------------------------------------------------------------------------
Peace and Justice are two sides of the same coin.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#3 Post by Karl Godt »

Nice , works on Puppy 4.3.1 ..

Will have to make a script and a button for that ..
Attachments
xcalib.png
(100.05 KiB) Downloaded 1259 times

User avatar
Barkin
Posts: 803
Joined: Fri 12 Aug 2011, 04:55

#4 Post by Barkin »

Karl Godt wrote:Nice , works on Puppy 4.3.1 ..
your screengrab, "xcalib.png", doesn't appear inverted (negative) to me,
the attachment may appear inverted on your computer, but not on mine ...
Attachments
not inverted.jpg
Screengrab of what xcalib.png looks like on my computer
(98.82 KiB) Downloaded 547 times

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#5 Post by Karl Godt »

BETTER ?
Attachments
xcalib.png
(99.39 KiB) Downloaded 1232 times

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#6 Post by musher0 »

harii4 wrote:
For others wm, search here.
Is there an missing link/url? :?
Hi, gustavo.

Same question as harii4: where do we search to make this work with other wm's?

Thanks in advance.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#7 Post by vovchik »

Dear all,

Works fine in Lucid and and icewm. Thanks.

With kind regards,
vovchik

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#8 Post by GustavoYz »

Hi all.
In first place, you invert monitor colours, so the screencap will not show it, but it looks exactly as Karl Godt's doctored screencap shown.
I meant this link (Patriot's about shortcuts jwm).
Feel free to post other ways in other wms.

All is about make 'handy' the command:

Code: Select all

xcalib -invert -alter

somehow.
I used OpenBox's configs for that.
Sorry for the confusion.
Last edited by GustavoYz on Thu 24 Jan 2013, 07:04, edited 3 times in total.

User avatar
Barkin
Posts: 803
Joined: Fri 12 Aug 2011, 04:55

#9 Post by Barkin »

Karl Godt wrote:BETTER ?
Yes: that 2nd version of xcailib.png appears inverted on my computer.

User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#10 Post by Karl Godt »

I have just inverted the colors of the screenshot in mtpaint . This does exactly the same as xcalib does .

Did not realize this behaviour .

Its like dark sunglasses on the surface of the screen , but everything underneath of it stays as before .

8)

Post Reply