Some work on Scripts
notable changes: - rename `bt-connect` to `bt_connect` - rename `music` to `media` and make it generic instead of checking Spotify - make separate script to set background to a preset black image - make all shebangs "#!/usr/bin/env sh"
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
name=$(bluetoothctl info | grep "Name" | sed 's/.*Name: //')
|
||||
battery=$(bluetoothctl info | grep "Battery" | sed 's/.*(//;s/)//')
|
||||
name=$(bluetoothctl info | grep "Alias" | sed 's/.*Alias: //')
|
||||
battery=$(bluetoothctl info | grep "Battery Percentage" | sed 's/.*(//;s/)//')
|
||||
if [ ! "$name" ]
|
||||
then
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user