Skip to content

Commit

Permalink
[feature] Custom XDPW implementation using wayshot
Browse files Browse the repository at this point in the history
Signed-off-by: Shinyzenith <[email protected]>
  • Loading branch information
Shinyzenith committed May 7, 2023
1 parent 1e6d29a commit a0c8e39
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "xdg-desktop-portal-wlr"]
path = xdg-desktop-portal-wlr
url = https://github.com/waycrate/xdg-desktop-portal-wlr
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ MAN7_DIR := /usr/share/man/man7
all: build

build:
@$(MAKE) -C ./xdg-desktop-portal-wlr/ -s $@
@cargo build $(BUILDFLAGS)

run:
@$(MAKE) -C ./xdg-desktop-portal-wlr/ -s $@ &
@cargo run

install: build
Expand All @@ -19,19 +21,23 @@ install: build
@chmod +x $(TARGET_DIR)/$(BINARY)
@find ./docs -type f -iname "*.1.gz" -exec cp {} $(MAN1_DIR) \;
@find ./docs -type f -iname "*.7.gz" -exec cp {} $(MAN7_DIR) \;
@$(MAKE) -C ./xdg-desktop-portal-wlr/ -s $@

uninstall:
@rm -f $(TARGET_DIR)/$(BINARY)
@rm -f /usr/share/man/**/wayshot.*
@$(MAKE) -C ./xdg-desktop-portal-wlr/ -s $@

check:
@cargo fmt
@cargo check
@cargo clippy
@$(MAKE) -C ./xdg-desktop-portal-wlr/ -s $@

clean:
@cargo clean
@rm -f ./docs/*.1.gz
@$(MAKE) -C ./xdg-desktop-portal-wlr/ -s $@

setup:
@rustup install stable
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ Multi monitor systems break on `--slurp` usage. This is quite the tricky bug and
- scdoc (If present, man-pages will be generated.)
- rustup
- make
- meson (Required to build XDPW.)
- ninja (Required to build XDPW.)

## Compiling:

Expand Down
1 change: 1 addition & 0 deletions xdg-desktop-portal-wlr
Submodule xdg-desktop-portal-wlr added at c4b97d

0 comments on commit a0c8e39

Please sign in to comment.