2023-08-28 00:23:13 -04:00
|
|
|
// https://github.com/Aylur/ags/wiki/Widgets
|
|
|
|
|
|
|
|
const { Hyprland } = ags.Service;
|
|
|
|
const { Label } = ags.Widget;
|
|
|
|
const { Gtk } = imports.gi;
|
|
|
|
|
|
|
|
const currentWindow = () => Label({
|
|
|
|
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'],
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
export const CurrentWindow = currentWindow();
|