Ticket #291 (closed enhancement: fixed)
long press on AUX button : do "something" ?
| Reported by: | kimaidou | Owned by: | dos |
|---|---|---|---|
| Priority: | trivial | Milestone: | wishlist |
| Component: | SHR config | Version: | SHR-unstable |
| Keywords: | Aux button | Cc: |
Description (last modified by spaetz) (diff)
for now, the Aux button "only " lock the screen.
It could be great to add a new rule so that a long press (2 s) on the Aux button loads a personalized pre-configured action. For example, display keyboard / run software (calendar, notes, etc.) / goes silent /etc.
Change History
comment:2 Changed 4 years ago by TAsn
as rules.yaml is somehow limited, I suggest giving https://projects.openmoko.org/projects/siglaunchd/ it does a lot more, though also exactly that. I use it to launch a profile changer when I click it for more than 1 second.
comment:3 Changed 4 years ago by spaetz
- Version set to SHR-unstable
- Milestone set to wishlist
Can I ask how that can be done technically? Isn't the AUX key just another key press that can be bound to an illume action? How does it distinguish between a short and a long keypress?
It would be very useful if we could take advantage of short vs long keypresses.
comment:4 Changed 4 years ago by dos
spaetz: use rules.yaml ;) It works for me.
trigger: InputEvent?()
filters:
actions: Command('shr-settings "AUX menu" shr_profile.Profile shr_display.Display shr_pm.Pm')
comment:5 Changed 4 years ago by TAsn
- Priority changed from major to trivial
You have more than one way to do it, as for default, it not a major enachment.
comment:6 Changed 4 years ago by dos
- Owner changed from ainulindale to daniel
- Component changed from SHR Image to frameworkd / FSO
It's frameworkd-config-shr job, so changing component
comment:7 Changed 4 years ago by dos
- Status changed from new to assigned
- Owner changed from daniel to dos
comment:9 Changed 4 years ago by spaetz
- Description modified (diff)
Actually rather than having frameworkd handle this (why should the poor thing be eresponsible for EVERYTHING), we can easily handle this with enlightenment only:
the keybindings for the power button in
[shr-themes.git] / e-wm / e-wm-config-illume-shr / e.src are:
value "action" string: "delayed_action"; value "params" string: "[0.0 syscon] [2.0 halt_now]";
and we can do the same for the AUX button, binding one action to a short press and another action (profile selection :)) to a long press. The only difficulty is that the simple lock does not seem to be available from the command line.
comment:11 Changed 4 years ago by dos
- Status changed from assigned to closed
- Resolution set to fixed
Commited

You can personalise it in /etc/freesmartphone/oevents/rules.yaml