View Single Post
Old 04-11-2022, 09:27 AM   #29
tylpk
Enthusiast
tylpk has learned how to buy an e-book online
 
Posts: 25
Karma: 80
Join Date: Apr 2019
Device: Kindle Paperwhite3, Hisense A5, HyRead Gaze Pocket, Kobo Elipsa
Quote:
Originally Posted by CyberPaul View Post
Great! I will test.
Is it easy to invoke a .sh script from within nickelmenu? I'm a novice in that.
Fix grep issue and kill more processes.
Quote:
#!/bin/sh

# for connected BT device.
bluetoothctl disconnect

# for BT controller
bluetoothctl agent off
bluetoothctl power off

# for BT daemon
id=$(ps | grep '[/]libexec/bluetooth/bluetoothd' | awk '{print $1}'); kill $id

# for BT audio
id=$(ps | grep '[/]bin/bluealsa' | awk '{print $1}'); kill $id
It is easy to invoke script from NickelMenu. Unfortunately, my script can't work. The Bluetooth issue is not solved. I think maybe we lack something when we exit third-party and launch Kobo nickel again?
tylpk is offline   Reply With Quote