Compare commits
No commits in common. "f7662457a9e636d4a23d5917ec5aed0ade982852" and "faf807cb869a0d5d587fa4a873e0b481f68e7ba5" have entirely different histories.
f7662457a9
...
faf807cb86
@ -13,7 +13,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func GetClient(signature string) (*Client, error) {
|
func GetClient(signature string) (*Client, error) {
|
||||||
lockFilePath := fmt.Sprintf("/run/user/1000/hypr/%s/hyprland.lock", signature)
|
lockFilePath := fmt.Sprintf("/tmp/hypr/%s.lock", signature)
|
||||||
|
|
||||||
file, err := os.Open(lockFilePath)
|
file, err := os.Open(lockFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -50,7 +50,7 @@ func GetDefaultClient() (*Client, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetClients() ([]*Client, error) {
|
func GetClients() ([]*Client, error) {
|
||||||
entries, err := os.ReadDir("/run/user/1000/hypr")
|
entries, err := os.ReadDir("/tmp/hypr")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
@ -31,10 +31,8 @@ const (
|
|||||||
EventTypeActiveWindowV2 EventType = "activewindowv2"
|
EventTypeActiveWindowV2 EventType = "activewindowv2"
|
||||||
EventTypeKeyboardFocus EventType = "keyboardfocus"
|
EventTypeKeyboardFocus EventType = "keyboardfocus"
|
||||||
EventTypeMoveWorkspace EventType = "moveworkspace"
|
EventTypeMoveWorkspace EventType = "moveworkspace"
|
||||||
EventTypeMoveWorkspaceV2 EventType = "moveworkspacev2"
|
|
||||||
EventTypeFocusedMon EventType = "focusedmon"
|
EventTypeFocusedMon EventType = "focusedmon"
|
||||||
EventTypeMoveWindow EventType = "movewindow"
|
EventTypeMoveWindow EventType = "movewindow"
|
||||||
EventTypeMoveWindowV2 EventType = "movewindowv2"
|
|
||||||
EventTypeOpenLayer EventType = "openlayer"
|
EventTypeOpenLayer EventType = "openlayer"
|
||||||
EventTypeCloseLayer EventType = "closelayer"
|
EventTypeCloseLayer EventType = "closelayer"
|
||||||
EventTypeOpenWindow EventType = "openwindow"
|
EventTypeOpenWindow EventType = "openwindow"
|
||||||
@ -42,16 +40,12 @@ const (
|
|||||||
EventTypeUrgent EventType = "urgent"
|
EventTypeUrgent EventType = "urgent"
|
||||||
EventTypeMinimize EventType = "minimize"
|
EventTypeMinimize EventType = "minimize"
|
||||||
EventTypeMonitorAdded EventType = "monitoradded"
|
EventTypeMonitorAdded EventType = "monitoradded"
|
||||||
EventTypeMonitorAddedV2 EventType = "monitoraddedv2"
|
|
||||||
EventTypeMonitorRemoved EventType = "monitorremoved"
|
EventTypeMonitorRemoved EventType = "monitorremoved"
|
||||||
EventTypeCreateWorkspace EventType = "createworkspace"
|
EventTypeCreateWorkspace EventType = "createworkspace"
|
||||||
EventTypeCreateWorkspaceV2 EventType = "createworkspacev2"
|
|
||||||
EventTypeDestroyWorkspace EventType = "destroyworkspace"
|
EventTypeDestroyWorkspace EventType = "destroyworkspace"
|
||||||
EventTypeDestroyWorkspaceV2 EventType = "destroyworkspacev2"
|
|
||||||
EventTypeFullscreen EventType = "fullscreen"
|
EventTypeFullscreen EventType = "fullscreen"
|
||||||
EventTypeChangeFloatingMode EventType = "changefloatingmode"
|
EventTypeChangeFloatingMode EventType = "changefloatingmode"
|
||||||
EventTypeWorkspace EventType = "workspace"
|
EventTypeWorkspace EventType = "workspace"
|
||||||
EventTypeWorkspaceV2 EventType = "workspacev2"
|
|
||||||
EventTypeSubmap EventType = "submap"
|
EventTypeSubmap EventType = "submap"
|
||||||
EventTypeMouseMove EventType = "mousemove"
|
EventTypeMouseMove EventType = "mousemove"
|
||||||
EventTypeMouseButton EventType = "mousebutton"
|
EventTypeMouseButton EventType = "mousebutton"
|
||||||
|
@ -17,9 +17,9 @@ func (c Client) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c Client) SocketPath() string {
|
func (c Client) SocketPath() string {
|
||||||
return fmt.Sprintf("/run/user/1000/hypr/%s/.socket.sock", c.Signature)
|
return fmt.Sprintf("/tmp/hypr/%s/.socket.sock", c.Signature)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Client) EventSocketPath() string {
|
func (c Client) EventSocketPath() string {
|
||||||
return fmt.Sprintf("/run/user/1000/hypr/%s/.socket2.sock", c.Signature)
|
return fmt.Sprintf("/tmp/hypr/%s/.socket2.sock", c.Signature)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user