From 190546fd315a24c04006fb1b177069933f4350da Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 1 Jun 2019 21:05:09 +0200 Subject: add seat sub command 'xcursor_theme' New 'seat xcursor_theme []' command that configures the default xcursor theme. The default seat's xcursor theme is also propagated to XWayland, and exported through the XCURSOR_THEME and XCURSOR_SIZE environment variables. This is done every time the default seat's configuration is changed. --- include/sway/commands.h | 1 + include/sway/config.h | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/sway/commands.h b/include/sway/commands.h index c4903788..927296b0 100644 --- a/include/sway/commands.h +++ b/include/sway/commands.h @@ -278,6 +278,7 @@ sway_cmd seat_cmd_cursor; sway_cmd seat_cmd_fallback; sway_cmd seat_cmd_hide_cursor; sway_cmd seat_cmd_pointer_constraint; +sway_cmd seat_cmd_xcursor_theme; sway_cmd cmd_ipc_cmd; sway_cmd cmd_ipc_events; diff --git a/include/sway/config.h b/include/sway/config.h index b94a35f3..311adb16 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -165,6 +165,10 @@ struct seat_config { list_t *attachments; // list of seat_attachment configs int hide_cursor_timeout; enum seat_config_allow_constrain allow_constrain; + struct { + char *name; + int size; + } xcursor_theme; }; enum config_dpms { -- cgit v1.2.3