mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2026-02-04 15:06:48 +05:30
feat: add multi-monitor support
This commit is contained in:
@@ -8,10 +8,11 @@ import { Tray } from "./tray";
|
||||
import { WorkspaceButton } from "./workspace";
|
||||
import { Bluetooth } from "./bluetooth";
|
||||
import { Cava } from "./cava";
|
||||
import { onCleanup } from "gnim";
|
||||
|
||||
export const WINDOW_NAME = "bar";
|
||||
|
||||
export const Bar = (gdkmonitor: Gdk.Monitor) => {
|
||||
export const Bar = ({ gdkmonitor }: { gdkmonitor: Gdk.Monitor }) => {
|
||||
const { TOP } = Astal.WindowAnchor;
|
||||
|
||||
return (
|
||||
@@ -24,6 +25,7 @@ export const Bar = (gdkmonitor: Gdk.Monitor) => {
|
||||
anchor={TOP}
|
||||
widthRequest={1200}
|
||||
application={app}
|
||||
$={(self) => onCleanup(() => self.destroy())}
|
||||
>
|
||||
<centerbox>
|
||||
<box spacing={10} $type="start">
|
||||
|
||||
Reference in New Issue
Block a user