nixos-configs/nixosModules/ags/config/widgets/on-screen-keyboard/main.tsx
matt1432 85a9b91aad
All checks were successful
Discord / discord commits (push) Has been skipped
feat(ags osk): add spam typing on long press
2024-11-25 17:25:27 -05:00

28 lines
679 B
TypeScript

import { execAsync } from 'astal';
import { Astal } from 'astal/gtk3';
import OskWindow from './osk-window';
import Gesture from './gesture';
import Keyboard from './keyboard';
export default () => {
execAsync('ydotoold').catch(print);
return Gesture((
<OskWindow
name="osk"
namespace="noanim-osk"
exclusivity={Astal.Exclusivity.EXCLUSIVE}
anchor={
Astal.WindowAnchor.BOTTOM |
Astal.WindowAnchor.LEFT |
Astal.WindowAnchor.RIGHT
}
layer={Astal.Layer.OVERLAY}
>
<Keyboard />
</OskWindow>
) as OskWindow);
};