adding battery.js to ags
This commit is contained in:
parent
2273ff5233
commit
4c60fcb238
3 changed files with 57 additions and 0 deletions
|
@ -5,6 +5,7 @@ const battery = await Service.import("battery");
|
|||
const audio = await Service.import('audio')
|
||||
|
||||
import { NotificationPopups } from "./notifications.js"
|
||||
import { BatteryPopup } from "./battery.js"
|
||||
|
||||
const laptop = Utils.exec(`hostname`) === "syl";
|
||||
console.log(laptop ? "Running on syl" : "Running on kaladin");
|
||||
|
@ -177,6 +178,7 @@ App.config({
|
|||
windows: [
|
||||
Bar(laptop ? 0 : 2), // can be instantiated for each monitor
|
||||
NotificationPopups(),
|
||||
BatteryPopup()
|
||||
],
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue