Add icon and desktop file

This commit is contained in:
Jason Francis
2019-12-09 17:32:55 -05:00
parent 22669edadb
commit 54b5fe7e30
9 changed files with 740 additions and 21 deletions

10
src/config.h.in Normal file
View File

@@ -0,0 +1,10 @@
/* SPDX-License-Identifier: MIT */
/* Copyright (C) 2019 cyclopsian */
#ifndef WDISPLAY_CONFIG_H
#define WDISPLAY_CONFIG_H
#define WDISPLAYS_APP_ID "@app_id@"
#define WDISPLAYS_VERSION "@version@"
#endif

View File

@@ -1365,7 +1365,7 @@ static void activate(GtkApplication* app, gpointer user_data) {
int main(int argc, char *argv[]) {
g_setenv("GDK_GL", "gles", FALSE);
GtkApplication *app = gtk_application_new("org.swaywm.sway-outputs", G_APPLICATION_FLAGS_NONE);
GtkApplication *app = gtk_application_new(WDISPLAYS_APP_ID, G_APPLICATION_FLAGS_NONE);
g_signal_connect(app, "activate", G_CALLBACK(activate), NULL);
int status = g_application_run(G_APPLICATION(app), argc, argv);
g_object_unref(app);

View File

@@ -7,6 +7,8 @@ gtk = dependency('gtk+-3.0')
assert(gdk.get_pkgconfig_variable('targets').split().contains('wayland'), 'Wayland GDK backend not present')
epoxy = dependency('epoxy')
configure_file(input: 'config.h.in', output: 'config.h', configuration: conf)
executable(
'wdisplays',
[

View File

@@ -11,6 +11,8 @@
#ifndef WDISPLAY_WDISPLAY_H
#define WDISPLAY_WDISPLAY_H
#include "config.h"
#define HEADS_MAX 64
#define HOVER_USECS (100 * 1000)