nixos-configs/modules/ags/config/widgets/bar/items/brightness.tsx
matt1432 6ca0d7248b
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: rename some flake attr directories
2024-12-16 15:51:41 -05:00

22 lines
557 B
TypeScript

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