Files
custum-hyprpanel/modules/bar/SideEffects.ts
painerp afb245f8d6 Fixes the window title label option (#272)
* fix window title label option not being respected

* add window title icon and label side effects

* add new line to SideEffects.ts

* fix window title children type
2024-09-20 23:44:54 -07:00

30 lines
600 B
TypeScript

import options from 'options';
const { showIcon, showTime } = options.bar.clock;
showIcon.connect('changed', () => {
if (!showTime.value && !showIcon.value) {
showTime.value = true;
}
});
showTime.connect('changed', () => {
if (!showTime.value && !showIcon.value) {
showIcon.value = true;
}
});
const { label, icon } = options.bar.windowtitle;
label.connect('changed', () => {
if (!label.value && !icon.value) {
icon.value = true;
}
});
icon.connect('changed', () => {
if (!label.value && !icon.value) {
label.value = true;
}
});