From e6fe93529745f1d7da17f5f9f0eaccbf1c17ccae Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Thu, 31 Aug 2017 00:52:24 +0530 Subject: First Commit --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..aaa0498 --- /dev/null +++ b/README.md @@ -0,0 +1,45 @@ +# Xwinwrap + +My fork of xwinwrap. +Xwinwrap allows you to stick most of the apps to your desktop background. +My use case - can use gif as a background + +### Compiling + +`gcc -Wall xwinwrap.c -lX11 -lXext -lXrender -g -o xwinwrap` + +You may have to use `-L` flag to specify directory for xlib. +e.g. `gcc -Wall xwinwrap.c -L /usr/lib/x86_64-linux-gnu -lX11 -lXext -lXrender -g -o xwinwrap` + +### Usage + +``` +Usage: xwinwrap [-g {w}x{h}+{x}+{y}] [-ni] [-argb] [-fs] [-s] [-st] [-sp] [-a] [-b] [-nf] [-o OPACITY] [-sh SHAPE] [-ov]-- COMMAND ARG1... +Options: + -g - Specify Geometry (w=width, h=height, x=x-coord, y=y-coord. ex: -g 640x480+100+100) + -ni - Ignore Input + -argb - RGB + -fs - Full Screen + -un - Undecorated + -s - Sticky + -st - Skip Taskbar + -sp - Skip Pager + -a - Above + -b - Below + -nf - No Focus + -o - Opacity value between 0 to 1 (ex: -o 0.20) + -sh - Shape of window (choose between rectangle, circle or triangle. Default is rectangle) + -ov - Set override_redirect flag (For seamless desktop background integration in non-fullscreenmode) + -debug - Enable debug messages +``` +Example +`./xwinwrap -g 400x400 -ni -s -nf -b -un -argb -sh circle -- gifview -w WID mygif.gif -a` + +### Changes + +* Added ability to make undecorated window +* Changed how desktop window is found +* Refactored window hints + +---- +Original source - https://launchpad.net/xwinwrap -- cgit v1.2.3 From 897a9b0a15e5d92b1aca5efd4ba843875722a4fb Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Thu, 31 Aug 2017 04:34:00 +0530 Subject: Added Makefile --- Makefile | 16 ++++++++++++++++ README.md | 16 ++++++++++------ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 Makefile (limited to 'README.md') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ac6981a --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +CC = gcc +CFLAGS= -g -Wall +INCLUDE = -L /usr/lib/x86_64-linux-gnu +LIBS = -lX11 -lXext -lXrender + +all: + ${CC} xwinwrap.c ${CFLAGS} ${INCLUDE} ${LIBS} -o xwinwrap + +install: + install xwinwrap '/usr/local/bin' + +uninstall: + rm -f '/usr/local/bin/xwinwrap' + +clean: + rm -f xwinwrap diff --git a/README.md b/README.md index aaa0498..bb2d341 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,16 @@ My fork of xwinwrap. Xwinwrap allows you to stick most of the apps to your desktop background. My use case - can use gif as a background -### Compiling +### Installing -`gcc -Wall xwinwrap.c -lX11 -lXext -lXrender -g -o xwinwrap` - -You may have to use `-L` flag to specify directory for xlib. -e.g. `gcc -Wall xwinwrap.c -L /usr/lib/x86_64-linux-gnu -lX11 -lXext -lXrender -g -o xwinwrap` +``` +sudo apt-get install xorg-dev build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev +git clone https://github.com/ujjwal96/xwinwrap.git +cd xwinwrap +make +sudo make install +make clean +``` ### Usage @@ -33,7 +37,7 @@ Options: -debug - Enable debug messages ``` Example -`./xwinwrap -g 400x400 -ni -s -nf -b -un -argb -sh circle -- gifview -w WID mygif.gif -a` +`xwinwrap -g 400x400 -ni -s -nf -b -un -argb -sh circle -- gifview -w WID mygif.gif -a` ### Changes -- cgit v1.2.3 From 7826c87fae19d10ee8adfd92f816142a17a3ff34 Mon Sep 17 00:00:00 2001 From: Ujjwal Verma Date: Thu, 31 Aug 2017 04:56:44 +0530 Subject: Update README --- README.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index bb2d341..f120a12 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ My fork of xwinwrap. Xwinwrap allows you to stick most of the apps to your desktop background. My use case - can use gif as a background +![demo gif](https://github.com/ujjwal96/xwinwrap/blob/demo/demo.gif) + ### Installing ``` -- cgit v1.2.3