more config option for apps

This commit is contained in:
end-4
2024-03-30 21:53:20 +07:00
parent f53b1f007e
commit 8f93f30343
4 changed files with 24 additions and 18 deletions
@@ -15,7 +15,7 @@ export const ToggleIconWifi = (props = {}) => Widget.Button({
tooltipText: 'Wifi | Right-click to configure',
onClicked: () => Network.toggleWifi(),
onSecondaryClickRelease: () => {
execAsync(['bash', '-c', 'XDG_CURRENT_DESKTOP="gnome" gnome-control-center wifi', '&']);
execAsync(['bash', '-c', `${userOptions.apps.network}`, '&']);
App.closeWindow('sideright');
},
child: NetworkIndicator(),
@@ -40,7 +40,7 @@ export const ToggleIconBluetooth = (props = {}) => Widget.Button({
exec('rfkill unblock bluetooth');
},
onSecondaryClickRelease: () => {
execAsync(['bash', '-c', 'blueberry &']);
execAsync(['bash', '-c', `${userOptions.apps.bluetooth}`]).catch(print);
App.closeWindow('sideright');
},
child: BluetoothIndicator(),
@@ -213,7 +213,7 @@ export const ModuleSettingsIcon = (props = {}) => Widget.Button({
className: 'txt-small sidebar-iconbutton',
tooltipText: 'Open Settings',
onClicked: () => {
execAsync(['bash', '-c', 'XDG_CURRENT_DESKTOP="gnome" gnome-control-center', '&']);
execAsync(['bash', '-c', `${userOptions.apps.settings}`, '&']);
App.toggleWindow('sideright');
},
child: MaterialIcon('settings', 'norm'),