Skip to content

Commit 6d26bc9

Browse files
committed
[SWAY] Add some scripts to configure sreen-share and install tools.
1 parent c5416ef commit 6d26bc9

File tree

3 files changed

+35
-0
lines changed

3 files changed

+35
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
LAYER:=sway-scripts
2+
include $(DEFINE_LAYER)
3+
4+
sway-install-tools:=$(SYSROOT)/usr/local/bin/sway-install-tools
5+
sway-enable-screenshare:=$(SYSROOT)/usr/local/bin/sway-enable-screenshare
6+
7+
$(L) += $(sway-install-tools)
8+
$(L) += $(sway-enable-screenshare)
9+
10+
include $(BUILD_LAYER)
11+
12+
$(sway-enable-screenshare):
13+
$(SUDO) mkdir -p $(dir $@)
14+
$(SUDO) cp $(BASE_sway-scripts)/sway-enable-screenshare $(SYSROOT)/usr/local/bin
15+
16+
$(sway-install-tools):
17+
$(SUDO) mkdir -p $(dir $@)
18+
$(SUDO) echo "#!/bin/bash" | $(SUDO) tee $@
19+
$(SUDO) echo "apt-get -y install $(shell make deb-run-info)" | $(SUDO) tee -a $@
20+
$(SUDO) chmod +x $@
21+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
systemctl --user enable pipewire
4+
systemctl --user enable pipewire.socket
5+
systemctl --user enable pipewire-media-session
6+
7+
systemctl --user start pipewire
8+
systemctl --user start pipewire.socket
9+
systemctl --user start pipewire-media-session
10+
systemctl --user start xdg-desktop-portal
11+
systemctl --user start xdg-desktop-portal-wlr
12+

recipes/sway/recipe.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ LAYERS += cxxopts
9999
LAYERS += pamixer
100100
LAYERS += avizo
101101

102+
LAYERS += sway-scripts
103+
102104
LAYERS-$(CONFIG_PACKAGE) += package
103105

104106
LAYERS += $(LAYERS-y)

0 commit comments

Comments
 (0)