Define workspace service D-Bus API

This commit is contained in:
Ezri Brimhall 2024-11-17 14:15:06 -07:00
parent 68730f0e50
commit 8e9abdfd7f
Signed by: ezri
GPG Key ID: 058A78E5680C6F24
4 changed files with 105 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<!DOCTYPE
interface PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<interface name="dev.ezri.voidshell.workspaces.Context.xml">
<signal name="Activated" />
<signal name="Deactivated" />
<method name="GetCompatabilityScore">
<arg direction="out" type="i" name="score" />
</method>
<property name="Active" type="b" access="read" />
<property name="Groups" type="ao" access="read" />
</interface>

View File

@ -0,0 +1,22 @@
<!DOCTYPE
interface PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<interface name="dev.ezri.voidshell.workspaces.Group">
<signal name="Focused" />
<signal name="LostFocus" />
<signal name="VisibleWorkspaceChanged">
<arg type="o" name="workspace" />
</signal>
<method name="Focus">
<arg direction="out" type="s" name="result" />
</method>
<method name="Reconfigure">
<arg direction="out" type="s" name="result" />
</method>
<property name="Name" type="s" access="read" />
<property name="Output" type="s" access="read" />
<property name="IsFocused" type="b" access="read" />
<property name="FocusedWorkspace" type="o" access="read" />
<property name="Context" type="o" access="read" />
<property name="Workspaces" type="ao" access="read" />
</interface>

View File

@ -0,0 +1,29 @@
<!DOCTYPE
interface PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<interface name="dev.ezri.voidshell.workspaces.Workspace">
<signal name="Focused" />
<signal name="LostFocus" />
<signal name="Created" />
<signal name="Destroyed" />
<signal name="Moved">
<arg type="o" name="from" />
<arg type="o" name="to" />
</signal>
<signal name="Alert" />
<method name="Focus">
<arg direction="out" type="s" name="result" />
</method>
<method name="Reassign">
<arg direction="in" type="o" name="group" />
<arg direction="out" type="s" name="result" />
</method>
<property name="Name" type="s" access="read" />
<property name="Output" type="s" access="read" />
<property name="CurrentGroup" type="o" access="read" />
<property name="Groups" type="ao" access="read" />
<property name="IsFocused" type="b" access="read" />
<property name="IsVisible" type="b" access="read" />
<property name="IsActive" type="b" access="read" />
<property name="IsAlerted" type="b" access="read" />
</interface>

View File

@ -0,0 +1,42 @@
<!DOCTYPE
interface PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<interface name="dev.ezri.voidshell.workspaces.WorkspaceManager">
<signal name="WorkspaceFocused">
<arg type="o" name="new" />
<arg type="o" name="old" />
</signal>
<signal name="GroupFocused">
<arg type="o" name="new" />
<arg type="o" name="old" />
</signal>
<signal name="ContextSwitch">
<arg type="o" name="context" />
</signal>
<method name="RequestContext">
<arg direction="in" type="o" name="context" />
<arg direction="out" type="s" name="result" />
</method>
<method name="GetWorkspaceByIndex">
<arg direction="in" type="i" name="groupIndex" />
<arg direction="out" type="o" name="workspace" />
</method>
<method name="FocusWorkspaceByIndex">
<arg direction="in" type="i" name="groupIndex" />
<arg direction="out" type="s" name="result" />
</method>
<method name="MoveContainer">
<arg direction="in" type="o" name="toWorkspace" />
<arg direction="out" type="s" name="result" />
</method>
<method name="MoveContainerByIndex">
<arg direction="in" type="o" name="toGroupIndex" />
<arg direction="out" type="s" name="result" />
</method>
<method name="GetCompatibleContexts">
<arg direction="out" type="ao" name="contexts" />
</method>
<property name="Contexts" type="ao" access="read" />
<property name="ActiveContext" type="o" access="read" />
<property name="WorkspaceBackend" type="s" access="read" />
</interface>