mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Spawn swaynag as a wayland client
This spawns swaynag as a wayland client similar to how swaybar and swaybg are already done
This commit is contained in:
parent
8c69da11bb
commit
6961bf2e4c
8 changed files with 147 additions and 71 deletions
|
|
@ -1,9 +1,12 @@
|
|||
#ifndef _SWAY_SWAYNAG_H
|
||||
#define _SWAY_SWAYNAG_H
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct swaynag_instance {
|
||||
struct wl_client *client;
|
||||
struct wl_listener client_destroy;
|
||||
|
||||
const char *args;
|
||||
pid_t pid;
|
||||
int fd[2];
|
||||
bool detailed;
|
||||
};
|
||||
|
|
@ -15,9 +18,6 @@ struct swaynag_instance {
|
|||
bool swaynag_spawn(const char *swaynag_command,
|
||||
struct swaynag_instance *swaynag);
|
||||
|
||||
// Kill the swaynag instance
|
||||
void swaynag_kill(struct swaynag_instance *swaynag);
|
||||
|
||||
// Write a log message to swaynag->fd[1]. This will fail when swaynag->detailed
|
||||
// is false.
|
||||
void swaynag_log(const char *swaynag_command, struct swaynag_instance *swaynag,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue