nixos-configs/modules/ags/config/widgets/bar/items/brightness.tsx

23 lines
557 B
TypeScript
Raw Permalink Normal View History

2024-11-03 23:35:53 -05:00
import { bind } from 'astal';
import Brightness from '../../../services/brightness';
export default () => {
const brightness = Brightness.get_default();
2024-11-03 23:35:53 -05:00
return (
<box className="bar-item brightness">
<overlay>
<circularprogress
startAt={0.75}
endAt={0.75}
value={bind(brightness, 'screen')}
2024-11-03 23:35:53 -05:00
rounded
/>
<icon icon={bind(brightness, 'screenIcon')} />
2024-11-03 23:35:53 -05:00
</overlay>
</box>
);
};