random_scripts/toggle_bt.sh

4 lines
133 B
Bash
Executable File

#!/bin/bash
[[ "$(systemctl is-active bluetooth)" == 'active' ]] && $(systemctl stop bluetooth || :) || systemctl restart bluetooth