diff options
| -rw-r--r-- | Makefile | 14 | ||||
| -rw-r--r-- | README.md | 32 | ||||
| -rwxr-xr-x | examples/mint_auto_start_example.sh | 6 |
3 files changed, 27 insertions, 25 deletions
@@ -1,5 +1,13 @@ -CFLAGS = -g -O2 -Wall -Wextra -LDFLAGS = +CFLAGS = -g -O3 -march=native -Wall -Wextra + +# OpenBSD +X11INC = /usr/X11R6/include +X11LIB = /usr/X11R6/lib + +CFLAGS += -I${X11INC} +CFLAGS += -L${X11LIB} +# + LDLIBS = -lX11 -lXext -lXrender prefix = /usr/local @@ -21,4 +29,4 @@ clean: uninstall: rm -f '$(DESTDIR)$(bindir)/xwinwrap' -.PHONY: all install clean
\ No newline at end of file +.PHONY: all install clean @@ -1,23 +1,15 @@ # Xwinwrap -Fork of xwinwrap. -Xwinwrap allows you to stick an app such as a videoplayer or gif viewer to your desktop background. -Gif as a background: - - - -Video as a background (it is much smoother than the gif would make it appear): - - +Fork of xwinwrap. +Xwinwrap allows you to embed any other X11 window into the root X11 window; now on OpenBSD. ### Installing ``` -sudo apt-get install xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev -git clone https://github.com/mmhobi7/xwinwrap.git +git clone https://github.com/ProsperousPotato/xwinwrap cd xwinwrap make -sudo make install +doas make install make clean ``` @@ -25,9 +17,9 @@ make clean ``` cd /path/to/xwinwrap -sudo make uninstall +doas make uninstall cd .. -rm -r xwinwrap +rm -rf xwinwrap ``` ### Usage @@ -62,11 +54,14 @@ Options: -d - Daemonize -debug - Enable debug messages ``` -Example -`xwinwrap -g 400x400 -ni -s -nf -b -un -argb -sh circle -- gifview -w WID mygif.gif -a` +### Example + +#### Have neofetch as a wallpaper +`xwinwrap -ov -fs -- xterm -hold -geometry 1920x1080 -bg black -fg white +sb -into WID -e neofetch` `nice xwinwrap -b -s -fs -st -sp -nf -ov -fdt -- mpv -wid WID --really-quiet --framedrop=vo --no-audio --panscan="1.0" /path/to/your/video` + ### Changes * Added ability to make undecorated window @@ -74,5 +69,10 @@ Example * Refactored window hints * Add DESKTOP window type flag +* Compiles out-of-the-box on OpenBSD + ---- Original source - https://launchpad.net/xwinwrap + +---- +Forked from - https://github.com/mmhobi7/xwinwrap diff --git a/examples/mint_auto_start_example.sh b/examples/mint_auto_start_example.sh deleted file mode 100755 index 2063505..0000000 --- a/examples/mint_auto_start_example.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# starting this script on login will wait for Nemo to initialize -# and start xwinwrap with mplayer on desktop surface and play /path/to/your/video - -until $(echo xwininfo -name Desktop)|grep "IsViewable"; do :; done -nice xwinwrap -b -s -fs -st -sp -nf -ov -fdt -d "Desktop" -- mplayer -wid WID -panscan=1.0 -nosound -framedrop /path/to/your/video |
