nixos-configs/nixosModules/ags/config/widgets/bar/items/brightness.tsx
matt1432 4604dcb6fd
All checks were successful
Discord / discord commits (push) Has been skipped
fix(ags): move get_default calls inside functions
2024-11-20 23:38: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>
);
};