| Author |
Message |
GustavoYz

Joined: 07 Jul 2010 Posts: 864 Location: .ar
|
Posted: Fri 06 Jan 2012, 22:59 Post subject:
HOWTO Invert X colours on the fly Subject description: using xcalib |
|
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: | <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: | | <!-- 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.
| Description |
xcalib package, tested in qrky 1.2.
|

Download |
| Filename |
xcalib_0.8.pet |
| Filesize |
16.48 KB |
| Downloaded |
168 Time(s) |
_________________

|
|
Back to top
|
|
 |
harii4

Joined: 30 Jan 2009 Posts: 443 Location: La Porte City, IA , U.S.A.
|
Posted: Sun 15 Jan 2012, 11:12 Post subject:
|
|
| Quote: | | 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.
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2671 Location: Kiel,Germany
|
Posted: Sun 15 Jan 2012, 12:23 Post subject:
|
|
Nice , works on Puppy 4.3.1 ..
Will have to make a script and a button for that ..
| Description |
|
| Filesize |
100.05 KB |
| Viewed |
528 Time(s) |

|
|
|
Back to top
|
|
 |
Barkin

Joined: 12 Aug 2011 Posts: 463
|
Posted: Sun 15 Jan 2012, 16:03 Post subject:
|
|
| 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 ...
| Description |
Screengrab of what xcalib.png looks like on my computer
|

Download |
| Filename |
not inverted.jpg |
| Filesize |
98.82 KB |
| Downloaded |
153 Time(s) |
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2671 Location: Kiel,Germany
|
Posted: Sun 15 Jan 2012, 16:34 Post subject:
|
|
BETTER ?
| Description |
|
| Filesize |
99.39 KB |
| Viewed |
503 Time(s) |

|
|
|
Back to top
|
|
 |
musher0

Joined: 04 Jan 2009 Posts: 2192 Location: Gatineau (Qc), Canada
|
Posted: Sun 15 Jan 2012, 16:53 Post subject:
|
|
| harii4 wrote: | | Quote: | | 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.
_________________
"...l'industrie de l'informatique n'aura besoin que de très peu de temps pour ramener l'humanité aux dessins rupestres." (M. Goebbel, Order of the Command Line; [ma trad.])
|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1229 Location: Ukraine
|
Posted: Sun 15 Jan 2012, 18:03 Post subject:
|
|
Dear all,
Works fine in Lucid and and icewm. Thanks.
With kind regards,
vovchik
|
|
Back to top
|
|
 |
GustavoYz

Joined: 07 Jul 2010 Posts: 864 Location: .ar
|
Posted: Sun 15 Jan 2012, 18:10 Post subject:
|
|
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: | | xcalib -invert -alter |
somehow.
I used OpenBox's configs for that.
Sorry for the confusion.
_________________

Last edited by GustavoYz on Thu 24 Jan 2013, 03:04; edited 3 times in total
|
|
Back to top
|
|
 |
Barkin

Joined: 12 Aug 2011 Posts: 463
|
Posted: Sun 15 Jan 2012, 23:46 Post subject:
|
|
| Karl Godt wrote: | | BETTER ? |
Yes: that 2nd version of xcailib.png appears inverted on my computer.
|
|
Back to top
|
|
 |
Karl Godt

Joined: 20 Jun 2010 Posts: 2671 Location: Kiel,Germany
|
Posted: Mon 16 Jan 2012, 00:06 Post subject:
|
|
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 .
|
|
Back to top
|
|
 |
|