clean tree
This commit is contained in:
parent
5f63244a81
commit
de8b773387
|
@ -12,6 +12,6 @@ depcomp
|
|||
install-sh
|
||||
missing
|
||||
stamp-h1
|
||||
xcompmgr
|
||||
compton
|
||||
*.o
|
||||
*~
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
PACKAGES = x11 xcomposite xfixes xdamage xrender
|
||||
LIBS = `pkg-config --libs ${PACKAGES}` -lm
|
||||
INCS = `pkg-config --cflags ${PACKAGES}`
|
||||
CFLAGS = -Wall
|
||||
PREFIX = /usr/local
|
||||
MANDIR = ${PREFIX}/share/man/man1
|
||||
|
||||
OBJS=compton.o
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(INCS) -c $*.c
|
||||
|
||||
compton: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
$(OBJS): compton.h
|
||||
|
||||
install: compton
|
||||
@cp -t ${PREFIX}/bin compton
|
||||
@[ -d "${MANDIR}" ] \
|
||||
&& cp -t "${MANDIR}" compton.1
|
||||
|
||||
uninstall:
|
||||
@rm -f ${PREFIX}/compton
|
||||
@rm -f ${MANDIR}/compton.1
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) compton
|
||||
|
||||
.PHONY: uninstall clean
|
21
Makefile.am
21
Makefile.am
|
@ -1,21 +0,0 @@
|
|||
bin_PROGRAMS = xcompmgr
|
||||
man_MANS = xcompmgr.1
|
||||
|
||||
xcompmgr_LDADD = @XCOMPMGR_LIBS@ -lm
|
||||
|
||||
INCLUDES = @XCOMPMGR_CFLAGS@
|
||||
|
||||
EXTRA_DIST = \
|
||||
autogen.sh \
|
||||
ChangeLog \
|
||||
${man_MANS}
|
||||
|
||||
MAINTAINERCLEANFILES=ChangeLog
|
||||
|
||||
.PHONY: ChangeLog
|
||||
|
||||
ChangeLog:
|
||||
(GIT_DIR=$(top_srcdir)/.git git-log > .changelog.tmp && mv .changelog.tmp ChangeLog; rm -f .changelog.tmp) || (touch ChangeLog; echo 'git directory not found: installing possibly empty changelog.' >&2)
|
||||
|
||||
dist-hook: ChangeLog
|
||||
|
22
Makefile_
22
Makefile_
|
@ -1,22 +0,0 @@
|
|||
PACKAGES=x11 xcomposite xfixes xdamage xrender
|
||||
LIBS=`pkg-config --libs ${PACKAGES}` -lm
|
||||
INCS=`pkg-config --cflags ${PACKAGES}`
|
||||
CFLAGS = -Wall
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(INCS) -c $*.c
|
||||
|
||||
OBJS=xcompmgr.o
|
||||
|
||||
xcompmgr: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
|
||||
|
||||
$(OBJS): xcompmgr.h
|
||||
|
||||
install:
|
||||
cp -t /usr/bin/local xcompmgr
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) xcompmgr
|
||||
|
||||
.PHONY: install clean
|
|
@ -60,17 +60,15 @@ The same dependencies and build as xcompmgr.
|
|||
To build, make sure you have the above dependencies:
|
||||
|
||||
``` bash
|
||||
$ ./autogen.sh
|
||||
$ make
|
||||
$ make install
|
||||
```
|
||||
|
||||
The above will produce a single binary.
|
||||
|
||||
## Usage
|
||||
|
||||
``` bash
|
||||
$ xcompmgr -cC -t -5 -l -5 -r 5 -o 0.4 \
|
||||
$ compton -cC -t -5 -l -5 -r 5 -o 0.4 \
|
||||
-fF -I 0.065 -O 0.065 -D 6 -m 0.8 -i 0.6 -e 0.6 &
|
||||
|
||||
$ xcompmgr -cC -t -5 -l -5 -r 5 -o 0.4 -i 0.6 -e 0.6 &
|
||||
$ compton -cC -t -5 -l -5 -r 5 -o 0.4 -i 0.6 -e 0.6 &
|
||||
```
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#! /bin/sh
|
||||
autoreconf -v --install || exit 1
|
||||
./configure "$@"
|
|
@ -1,15 +1,17 @@
|
|||
.ds q \N'34'
|
||||
.TH xcompmgr 1
|
||||
.TH compton 1
|
||||
.SH NAME
|
||||
xcompmgr \- sample X compositing manager
|
||||
compton \- a compositor for X11
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B xcompmgr [\-d display] [\-r radius] [\-o opacity] [\-l left-offset] [\-t top-offset] [\-acCfFnsS]
|
||||
.B compton [\-d display] [\-r radius] [\-o opacity] [\-l left-offset] [\-t top-offset] [\-i opacity] [\-e opacity] [\-cCfFS]
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
.B xcompmgr
|
||||
is a sample compositing manager for X servers supporting the XFIXES, DAMAGE,
|
||||
and COMPOSITE extensions. It enables basic eye-candy effects.
|
||||
.B compton
|
||||
is a compositor based on Dana Jansens' version of xcompmgr (which itself was
|
||||
written by Keith Packard). It includes many improvements over the original
|
||||
xcompmgr, including window frame opacity, inactive window transparency,
|
||||
and shadows on argb windows.
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
.BI \-d\ display
|
||||
|
@ -25,7 +27,7 @@ Specifies the opacity for client-side shadows.
|
|||
Specifies the left offset for client-side shadows.
|
||||
.TP
|
||||
.BI \-t\ top-offset
|
||||
Specifies the top offset for client-side shadows.
|
||||
Specifies the top offset for client-side shadows.
|
||||
.TP
|
||||
.BI \-I\ fade-in-step
|
||||
Specifies the opacity change between steps while fading in.
|
||||
|
@ -36,10 +38,6 @@ Specifies the opacity change between steps while fading out.
|
|||
.BI \-D\ fade-delta
|
||||
Specifies the time (in milliseconds) between steps in a fade.
|
||||
.TP
|
||||
.BI \-a
|
||||
Automatic server-side compositing. This instructs the server to use the
|
||||
standard composition rules. Useful for debugging.
|
||||
.TP
|
||||
.BI \-c
|
||||
Client-side compositing with soft shadows and translucency support.
|
||||
.TP
|
||||
|
@ -47,12 +45,6 @@ Client-side compositing with soft shadows and translucency support.
|
|||
When \-c is specified, enables a smooth fade effect for transient windows like
|
||||
menus, and for all windows on hide and restore events.
|
||||
.TP
|
||||
.BI \-n
|
||||
Simple client-side compositing.
|
||||
.TP
|
||||
.BI \-s
|
||||
Server-side compositing with hard-edged shadows.
|
||||
.TP
|
||||
.BI \-C
|
||||
When \-c is specified, attempts to avoid painting shadows on panels and docks.
|
||||
.TP
|
||||
|
@ -60,10 +52,18 @@ When \-c is specified, attempts to avoid painting shadows on panels and docks.
|
|||
When \-f is specified, also enables the fade effect when windows change their
|
||||
opacity, as with transset(1).
|
||||
.TP
|
||||
.BI \-i\ opacity
|
||||
Specifies inactive window transparency. (0.1 - 1.0)
|
||||
.TP
|
||||
.BI \-e\ opacity
|
||||
Specifies window frame transparency. (0.1 - 1.0)
|
||||
.TP
|
||||
.BI \-S
|
||||
Enables synchronous operation. Useful for debugging.
|
||||
.SH BUGS
|
||||
Probably. Please report any you find to http://bugs.freedesktop.org/.
|
||||
Probably. Please report any you find to https://github.com/chjj/compton.
|
||||
.SH AUTHORS
|
||||
Keith Packard, with contributions from Matthew Allum, Eric Anholt, Dan Doel,
|
||||
Thomas Luebking, Matthew Hawn, Ely Levy, Phil Blundell, and Carl Worth.
|
||||
xcompmgr, Originally written by Keith Packard, with contributions from
|
||||
Matthew Allum, Eric Anholt, Dan Doel, Thomas Luebking, Matthew Hawn,
|
||||
Ely Levy, Phil Blundell, and Carl Worth.
|
||||
Compton by Christopher Jeffrey, based on Dana Jansens' original work.
|
29
configure.ac
29
configure.ac
|
@ -1,29 +0,0 @@
|
|||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.57)
|
||||
AC_INIT([xcompmgr], [1.1.3], [xorg@freedesktop.org])
|
||||
AC_CONFIG_SRCDIR([xcompmgr.c])
|
||||
AM_INIT_AUTOMAKE([dist-bzip2 foreign])
|
||||
AM_MAINTAINER_MODE
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([stdlib.h sys/time.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_HEADER_TIME
|
||||
AC_STRUCT_TM
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
AC_CHECK_FUNCS([gettimeofday localtime_r])
|
||||
|
||||
PKG_CHECK_MODULES(XCOMPMGR, xcomposite xfixes xdamage xrender)
|
||||
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
AC_OUTPUT
|
Loading…
Reference in New Issue