Haptic Feedback on floating menu

Hi I'm using this floating menu that gets triggered upon clicking the key sequence "control + control".
The radial switcher then pops up showing the recent apps. I would like to have a trackpad haptic feedback when hovering over the apps circles if possible.

Thanks a lot

you can use the "hover start" action category and the "perform haptic feedback on trackpad" action:

1 Like

thank you so much for the help! That partially solved it, but, I wanted the haptics to occur, when I hover over the circles, but when I set the "actions executed on hover start" It gives me a haptic feedback whenever I hover in the Square menu. I hope that made sense :sweat_smile:
Is there any way to get the haptic when hovering over the circles?
Again, thanks a lot for the support :))

you need to add the action it to every item, not to the menu itself :slight_smile:

1 Like

Ah that makes sense, sorry im bit of a newbie here,
So I've used the radial app switcher template that you had posted about:
And in that menu, theres only 1 item "item template"
I dont think it would work if I added the haptics on that icon template right?
Again, sorry for the beginner type quetions :"))


Correct for dynamically generated menus this is a bit more complicated. Could you export your current menu (right-click export to file) and post it here? Then I can adjust it for you. (later, need to leave for a few hours now)

Ofcourse, thanks a lot. Appreciate the help very much, Andreas!
Here you go
exported_triggers(radial_app).bttpreset (7.6 KB)

@Andreas_Hegenberg Hey! Sorry for the tag, did you have a chance to go through this?
Thanks! :slightly_smiling_face:

Can you try this content script?:

async function retrieveJSON() {
    let apps = await BTTActions.copyLaunchedApplicationsInFrontToBackOrder();
    let menuItems = [];
    let i = 0;
    for (let app of apps) {
        if (i > 9) { break; }
        i++;
        let item = {
            templateItemUUID: "BFBD1B46-0E72-49CF-B4DB-C2CB017E82B2",
            title: "",
            actions: {
                standard: `js::(async () => {runShellScript({script: 'open "${app.BundlePath}"'})})()`,
                hover: {
                    "btt": "trigger_action",
                    "args": {
                        "json": { BTTPredefinedActionType: 255, BTTHapticFeedbackAction: 2 }
                    }
                },

            },
            icon: `path::${app.AppIconPath}::width@@40`
        };
        menuItems.push(item);
    }


    return JSON.stringify(menuItems);
}

1 Like

That worked perfectly!
Thank you so much for the support and taking time out to create the script :))