fix some toggles; format

This commit is contained in:
end-4
2024-04-15 23:55:57 +07:00
parent c1d65beb42
commit f173fbb7ad
3 changed files with 5 additions and 8 deletions
@@ -186,7 +186,7 @@ export const ModuleEditIcon = (props = {}) => Widget.Button({ // TODO: Make this
className: 'txt-small sidebar-iconbutton',
onClicked: () => {
execAsync(['bash', '-c', 'XDG_CURRENT_DESKTOP="gnome" gnome-control-center', '&']);
App.toggleWindow('sideright');
App.closeWindow('sideright');
},
child: MaterialIcon('edit', 'norm'),
setup: button => {
@@ -200,7 +200,7 @@ export const ModuleReloadIcon = (props = {}) => Widget.Button({
tooltipText: 'Reload Environment config',
onClicked: () => {
execAsync(['bash', '-c', 'hyprctl reload || swaymsg reload &']);
App.toggleWindow('sideright');
App.closeWindow('sideright');
},
child: MaterialIcon('refresh', 'norm'),
setup: button => {
@@ -214,7 +214,7 @@ export const ModuleSettingsIcon = (props = {}) => Widget.Button({
tooltipText: 'Open Settings',
onClicked: () => {
execAsync(['bash', '-c', `${userOptions.apps.settings}`, '&']);
App.toggleWindow('sideright');
App.closeWindow('sideright');
},
child: MaterialIcon('settings', 'norm'),
setup: button => {