|
|
#16 | |
|
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
Quote:
There's this option in NM: Code:
#nickel_bluetooth - one of: # enable (4.34.20097+) # disable (4.34.20097+) # toggle (4.34.20097+) # check (4.34.20097+) # scan (4.34.20097+) Should be easy enough to determine though with some experimentation though. |
|
|
|
|
|
|
#17 |
|
Connoisseur
![]() Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
|
Check brings up a popup showing Bluetooth status enabled or disabled.
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
Connoisseur
![]() Posts: 55
Karma: 10
Join Date: Jun 2010
Device: none
|
Code:
#
## Bluetooth Toggle Menu
menu_item : main : Enable Bluetooth : nickel_bluetooth : toggle
chain_success : cmd_spawn : quiet : sed -i '/^## Bluetooth Toggle Menu/ { n; s/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1Disable Bluetooth \2/ }' /mnt/onboard/.adds/nm/menu
chain_failure : cmd_spawn : quiet : sed -i '/^## Bluetooth Toggle Menu/ { n; s/^\([^:]*:[^:]*:\)[^:]*\(:.*\)$/\1Enable Bluetooth \2/ }' /mnt/onboard/.adds/nm/menu
#
Why wont this work for me |
|
|
|
|
|
#19 | |
|
Member
![]() Posts: 18
Karma: 10
Join Date: Jan 2025
Device: Kobo Libra 2
|
Quote:
You could setup something that greps for "Enable bluetooth", and if it finds it, use nickel_bluetooth: enable, then use sed to change it to Disable Bluetooth. If grep doesn't find it, use nickel_bluetooth:disable, and use sed to change the "Disable Bluetooth" to "Enable Bluetooth". Not perfect though, as it still has no way of knowing if bluetooth is currently on or off. But, since you're not using the toggle this way, if the menu says "Disable bluetooth" and bluetooth is already off, clicking on it will just turn it off again. What you might want to test though is if bluetooth is off, and you use turn it off again with nickelmenu, does it go down the success chain or the failure chain? |
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Deleting Labels | Ernstig | Calibre | 2 | 08-19-2024 06:10 AM |
| Deleting Labels | Ernstig | Calibre | 1 | 02-19-2023 12:09 PM |
| working with text labels | Fynjisx | Calibre | 5 | 08-26-2022 08:20 AM |
| Mac Labels | Lonniec3 | Calibre | 1 | 09-21-2012 02:39 PM |
| K3 Keyboard Labels | clintbradford | Amazon Kindle | 10 | 08-28-2010 04:14 AM |