summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-07-11 04:39:13 -0700
committerLibravatar GitHub <noreply@github.com>2018-07-11 04:39:13 -0700
commitedfe42032cfe9a5bf49f42801e5c8349e7aa2eec (patch)
tree72d47d39076ac1d05145957a46159b2db68d46d6 /include
parentMerge pull request #2242 from RyanDwyer/floating-zindex (diff)
parentChange formatting of swaylock usage in the code (diff)
downloadsway-edfe42032cfe9a5bf49f42801e5c8349e7aa2eec.tar.gz
sway-edfe42032cfe9a5bf49f42801e5c8349e7aa2eec.tar.zst
sway-edfe42032cfe9a5bf49f42801e5c8349e7aa2eec.zip
Merge pull request #2240 from RedSoxFan/implement-1961
Implement swaylock customization flags
Diffstat (limited to 'include')
-rw-r--r--include/swaylock/swaylock.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h
index cf80a6ba..950cfaaf 100644
--- a/include/swaylock/swaylock.h
+++ b/include/swaylock/swaylock.h
@@ -19,9 +19,31 @@ enum auth_state {
19 AUTH_STATE_INVALID, 19 AUTH_STATE_INVALID,
20}; 20};
21 21
22struct swaylock_colorset {
23 uint32_t input;
24 uint32_t cleared;
25 uint32_t verifying;
26 uint32_t wrong;
27};
28
29struct swaylock_colors {
30 uint32_t background;
31 uint32_t bs_highlight;
32 uint32_t key_highlight;
33 uint32_t separator;
34 struct swaylock_colorset inside;
35 struct swaylock_colorset line;
36 struct swaylock_colorset ring;
37 struct swaylock_colorset text;
38};
39
22struct swaylock_args { 40struct swaylock_args {
23 uint32_t color; 41 struct swaylock_colors colors;
24 enum background_mode mode; 42 enum background_mode mode;
43 char *font;
44 uint32_t radius;
45 uint32_t thickness;
46 bool ignore_empty;
25 bool show_indicator; 47 bool show_indicator;
26 bool daemonize; 48 bool daemonize;
27}; 49};