some updates

This commit is contained in:
Chris Cochrun 2024-07-10 13:03:19 -05:00
parent 4c25000f23
commit d016fabf0b
3 changed files with 54 additions and 87 deletions

View file

@ -8,6 +8,7 @@ import { NotificationPopups } from "./notifications.js"
import { BatteryPopup } from "./battery.js"
const laptop = Utils.exec(`hostname`) === "syl";
// const display = Gdk.Display.get_default();
console.log(laptop ? "Running on syl" : "Running on kaladin");
function map_workspaces(id) {
@ -176,9 +177,9 @@ function Bar(monitor = 0) {
App.config({
style: css,
windows: [
Bar(laptop ? 0 : 1), // can be instantiated for each monitor
Bar(laptop ? 0 : 2), // can be instantiated for each monitor
NotificationPopups(),
BatteryPopup()
(laptop ? BatteryPopup() : null)
],
})