From 54e90f75203bbf40ec6ac6dd09227e2c6f97cc62 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 21 Jun 2022 12:22:06 +0100 Subject: Add various command line arguments. There are too many really to use single-character args, so the next step should be a config file. --- src/tofi.h | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'src/tofi.h') diff --git a/src/tofi.h b/src/tofi.h index 36869a6..519dcf6 100644 --- a/src/tofi.h +++ b/src/tofi.h @@ -19,19 +19,12 @@ struct tofi { struct wl_shm *wl_shm; struct zwlr_layer_shell_v1 *zwlr_layer_shell; - uint32_t wl_display_name; - uint32_t wl_registry_name; - uint32_t wl_compositor_name; - uint32_t wl_seat_name; - uint32_t wl_output_name; - uint32_t wl_shm_name; - uint32_t zwlr_layer_shell_name; - /* Objects */ struct wl_keyboard *wl_keyboard; struct wl_pointer *wl_pointer; /* State */ + bool submit; bool closed; struct { struct surface surface; @@ -41,6 +34,8 @@ struct tofi { uint32_t width; uint32_t height; uint32_t scale; + int32_t x; + int32_t y; } window; /* Keyboard state */ @@ -48,12 +43,8 @@ struct tofi { struct xkb_context *xkb_context; struct xkb_keymap *xkb_keymap; - /* greetd state */ - const char *username; - const char *command; - bool submit; - /* Options */ + int anchor; bool hide_cursor; }; -- cgit v1.2.3