-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BluezScan 20 ; action = Function + Exec ? #291
Comments
Currently, you need to write a new function:
I.e.
Function("MyFunc") {
Function "XBluezPop"
Exec "bluetoothvtl --timeout 20 scan on"
}
layout {
....
button {
action = Function "MyFunc"
...
}
...
}
You can also use action BluezScan instead of executing bluetoothctl.
Currently it uses a stndard timeout, but it would be easy to add support
for user defined timeouts
…On Sat, Dec 21, 2024 at 12:43 PM sfs-pra ***@***.***> wrote:
action = Function "XBluezPop"
action[3] = Exec "bluetoothctl --timeout 20 scan on"
How to execute both “actions” with one click?
—
Reply to this email directly, view it on GitHub
<#291>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFBIJHYSEYW4TEQPEED2GVO7ZAVCNFSM6AAAAABUAS7DBOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TGOJYG42TSNA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Function("MyFunc") { - It's working, but it's still “scan on.” |
The scan status currently only tracks scans initiated by sfwbar, but it
should be easy enough to change this to track all scans.
BluezScan doesn't currently accept the timeout parameter, so I need to
change it. Let me work on these one I finish my hike.
Also, I think you no longer need to use a function. Since we introduced
closures, you should be able to use:
action = {
BluezScan;
PopUp ...
}
…On Sat, 21 Dec 2024, 22:27 sfs-pra, ***@***.***> wrote:
Function("MyFunc") { - It's working, but it's still “scan on.”
BluezScan 20000 - does not work
—
Reply to this email directly, view it on GitHub
<#291 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFHWM3HNZ4TNGOYGUQL2GXTM5AVCNFSM6AAAAABUAS7DBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGI2TMNBRGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Can you test this with the latest git please? BluezScan should accept a
timeout parameter now (in seconds), so would be BluezScan 20 for your
example and the scanning status should change for scans initiated by other
clients.
…On Sun, Dec 22, 2024 at 1:09 PM Lev Babiev ***@***.***> wrote:
The scan status currently only tracks scans initiated by sfwbar, but it
should be easy enough to change this to track all scans.
BluezScan doesn't currently accept the timeout parameter, so I need to
change it. Let me work on these one I finish my hike.
Also, I think you no longer need to use a function. Since we introduced
closures, you should be able to use:
action = {
BluezScan;
PopUp ...
}
On Sat, 21 Dec 2024, 22:27 sfs-pra, ***@***.***> wrote:
> Function("MyFunc") { - It's working, but it's still “scan on.”
> BluezScan 20000 - does not work
>
> —
> Reply to this email directly, view it on GitHub
> <#291 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ASHPFFHWM3HNZ4TNGOYGUQL2GXTM5AVCNFSM6AAAAABUAS7DBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGI2TMNBRGM>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
sfwbar-git-r1709.be43bbe What is bluez-popup.widget for ? |
I think bluez-popup was just a copy of bluez.widget without the main icon.
I.e. it was just the popup window that you could then attach to any widget.
…On Sun, Dec 22, 2024 at 7:05 PM sfs-pra ***@***.***> wrote:
sfwbar-git-r1709.be43bbe
Replacing BluezScan -> BluezScan 20 in two places bluez.widget solved the
problem
I would like to enter 20 via GUI ;)
Then we need to correct in BluezScan documentation : milliseconds ->
seconds
What is bluez-popup.widget for ?
—
Reply to this email directly, view it on GitHub
<#291 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHPFFEOS2SIJQEE4HFJ7WD2G4EOVAVCNFSM6AAAAABUAS7DBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGU3DANRWGE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
How to execute both “actions” with one click?
The text was updated successfully, but these errors were encountered: