Skip to content

Instantly share code, notes, and snippets.

@jdiez17
Created August 10, 2015 00:00
Show Gist options
  • Save jdiez17/51202edfcb64a9e1291e to your computer and use it in GitHub Desktop.
Save jdiez17/51202edfcb64a9e1291e to your computer and use it in GitHub Desktop.
+int cmd_fullscreen(struct sway_config *config, int argc, char **argv) {
+ if (argc != 1) {
+ sway_log(L_ERROR, "Invalid fullscreen command (expected 1 arguments, got %d)", argc);
+ return 1;
+ }
+
+ swayc_t *container = get_focused_container(&root_container);
+ wlc_view_set_state(container->handle, WLC_BIT_FULLSCREEN, true);
+
+ return 1;
+}
+
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment