2023-10-02 12:06:35 -04:00
|
|
|
import { Widget, Hyprland } from '../../imports.js';
|
|
|
|
const { Label } = Widget;
|
|
|
|
|
2023-08-28 00:23:13 -04:00
|
|
|
|
2023-09-10 23:24:58 -04:00
|
|
|
export const CurrentWindow = Label({
|
2023-08-28 00:23:13 -04:00
|
|
|
style: 'color: #CBA6F7; font-size: 18px',
|
2023-09-05 19:22:27 -04:00
|
|
|
truncate: 'end',
|
2023-08-28 00:23:13 -04:00
|
|
|
connections: [
|
|
|
|
[Hyprland, label => {
|
|
|
|
label.label = Hyprland.active.client.title;
|
|
|
|
}, 'changed'],
|
|
|
|
],
|
|
|
|
});
|