~kris/dots

srice

ref: 75870dc6ce1e524c46a85157489f839161c9607c srice/.config/eww/scripts/toggle_bluetooth.sh -rwxr-xr-x 252 bytes
75870dc6 — Kris Yotam add cw symlink for wallpapermenu (short name matching its own docs) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Cek status bluetooth saat ini
STATUS=$(bluetoothctl show | grep "Powered:" | awk '{print $2}')

if [ "$STATUS" = "yes" ]; then
    # Matikan bluetooth
    bluetoothctl power off
else
    # Nyalakan bluetooth
    bluetoothctl power on
fi