Skip to content

Instantly share code, notes, and snippets.

@XMPPwocky
Created January 29, 2014 14:33
Show Gist options
  • Save XMPPwocky/8689214 to your computer and use it in GitHub Desktop.
Save XMPPwocky/8689214 to your computer and use it in GitHub Desktop.
backlight
<TaskerData sr="" dvi="1" tv="4.2u3m">
<Task sr="task29">
<cdate>1390938448937</cdate>
<edate>1390951832560</edate>
<id>29</id>
<nme>Set Brightness</nme>
<pri>10</pri>
<Action sr="act0" ve="3">
<code>417</code>
<Str sr="arg0" ve="3">backlight.cfg</Str>
<Str sr="arg1" ve="3">%backlightcfg</Str>
</Action>
<Action sr="act1" ve="3">
<code>590</code>
<Str sr="arg0" ve="3">%backlightcfg</Str>
<Str sr="arg1" ve="3">,</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act10" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%lerpval</Str>
<Str sr="arg1" ve="3">(%lastpair2)+((%currpair2 - %lastpair2)*((%par1 - %lastpair1)/(%currpair1 - %lastpair1)))</Str>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act11" ve="3">
<code>547</code>
<lhs>%lerpval</lhs>
<op>4</op>
<rhs>255</rhs>
<Str sr="arg0" ve="3">%lerpval</Str>
<Str sr="arg1" ve="3">255</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act12" ve="3">
<code>810</code>
<Int sr="arg0">
<var>%lerpval</var>
</Int>
<Int sr="arg1" val="1"/>
<Int sr="arg2" val="1"/>
<Int sr="arg3" val="1"/>
</Action>
<Action sr="act13" ve="3">
<code>548</code>
<Str sr="arg0" ve="3">%par1 : %lerpval</Str>
<Int sr="arg1" val="0"/>
</Action>
<Action sr="act2" ve="3">
<code>39</code>
<Str sr="arg0" ve="3">%currpair</Str>
<Str sr="arg1" ve="3">%backlightcfg()</Str>
</Action>
<Action sr="act3" ve="3">
<code>590</code>
<Str sr="arg0" ve="3">%currpair</Str>
<Str sr="arg1" ve="3">:</Str>
<Int sr="arg2" val="1"/>
</Action>
<Action sr="act4" ve="3">
<code>37</code>
<lhs>%currpair1</lhs>
<op>4</op>
<rhs>%par1</rhs>
</Action>
<Action sr="act5" ve="3">
<code>135</code>
<Int sr="arg0" val="3"/>
<Int sr="arg1" val="1"/>
<Str sr="arg2" ve="3"/>
</Action>
<Action sr="act6" ve="3">
<code>38</code>
</Action>
<Action sr="act7" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%lastpair1</Str>
<Str sr="arg1" ve="3">%currpair1</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act8" ve="3">
<code>547</code>
<Str sr="arg0" ve="3">%lastpair2</Str>
<Str sr="arg1" ve="3">%currpair2</Str>
<Int sr="arg2" val="0"/>
<Int sr="arg3" val="0"/>
</Action>
<Action sr="act9" ve="3">
<code>40</code>
</Action>
</Task>
</TaskerData>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment