Files
custum-hyprpanel/widget/settings/side_effects/index.ts
Jas Singh f09ffa7699 Implement custom icons per workspace. (#261)
* Implement custom icons per workspace.

* Finish custom workspace icon implementation

* Remove unsupported color definition.
2024-09-15 15:19:32 -07:00

35 lines
871 B
TypeScript

import options from 'options';
const { show_numbered, show_icons, showWsIcons } = options.bar.workspaces;
const { monochrome: monoBar } = options.theme.bar.buttons;
const { monochrome: monoMenu } = options.theme.bar.menus;
const { matugen } = options.theme;
show_numbered.connect('changed', ({ value }) => {
if (value === true) {
show_icons.value = false;
showWsIcons.value = false;
}
});
show_icons.connect('changed', ({ value }) => {
if (value === true) {
show_numbered.value = false;
showWsIcons.value = false;
}
});
showWsIcons.connect('changed', ({ value }) => {
if (value === true) {
show_numbered.value = false;
show_icons.value = false;
}
});
matugen.connect('changed', ({ value }) => {
if (value === true) {
monoBar.value = false;
monoMenu.value = false;
}
});