aboutsummaryrefslogtreecommitdiffstats
path: root/swaybg
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-11-12 08:31:47 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-11-12 08:31:47 -0500
commit4dc913c95e18d7a9416433b63bc89d78a9506d55 (patch)
treeaa33761ecc18953fa25ca40934a089d811a294b1 /swaybg
parentAdd new dependencies for wayland clients (diff)
downloadsway-4dc913c95e18d7a9416433b63bc89d78a9506d55.tar.gz
sway-4dc913c95e18d7a9416433b63bc89d78a9506d55.tar.zst
sway-4dc913c95e18d7a9416433b63bc89d78a9506d55.zip
Add swaybg executable
This will let users set their background to something other than that cringy demoscene thing wlc has now. It's also going to be the first wayland client written for sway, so I picked an easy thing to work on. We'll have to figure out how to indicate that it's a special view.
Diffstat (limited to 'swaybg')
-rw-r--r--swaybg/CMakeLists.txt27
-rw-r--r--swaybg/main.c6
2 files changed, 33 insertions, 0 deletions
diff --git a/swaybg/CMakeLists.txt b/swaybg/CMakeLists.txt
new file mode 100644
index 00000000..89d8afde
--- /dev/null
+++ b/swaybg/CMakeLists.txt
@@ -0,0 +1,27 @@
1project (swaybg)
2
3find_package(Wayland REQUIRED)
4find_package(Cairo REQUIRED)
5find_package(Pango REQUIRED)
6
7include(Wayland)
8WAYLAND_ADD_PROTOCOL_CLIENT(proto-xdg-shell "xdg-shell.xml" xdg-shell)
9
10set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "../bin/")
11include_directories(
12 ${CMAKE_CURRENT_SOURCE_DIR}/include
13 ${WAYLAND_CLIENT_INCLUDE_DIR}
14 ${CAIRO_INCLUDE_DIRS}
15 ${PANGO_INCLUDE_DIRS}
16)
17
18add_executable(swaybg
19 main.c
20)
21
22TARGET_LINK_LIBRARIES(swaybg ${WAYLAND_CLIENT_LIBRARIES} ${CAIRO_LIBRARIES} ${PANGO_LIBRARIES})
23
24INSTALL(
25 TARGETS swaybg
26 RUNTIME DESTINATION bin
27)
diff --git a/swaybg/main.c b/swaybg/main.c
new file mode 100644
index 00000000..4a8ef522
--- /dev/null
+++ b/swaybg/main.c
@@ -0,0 +1,6 @@
1#include <stdio.h>
2
3int main(int argc, char **argv) {
4 printf("Hello world");
5 return 0;
6}