all the things

This commit is contained in:
c0dev0id
2023-01-10 11:45:28 +01:00
parent f3db1ea486
commit 7a9bbf0168
143 changed files with 15515 additions and 0 deletions

29
x11/hsetroot/Makefile Normal file
View File

@@ -0,0 +1,29 @@
# $OpenBSD$
COMMENT = wallpaper changer that works with compositors
CATEGORIES = x11
GH_ACCOUNT = himdel
GH_PROJECT = hsetroot
GH_TAGNAME = 1.0.5
MAINTAINER = Stefan Hagen <sh+ports@codevoid.de>
# GPLv2 only
PERMIT_PACKAGE = Yes
WANTLIB += Imlib2 X11 Xinerama c
LIB_DEPENDS = graphics/imlib2
USE_GMAKE = Yes
MAKE_FLAGS = CC="${CC}"
FAKE_FLAGS = DESTDIR=
NO_TEST = Yes
post-install:
${INSTALL_MAN} ${FILESDIR}/hsetroot.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

2
x11/hsetroot/distinfo Normal file
View File

@@ -0,0 +1,2 @@
SHA256 (hsetroot-1.0.5.tar.gz) = z/X4O4WiHgxcjI7svVUgkLt12KxZ4nsLrkgEb5y1pEo=
SIZE (hsetroot-1.0.5.tar.gz) = 12878

View File

@@ -0,0 +1,114 @@
.\" Original author: Hyriand <hyriand@thegraveyard.org> (2003)
.\" Updated by Martin Hradil (2019)
.\" License: GPL version 2
.Dd August 13, 2020
.Dt HSETROOT 1
.Os
.Sh NAME
.Nm hsetroot
.Nd wallpaper changer that works with compositors
.Sh SYNOPSIS
.Nm
.Op Ar command1 Op Ar arg1 ...
.Op Ar command2 Op Ar arg2 ...
.Sh DESCRIPTION
.Nm
is a tool which allows you to compose wallpapers ("root pixmaps") for X.
It has a lot of options like rendering gradients, solids and images and
manipulate these in various ways.
.Nm
also supports alpha-channels.
.Pp
.Nm
uses
.Xr XSetWindowBackgroundPixmap 3
instead of
.Xr XSetWindowBackground 3
for solid colors.
This makes it a good
.Xr xsetroot 1
replacement when a compositor (compton, xcompmgr, ...) is in use.
.Pp
Colors are in the #rgb, #rrggbb, #rrggbbaa, rgb:1/2/3 formats or a X color name.
.Sh GENERIC OPTIONS
.Bl -tag -width Ds
.It Fl root
Treat multiple displays as one big screen (ignore xrandr outputs)
.It Fl screens Ar int
Set a screenmask to use
.El
.Sh GRADIENTS
.Bl -tag -width Ds
.It Fl add Ar color
Add color to range using distance 1
.It Fl addd Ar color Ar distance
Add color to range using custom distance
.It Fl gradient Ar angle
Render gradient using specified angle
.It Fl clear
Clear the color range
.El
.Sh SOLID COLOR
.Bl -tag -width Ds
.It Fl solid Ar color
Render a solid using the specified color
.El
.Sh IMAGE FILES
.Bl -tag -width Ds
.It Fl center Ar image
Render an image centered on screen
.It Fl cover Ar image
Render an image centered on screen scaled to fill the screen fully
.It Fl tile Ar image
Render an image tiled
.It Fl full Ar image
Render an image maximum aspect
.It Fl extend Ar image
Render an image max aspect and fill borders
.It Fl fill Ar image
Render an image stretched
.El
.Sh IMAGE MANIPULATION
.Bl -tag -width Ds
.It Fl tint Ar color
Tint the current image
.It Fl blur Ar radius
Blur the current image
.It Fl sharpen Ar radius
Sharpen the current image
.It Fl contrast Ar amount
Adjust contrast of current image
.It Fl brightness Ar amount
Adjust brightness of current image
.It Fl gamma Ar amount
Adjust gamma level of current image
.It Fl flipv
Flip the current image vertically
.It Fl fliph
Flip the current image horizontally
.It Fl flipd
Flip the current image diagonally
.El
.Sh MISC
.Bl -tag -width Ds
.It Fl alpha Ar amount
Adjust alpha level for colors and images
.It Fl write Ar filename
Write current image to file
.El
.Sh SEE ALSO
.Xr xcompmgr 1 ,
.Xr xsetroot 1 ,
.Xr XSetWindowBackgroundPixmap 3
.Sh AUTHORS
.Nm
was written by
.An Hyriand Aq Mt hyriand@thegraveyard.org
in 2003.
Martin Hradil updated it in 2019.
.Pp
This manual page was written by
.An Stefan Hagen Aq Mt sh+ports@codevoid.de
for the
.Ox
project (but may be used by others).

View File

@@ -0,0 +1,28 @@
$OpenBSD$
We need -std=gnu99 for !clang archs.
Fix install commands
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -1,7 +1,7 @@
CC?=gcc
PKG_CONFIG?=pkg-config
-CFLAGS?=-g -O2 -Wall
+CFLAGS+=-std=gnu99
LDFLAGS?=
PREFIX?=/usr/local
@@ -30,8 +30,8 @@ hsetroot: hsetroot.o
hsr-outputs: hsr-outputs.o
install: hsetroot hsr-outputs
- install -st $(PREFIX)/bin/ hsetroot
- install -st $(PREFIX)/bin/ hsr-outputs
+ install -sm 0755 -D hsetroot $(DESTDIR)$(PREFIX)/bin/
+ install -sm 0755 -D hsr-outputs $(DESTDIR)$(PREFIX)/bin/
clean:
rm -f *.o hsetroot hsr-outputs

8
x11/hsetroot/pkg/DESCR Normal file
View File

@@ -0,0 +1,8 @@
hsetroot is a tool which allows you to compose wallpapers ("root
pixmaps") for X. It has a lot of options like rendering gradients,
solids and images and manipulate these in various ways. hsetroot also
supports alpha-channels.
hsetroot uses XSetWindowBackgroundPixmap instead of XSetWindowBackground
for solid colors. This makes it a good xsetroot replacement when a
compositor (compton, xcompmgr, ...) is in use.

4
x11/hsetroot/pkg/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $OpenBSD: PLIST,v$
@bin bin/hsetroot
@bin bin/hsr-outputs
@man man/man1/hsetroot.1