2023-11-04 22:10:23 -04:00
|
|
|
import { execAsync } from 'resource:///com/github/Aylur/ags/utils.js';
|
|
|
|
|
2023-11-05 01:34:13 -05:00
|
|
|
import Tablet from '../services/tablet.js';
|
|
|
|
import Pointers from '../services/pointers.js';
|
|
|
|
import TouchGestures from '../services/touch-gestures.js';
|
2023-11-04 22:10:23 -04:00
|
|
|
import closeAll from './misc/closer.js';
|
|
|
|
|
|
|
|
|
|
|
|
export default () => {
|
|
|
|
globalThis.Tablet = Tablet;
|
|
|
|
globalThis.Pointers = Pointers;
|
|
|
|
globalThis.closeAll = closeAll;
|
|
|
|
|
|
|
|
execAsync(['bash', '-c', '$AGS_PATH/startup.sh']).catch(print);
|
2023-11-05 01:34:13 -05:00
|
|
|
|
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'oskOn',
|
|
|
|
gesture: 'DU',
|
|
|
|
edge: 'B',
|
|
|
|
command: 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b true',
|
|
|
|
});
|
|
|
|
|
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'oskOff',
|
|
|
|
gesture: 'UD',
|
|
|
|
edge: 'B',
|
|
|
|
command: 'busctl call --user sm.puri.OSK0 /sm/puri/OSK0 sm.puri.OSK0 SetVisible b false',
|
|
|
|
});
|
|
|
|
|
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'swipeSpotify1',
|
|
|
|
gesture: 'LR',
|
|
|
|
edge: 'L',
|
|
|
|
command: 'hyprctl dispatch togglespecialworkspace spot',
|
|
|
|
});
|
|
|
|
|
|
|
|
TouchGestures.addGesture({
|
|
|
|
name: 'swipeSpotify2',
|
|
|
|
gesture: 'RL',
|
|
|
|
edge: 'L',
|
|
|
|
command: 'hyprctl dispatch togglespecialworkspace spot',
|
|
|
|
});
|
2023-11-04 22:10:23 -04:00
|
|
|
};
|