aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-27 02:21:04 +0100
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-07-27 02:21:04 +0100
commitf19d253ca32772ba1388957b19acf646643c8405 (patch)
treea2b2ca1ac56a7e225ce56fa25eaa728e4f2319e5
parent391519d3bb53e981218de41a37d1f0f95aef3d17 (diff)
upgrades, people, upgrades
-rw-r--r--Makefile14
-rw-r--r--README.md32
-rwxr-xr-xexamples/mint_auto_start_example.sh6
3 files changed, 27 insertions, 25 deletions
diff --git a/Makefile b/Makefile
index d914a89..bbddd9d 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/README.md b/README.md
index e828000..33d46a2 100644
--- a/README.md
+++ b/README.md
@@ -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:
-
-![demo gif](https://github.com/mmhobi7/xwinwrap/blob/readme/demo-gif.gif)
-
-Video as a background (it is much smoother than the gif would make it appear):
-
-![demo gif](https://github.com/mmhobi7/xwinwrap/blob/readme/demo-video.gif)
+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