home/programs/ags: enable bar only on focused monitor

This commit is contained in:
Anthony Rodriguez 2024-10-13 18:01:39 +02:00
parent e0e880aaa9
commit 513bce9b84
Signed by: nezia
GPG key ID: EE3BE97C040A86CE

View file

@ -134,11 +134,10 @@ function Right() {
}); });
} }
function Bar(monitor = 0) { function Bar() {
return Widget.Window({ return Widget.Window({
name: `bar-${monitor}`, // name has to be unique name: "bar", // name has to be unique
class_name: "bar", class_name: "bar",
monitor,
anchor: ["top", "left", "right"], anchor: ["top", "left", "right"],
exclusivity: "exclusive", exclusivity: "exclusive",
child: Widget.CenterBox({ child: Widget.CenterBox({
@ -151,7 +150,7 @@ function Bar(monitor = 0) {
App.config({ App.config({
style: "./style.css", style: "./style.css",
windows: [Bar(0), Bar(1), NotificationPopups()], windows: [Bar(), NotificationPopups()],
}); });
export {}; export {};