make a function private to a plugin
This commit is contained in:
parent
99491dca80
commit
ec09db0248
2 changed files with 6 additions and 7 deletions
|
@ -51,9 +51,3 @@ async def get_focused_monitor_props():
|
|||
assert isinstance(monitor, dict)
|
||||
if monitor.get("focused") == True:
|
||||
return monitor
|
||||
|
||||
|
||||
async def get_client_props_by_pid(pid: int):
|
||||
for client in await hyprctlJSON("clients"):
|
||||
if client.get("pid") == pid:
|
||||
return client
|
||||
|
|
|
@ -4,7 +4,6 @@ from ..ipc import (
|
|||
hyprctl,
|
||||
hyprctlJSON,
|
||||
get_focused_monitor_props,
|
||||
get_client_props_by_pid,
|
||||
)
|
||||
import os
|
||||
|
||||
|
@ -13,6 +12,12 @@ from .interface import Plugin
|
|||
DEFAULT_MARGIN = 60
|
||||
|
||||
|
||||
async def get_client_props_by_pid(pid: int):
|
||||
for client in await hyprctlJSON("clients"):
|
||||
if client.get("pid") == pid:
|
||||
return client
|
||||
|
||||
|
||||
class Scratch:
|
||||
def __init__(self, uid, opts):
|
||||
self.uid = uid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue