nixos-configs/config/ags/js/misc/close-all.js

6 lines
133 B
JavaScript

export const closeAll = () => {
ags.App.windows.forEach(w => {
if (w.name != 'bar')
ags.App.closeWindow(w.name)
});
};