river-status support

This commit is contained in:
bluepython508
2025-03-17 15:10:28 +00:00
parent a5e4b682fe
commit b31915e6a6
10 changed files with 433 additions and 5 deletions

View File

@@ -4,14 +4,23 @@
#include <stdbool.h>
#include <wayland-client.h>
#include <libguile.h>
#include "river-status-unstable-v1.h"
struct SeatStatus {
struct wl_output *focused_output;
char *focused_view_title;
char *mode;
};
struct Seat
{
struct wl_list link;
struct wl_seat *wl_seat;
struct zriver_seat_status_v1 *status_monitor;
uint32_t name;
struct wl_list idles;
struct SeatStatus status;
};
struct Idle
@@ -24,6 +33,7 @@ struct Idle
};
struct Seat *seat_create (struct wl_seat *wl_seat, uint32_t name);
void seat_status_init(struct Seat *seat);
void seat_destroy (struct Seat *seat);
bool seat_add_idle (struct Seat *seat, SCM proc, uint32_t ms);