16 lines
241 B
Fish
16 lines
241 B
Fish
#!/bin/fish
|
|
|
|
function inc_brightness
|
|
|
|
brightnessctl -q set +5%
|
|
|
|
set -f cur ( brightnessctl get )
|
|
set -f max ( brightnessctl max )
|
|
|
|
set -f ret ( math -s0 "100 * $cur / $max" )
|
|
|
|
#echo $ret > /tmp/xobpipe
|
|
echo $ret
|
|
|
|
end
|