Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 27 Mar 2015, 12:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
F.lux or Redshift
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Author Message
totolanio

Joined: 03 Jan 2015
Posts: 153

PostPosted: Mon 26 Jan 2015, 18:20    Post subject:  F.lux or Redshift
Subject description: take care of your eyes !
 

Hi,

Can someone make a SFS or a .pet for F.lux or Redshift please ?
It's made to darken the bright screens when it's nighttime.

Redshift is in ubuntu repo but it requires dependencies and these tons of dependencies are really annoying when you don't even know what they do.
Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 632
Location: El Salvador

PostPosted: Mon 26 Jan 2015, 18:32    Post subject:  

redshiftgui-0.2.1.pet MD5SUM 75976303cd2b4c3f6321208bff550c9f
_________________
My blog | | Github


Back to top
View user's profile Send private message 
totolanio

Joined: 03 Jan 2015
Posts: 153

PostPosted: Tue 27 Jan 2015, 11:56    Post subject:  

thank you a lot !

If someone has flux too I'm very interested (because I'm not sure redshift is fitting my eyes actually, this red light is weird)
Back to top
View user's profile Send private message 
wboz

Joined: 20 Nov 2013
Posts: 191

PostPosted: Tue 27 Jan 2015, 18:36    Post subject:  

I thought f.lux did not have a Linux version. Or maybe it's not in the repositories of common distros. Not sure.

Do these things work with external monitors?

I've used f.lux on windows and found it useful.
Back to top
View user's profile Send private message 
totolanio

Joined: 03 Jan 2015
Posts: 153

PostPosted: Tue 27 Jan 2015, 21:13    Post subject:  

no idea, but you can use redshift and say what you think of it here maybe ?
If you know another ?

I guess flux is now ported on linux because I surfed on the official website and there were some tar stuff Razz
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 4696
Location: World_Hub

PostPosted: Tue 27 Jan 2015, 23:04    Post subject:  

Wink https://launchpad.net/~kilian/+archive/ubuntu/f.lux/+packages
_________________
>>>Punctuation Crash Course<<<
Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 632
Location: El Salvador

PostPosted: Wed 28 Jan 2015, 00:18    Post subject:  

what about this XD
Code:
#!/bin/sh
activeOutput=$(xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")
alpha=`zenity --scale --text "Brightness" --min-value=10 --max-value=100 --value=90`
alpha=`echo $alpha / 100 | bc -l`
`xrandr --output $activeOutput --brightness $alpha`

_________________
My blog | | Github


Back to top
View user's profile Send private message 
nilsonmorales


Joined: 15 Apr 2011
Posts: 632
Location: El Salvador

PostPosted: Wed 28 Jan 2015, 00:33    Post subject:  

Here another XD
Code:
#!/bin/sh
# brillo.sh
 
_help()
{
echo
echo "Uso:"
echo "$0 [No args] Ajusta/resetea brillo por defecto (1.0)."
echo "$0 + Incrementa brillo en 0.5."
echo "$0 - reduce brillo en 0.5."
echo "$0 Número ajusta el brillo a N (rango usable .7 - 1.2)."
}

 
bright=$(xrandr --verbose | grep rightness | awk '{ print $2 }')
#NOMBRE_DISP=$(xrandr | grep "connected" | awk '{print $1}')
NOMBRE_DISP=$(xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/")
INCR=0.1
DEFAULT=1.0

case $1 in
+)bright=$(echo "scale=2; $bright + $INCR" | bc);;
-)bright=$(echo "scale=2; $bright - $INCR" | bc);;
*)_help ;;
reset)xrandr --output "$NOMBRE_DISP" --brightness $DEFAULT
esac

xrandr --output "$NOMBRE_DISP" --brightness "$bright" # ver el manual de xarndr.
echo "Brillo actual = $bright"
exit

Usage: just type in terminal ./brillo.sh + or ./brillo.sh -
Always you can make better the code

_________________
My blog | | Github


Back to top
View user's profile Send private message 
totolanio

Joined: 03 Jan 2015
Posts: 153

PostPosted: Wed 28 Jan 2015, 14:34    Post subject:  

that flux.deb installs coreectly, no dependencies needed but when you click on it, it does nothing (same for the tar.gz)
??o_0??!
Someone could install it?
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 4696
Location: World_Hub

PostPosted: Wed 28 Jan 2015, 14:59    Post subject:  

No dependencies? You should know by now to run binaries from a shell when they don't fire.

Now about Nilson's response.. Do you understand what he posted in those "code" wraps?

_________________
>>>Punctuation Crash Course<<<
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1637
Location: Queensland

PostPosted: Wed 28 Jan 2015, 17:10    Post subject:  

totolanio wrote:
that flux.deb installs coreectly, no dependencies needed but when you click on it, it does nothing (same for the tar.gz)
??o_0??!
Someone could install it?


f.lux-indicator-applet requires Python, gnome-python, pyxdg, python-appindicator. pexpect, ptyprocess, appindicator..............? and the list goes on.

There is a command line only version, it works xflux-pre.tgz, just write a script to run it with your location and place that in Startup.

Code:
--------
Welcome to xflux (f.lux for X)
This will only work if you're running X on console.

Usage: xflux [-z zipcode | -l latitude] [-g longitude] [-k colortemp (default 3400)] [-r 1 (use randr)] [-nofork]
protip: Say where you are (use -z or -l).


I'd stick with Redshiftgui, it just works.

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 4696
Location: World_Hub

PostPosted: Wed 28 Jan 2015, 17:29    Post subject:  

Nilson, do you find the forum doesn't correctly wrap code for copy'n paste?

How about you Geoffrey?

Obviously if I go'n grab your code contents via quote, it's fine.. I'm asking from a non-logged, direct copy'n paste..
Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1637
Location: Queensland

PostPosted: Wed 28 Jan 2015, 18:58    Post subject:  

Semme wrote:
How about you Geoffrey?


No problem copy n pasting code directly from the forum posting.

_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Semme

Joined: 07 Aug 2011
Posts: 4696
Location: World_Hub

PostPosted: Wed 28 Jan 2015, 19:03    Post subject:  

You mean text isn't shifted when pasting into Geany?
so-saving-like-this-doesnt-matter.jpg
 Description   
 Filesize   41.79 KB
 Viewed   110 Time(s)

so-saving-like-this-doesnt-matter.jpg

Back to top
View user's profile Send private message 
Geoffrey


Joined: 30 May 2010
Posts: 1637
Location: Queensland

PostPosted: Wed 28 Jan 2015, 19:47    Post subject:  

That's weird, I tried leafpad that's ok too, can't duplicate your result Confused
Na-all-good-here.jpg
 Description   
 Filesize   25.49 KB
 Viewed   105 Time(s)

Na-all-good-here.jpg


_________________
Carolina: Recent Repository Additions
Create strikethrough text HERE
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [24 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » REQUESTS
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0737s ][ Queries: 12 (0.0052s) ][ GZIP on ]