2024-01-30 11:29:07 -05:00
|
|
|
const Bluetooth = await Service.import('bluetooth');
|
2023-12-07 15:28:58 -05:00
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import Brightness from '../services/brightness.ts';
|
|
|
|
import Pointers from '../services/pointers.ts';
|
|
|
|
import Tablet from '../services/tablet.ts';
|
|
|
|
import TouchGestures from '../services/touch-gestures.ts';
|
2023-12-07 16:48:34 -05:00
|
|
|
|
2024-01-13 23:38:31 -05:00
|
|
|
import closeAll from './misc/closer.ts';
|
|
|
|
import Persist from './misc/persist.ts';
|
2023-11-04 22:10:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
export default () => {
|
2023-11-10 23:51:50 -05:00
|
|
|
globalThis.Brightness = Brightness;
|
2023-11-04 22:10:23 -04:00
|
|
|
globalThis.Pointers = Pointers;
|
2023-11-10 23:51:50 -05:00
|
|
|
globalThis.Tablet = Tablet;
|
2023-11-04 22:10:23 -04:00
|
|
|
globalThis.closeAll = closeAll;
|
|
|
|
|
2023-12-07 16:48:34 -05:00
|
|
|
Persist({
|
|
|
|
name: 'bluetooth',
|
|
|
|
gobject: Bluetooth,
|
|
|
|
prop: 'enabled',
|
|
|
|
signal: 'notify::enabled',
|
2023-12-07 15:28:58 -05:00
|
|
|
});
|
2023-12-07 14:02:28 -05:00
|
|
|
|
2023-11-06 20:38:16 -05:00
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'openAppLauncher',
|
|
|
|
gesture: 'UD',
|
|
|
|
edge: 'T',
|
2024-04-07 14:29:12 -04:00
|
|
|
command: () => App.openWindow('win-applauncher'),
|
2023-11-06 20:38:16 -05:00
|
|
|
});
|
|
|
|
|
2023-11-05 01:34:13 -05:00
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'oskOn',
|
|
|
|
gesture: 'DU',
|
|
|
|
edge: 'B',
|
2024-04-07 11:34:44 -04:00
|
|
|
command: () => {
|
|
|
|
Tablet.oskState = true;
|
|
|
|
},
|
2023-11-05 01:34:13 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'oskOff',
|
|
|
|
gesture: 'UD',
|
|
|
|
edge: 'B',
|
2024-04-07 11:34:44 -04:00
|
|
|
command: () => {
|
|
|
|
Tablet.oskState = false;
|
|
|
|
},
|
2023-11-05 01:34:13 -05:00
|
|
|
});
|
2023-11-04 22:10:23 -04:00
|
|
|
};
|