|
2020-01-29
, 14:35
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#22
|
|
2020-01-29
, 14:50
|
Posts: 134 |
Thanked: 370 times |
Joined on Oct 2012
@ France
|
#23
|
if anyone knows how to do #1, #2, #4 or #7, it would be much appreciated
also, anyone have any feature requests (in addition to #5) while im still actively working on this?
|
2020-01-29
, 15:12
|
Posts: 959 |
Thanked: 3,427 times |
Joined on Apr 2012
|
#24
|
|
2020-01-30
, 19:03
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#25
|
would it be possible to add a feature to run something when a button is double-clicked?
The Following 4 Users Say Thank You to wolke For This Useful Post: | ||
|
2020-01-30
, 19:13
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#26
|
If it's possible, can you add :
- condition : screen orientation
- action : screen orientation lock, force to close (kill -9) current app
|
2020-01-31
, 16:51
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#27
|
The Following User Says Thank You to wolke For This Useful Post: | ||
|
2020-01-31
, 19:31
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#28
|
The Following User Says Thank You to wolke For This Useful Post: | ||
|
2020-01-31
, 20:41
|
Posts: 986 |
Thanked: 1,526 times |
Joined on Jul 2010
|
#30
|
commit 4564109ada4d5e5f971bb3d173252ecc5a70ecff (HEAD -> master) Author: Elliot Wolk <elliot.wolk@gmail.com> Date: Fri, 31 Jan 2020 15:28:14 -0500 lipstick: write window title to /tmp/lipstick-window-title every time topmost window changes diff --git a/CONFIG_FILES/%usr%share%lipstick-jolla-home-qt5%switcher%Switcher.qml b/CONFIG_FILES/%usr%share%lipstick-jolla-home-qt5%switcher%Switcher.qml index e6d4f1b..1c7c4d4 100644 --- a/CONFIG_FILES/%usr%share%lipstick-jolla-home-qt5%switcher%Switcher.qml +++ b/CONFIG_FILES/%usr%share%lipstick-jolla-home-qt5%switcher%Switcher.qml @@ -294,10 +294,26 @@ SilicaFlickable { return count } + function writeFileOverHTTP(file, text) { + var request = new XMLHttpRequest(); + request.open("PUT", "file://" + file, false); + request.send(text); + return request.status; + } + Connections { target: Lipstick.compositor onMinimizeLaunchingWindows: switcherRoot.minimizeLaunchingWindows() - onTopmostWindowIdChanged: touchWindow(Lipstick.compositor.topmostWindowId) + onTopmostWindowIdChanged: { + var windowId = Lipstick.compositor.topmostWindowId + if(windowId > 0){ + var window = Lipstick.compositor.windowForId(windowId) + if(window){ + writeFileOverHTTP("/tmp/lipstick-window-title", window.title + "\n") + } + } + touchWindow(windowId) + } } function resetPosition(delay) {
The Following 3 Users Say Thank You to wolke For This Useful Post: | ||
1) DONE get pid or command name of topmost window when that window is an aliendalvik app
the pid returned by the below cmd is for `system_server`:
NOTE: this is done, but requires a hack in lipstick QML
https://talk.maemo.org/showpost.php?...8&postcount=30
2) ]keep-alive while locked without draining battery horribly (vol buttons dont wake phone up, and so sometimes the actions dont work) JUST GONNA USE keepalive-tool FOREVER
3) DONE-ISH long-press keys
just needs some clever event handling that i havent had time to implement
4) torch on/off (NOT toggle, which is already done)
probably easy to query torch state with DBUS, but if not, i could just write directly to the LED devices.
(i used to long press vol for torch, and release to turn it off, and liked that a lot)
5) multiple input devices, configuration options for input devices
6) support for optional EXACT pattern matching (have to not push any other keys before, in the middle, or after)
maybe: "^vu vu$" or something
7) configuration options for timeouts/delays/etc
8) SOLVED-EXTERNALLY OPTIONALLY disable volume button default actions, e.g. in certain apps (this would probably be completely separate from sf-button-monitor, if i can implement it)
solution:
add a dconf config item to volume control QML to optionally ignore
/usr/share/lipstick-jolla-home-qt5/volumecontrol/VolumeControl.qml
see: patch
9) new conditions: landscape, portrait
10) new action: forceClose (kill -9 pid of topmost window)
11) new action: lockOrientation
12) (optionally) support power button with journalctl mce
~ teleshoes ~
Last edited by wolke; 2021-07-21 at 15:34.