Skip to content

Commit

Permalink
sidebar: remove settings button
Browse files Browse the repository at this point in the history
since gnome-control-center is really broken outside gnome
  • Loading branch information
end-4 committed Aug 15, 2024
1 parent f8bee78 commit 1abe019
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
13 changes: 0 additions & 13 deletions .config/ags/modules/sideright/quicktoggles.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,6 @@ export const ModuleIdleInhibitor = (props = {}) => Widget.Button({ // TODO: Make
...props,
});

export const ModuleEditIcon = (props = {}) => Widget.Button({ // TODO: Make this work
...props,
className: 'txt-small sidebar-iconbutton',
onClicked: () => {
execAsync(['bash', '-c', 'XDG_CURRENT_DESKTOP="gnome" gnome-control-center', '&']);
App.closeWindow('sideright');
},
child: MaterialIcon('edit', 'norm'),
setup: button => {
setupCursorHover(button);
}
})

export const ModuleReloadIcon = (props = {}) => Widget.Button({
...props,
className: 'txt-small sidebar-iconbutton',
Expand Down
4 changes: 1 addition & 3 deletions .config/ags/modules/sideright/sideright.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
ModuleNightLight,
ModuleInvertColors,
ModuleIdleInhibitor,
ModuleEditIcon,
ModuleReloadIcon,
ModuleSettingsIcon,
ModulePowerIcon,
Expand Down Expand Up @@ -109,9 +108,8 @@ const timeRow = Box({
},
}),
Widget.Box({ hexpand: true }),
// ModuleEditIcon({ hpack: 'end' }), // TODO: Make this work
ModuleReloadIcon({ hpack: 'end' }),
ModuleSettingsIcon({ hpack: 'end' }),
// ModuleSettingsIcon({ hpack: 'end' }), // Button does work, gnome-control-center is kinda broken
ModulePowerIcon({ hpack: 'end' }),
]
});
Expand Down

0 comments on commit 1abe019

Please sign in to comment.