@@ -8,10 +8,10 @@ title: Hyprland
8
8
* ` urgent-window ` : ` (windowaddress: int) `
9
9
* ` keyboard-layout ` : ` (keyboardname: string, layoutname: string) `
10
10
* ` submap ` : ` (name: string) `
11
- * ` monitor-added ` : ` (name: string ) `
12
- * ` monitor-removed ` : ` (name: string ) `
13
- * ` workspace-added ` : ` (name: string ) `
14
- * ` workspace-removed ` : ` (name: string ) `
11
+ * ` monitor-added ` : ` (name: number ) `
12
+ * ` monitor-removed ` : ` (name: number ) `
13
+ * ` workspace-added ` : ` (name: number ) `
14
+ * ` workspace-removed ` : ` (name: number ) `
15
15
* ` client-added ` : ` (address: string) `
16
16
* ` client-removed ` : ` (address: string) `
17
17
@@ -27,7 +27,8 @@ title: Hyprland
27
27
* ` getMonitor ` : ` (id: number) => Monitor `
28
28
* ` getWorkspace ` : ` (id: number) => Workspace `
29
29
* ` getClient ` : ` (address: string) => Client `
30
- * ` sendMessage ` : ` (msg: string) => Promise<string> ` : send a message to the [ hyprland socket] ( https://wiki.hyprland.org/IPC/#tmphyprhissocketsock )
30
+ * ` message ` : ` (msg: string) => string ` : send a message to the [ hyprland socket] ( https://wiki.hyprland.org/IPC/#tmphyprhissocketsock )
31
+ * ` messageAsync ` : ` (msg: string) => Promise<string> ` : async version of message
31
32
32
33
## Active
33
34
@@ -78,10 +79,10 @@ const hyprland = await Service.import('hyprland')
78
79
const focusedTitle = Widget .Label ({
79
80
label: hyprland .active .client .bind (' title' ),
80
81
visible: hyprland .active .client .bind (' address' )
81
- .transform (addr => !! addr),
82
+ .as (addr => !! addr),
82
83
})
83
84
84
- const dispatch = ws => hyprland .sendMessage (` dispatch workspace ${ ws} ` );
85
+ const dispatch = ws => hyprland .messageAsync (` dispatch workspace ${ ws} ` );
85
86
86
87
const Workspaces = () => Widget .EventBox ({
87
88
onScrollUp : () => dispatch (' +1' ),
0 commit comments