Skip to content

Commit c5416ef

Browse files
committed
[SWAY] Added swappy.
1 parent 4c63e17 commit c5416ef

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

recipes/sway/layers/slurp.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ $(call git_clone, $(bdir), https://github.com/emersion/slurp.git, $(SLURP_GIT_RE
1313

1414
DEPENDS += sway
1515

16+
DEB_RUN_PACKAGES += jq
17+
1618
include $(BUILD_LAYER)
1719

1820
$(slurp): bdir:=$(bdir)

recipes/sway/layers/swappy.mk

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
LAYER:=swappy
2+
include $(DEFINE_LAYER)
3+
4+
swappy_GIT_REF?=master
5+
6+
swappy:=$(LSTAMP)/swappy
7+
8+
$(L) += $(swappy)
9+
10+
$(call git_clone, swappy, https://github.com/jtheoof/swappy, $(swappy_GIT_REF))
11+
12+
DEPENDS += sway
13+
DEPENDS += glib
14+
15+
DEB_RUN_PACKAGES += jq
16+
17+
include $(BUILD_LAYER)
18+
19+
$(swappy):
20+
$(swappy):
21+
mkdir -p $(builddir)/swappy
22+
cd $(srcdir)/swappy && meson $(MESON_OPTIONS) $(srcdir)/swappy $(builddir)/swappy
23+
cd $(builddir)/swappy && ninja
24+
cd $(builddir)/swappy && $(SUDO) DESTDIR=$(SYSROOT) ninja install
25+
$(stamp)
26+
27+
$(L).clean:
28+
rm -rf $(builddir)/swappy
29+
30+
31+

recipes/sway/recipe.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ LAYERS += mako
6969
LAYERS += grim
7070
LAYERS += slurp
7171
LAYERS += wl-clipboard
72+
LAYERS += swappy
7273

7374
LAYERS-$(CONFIG_LIBALSA) += libalsa
7475
LAYERS += pipewire

0 commit comments

Comments
 (0)