#!/bin/bash

BACKLIGHT=~/.backlight

usleep 250000 # term stabilization 

dialog --scrollbar --default-item `pptk-backlight get` --menu Backlight 0 0 10 \
	10 FULL \
	9  :::: \
	8  :::. \
	7  ::: \
	6  ::. \
	5  :: \
	4  :. \
	3  MIN \
	2>$BACKLIGHT && pptk-backlight set `cat $BACKLIGHT`

