home/programs/ags: enable bar only on focused monitor
This commit is contained in:
parent
e0e880aaa9
commit
513bce9b84
1 changed files with 3 additions and 4 deletions
|
@ -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 {};
|
||||||
|
|
Loading…
Reference in a new issue