fix(ags): make bluetooth state persistent accross reboots again

This commit is contained in:
matt1432 2023-09-12 17:38:07 -04:00
parent cd38ec8c10
commit e7febace2b

View file

@ -56,9 +56,11 @@ const FirstRow = Box({
connections: [[Bluetooth, icon => { connections: [[Bluetooth, icon => {
if (Bluetooth.enabled) { if (Bluetooth.enabled) {
icon.icon = 'bluetooth-active-symbolic'; icon.icon = 'bluetooth-active-symbolic';
exec('bash -c "echo 󰂯 > $HOME/.config/.bluetooth"');
} }
else { else {
icon.icon = 'bluetooth-disabled-symbolic'; icon.icon = 'bluetooth-disabled-symbolic';
exec('bash -c "echo 󰂲 > $HOME/.config/.bluetooth"');
} }
}, 'changed']], }, 'changed']],
}) })