Notices


Reply
Thread Tools
NightShift79's Avatar
Posts: 417 | Thanked: 200 times | Joined on Apr 2010 @ Germany
#61
ooops.
... I reversed + and -

Here's the fixed design.


...and sure you can use it in your zip.
 

The Following 2 Users Say Thank You to NightShift79 For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#62
just made a draft on the circle version

it works but i need someone to edit the image and make the "background" transparent
the off button is not in effect but the code is included as the last "if then" variable where when pressed now it just does "x=$x"
the image is in the attached zip. install is done with copying the image to /MyDocs/.images/queen_beecon_dir and import the "circle" with QBW

circle.zip

making this was pretty easy, just had to put in QBW_CLICK_Y and make "boxes", but my skills isn't great ether with image editing and i can't seem to make the background transparent so that the circle is all you see.
Attached Images
 

Last edited by dr_frost_dk; 2011-02-08 at 14:38.
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
Posts: 105 | Thanked: 73 times | Joined on Jan 2011
#63
Hey,
I quickly set up 2 pics at home, before going to work again. I applied the circle one to yours and it kinda fits, even that mine is smaller than the one you did. but it works. I also removed the middle down button for now. On the sketch it was meant for the keyb backlight switch, but as that isn't working yet...

Then there is this smallish bar. I didn't test that one yet.

Cheers.

PS: Those are colored to fit my theme. If you want I can make them in black or grey, to be more neutral for your usage...
Attached Images
  
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#64
i will rework the programming today and accommodate for your designs, will post when ready
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
Posts: 105 | Thanked: 73 times | Joined on Jan 2011
#65
Actually I just tried the small bar of mine and updated the code for myself. I kinda love it for the small size.

And. I just tried how would the circle look like even smaller (love multitasking on this "phone").. Think you can amend it for 100x100 size as well? I would have hard time deciding which of them to use, but would love to see it work in that size and can't really update that one here....


btw: to easen your work, this is the updated code for the small bar

Code:
x=$(cat /home/user/custom_brightness_settings)
level1=40
level2=110
level3=160
level4=255
cx=$QBW_CLICK_X
if [ $cx -ge 1 -a $cx -le 27 ];then x=$(expr $x - 20);fi
if [ $cx -ge 28 -a $cx -le 54 ];then x=$level1;fi
if [ $cx -ge 55 -a $cx -le 81 ];then x=$level2;fi
if [ $cx -ge 82 -a $cx -le 108 ];then x=$level3;fi
if [ $cx -ge 108 -a $cx -le 135 ];then x=$level4;fi
if [ $cx -ge 136 -a $cx -le 162 ];then x=$(expr $x + 20);fi
if [ $x -le 2 ];then x=2;fi
if [ $x -ge 255 ];then x=255;fi
echo $x "    "
echo $x >/home/user/custom_brightness_settings
echo "cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness" | sudo gainroot > /dev/null
 

The Following User Says Thank You to Tinukedaya For This Useful Post:
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#66
Originally Posted by Tinukedaya View Post
Actually I just tried the small bar of mine and updated the code for myself. I kinda love it for the small size.

And. I just tried how would the circle look like even smaller (love multitasking on this "phone").. Think you can amend it for 100x100 size as well? I would have hard time deciding which of them to use, but would love to see it work in that size and can't really update that one here....


btw: to easen your work, this is the updated code for the small bar

Code:
x=$(cat /home/user/custom_brightness_settings)
level1=40
level2=110
level3=160
level4=255
cx=$QBW_CLICK_X
if [ $cx -ge 1 -a $cx -le 27 ];then x=$(expr $x - 20);fi
if [ $cx -ge 28 -a $cx -le 54 ];then x=$level1;fi
if [ $cx -ge 55 -a $cx -le 81 ];then x=$level2;fi
if [ $cx -ge 82 -a $cx -le 108 ];then x=$level3;fi
if [ $cx -ge 108 -a $cx -le 135 ];then x=$level4;fi
if [ $cx -ge 136 -a $cx -le 162 ];then x=$(expr $x + 20);fi
if [ $x -le 2 ];then x=2;fi
if [ $x -ge 255 ];then x=255;fi
echo $x "    "
echo $x >/home/user/custom_brightness_settings
echo "cat /home/user/custom_brightness_settings >/sys/class/backlight/acx565akm/brightness" | sudo gainroot > /dev/null
ill get to work on your circle within the next hours, if you want to have it smaller than 140x140 you have to make a new one, because you can apparently make it transparent , i can't really figure out how to do this probably, and i get a kind of mental melt down when i open gimp.... to many options and such.....
i use kolour paint since thats my advancement in paint, use to use mspaint...
 
Posts: 105 | Thanked: 73 times | Joined on Jan 2011
#67
hehe, I can't really reduce the size now, but might be able to sort that, hang on.

in the mean time check this possible for use as Keyboard backlight swich?

I'm not really into coding, so I let others decide if it's applicable

Cheers!
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#68
here's a zip with the circle and widget to go with it.
let me know if it works alright.
Attached Files
File Type: zip Brightness circle - Tinukedaya.zip (11.0 KB, 76 views)
 

The Following 2 Users Say Thank You to dr_frost_dk For This Useful Post:
Posts: 105 | Thanked: 73 times | Joined on Jan 2011
#69
Works perfect. Now the small one. I manage to get the smaller version, so please, check it up for the code. Thanks!

Btw: did you check the link about the keyb backlight?
Attached Images
 
 
NightShift79's Avatar
Posts: 417 | Thanked: 200 times | Joined on Apr 2010 @ Germany
#70
awaiting next version
...ready for testing.
 
Reply

Tags
brightness, display, light sensor, screen


 
Forum Jump


All times are GMT. The time now is 01:03.