diff options
author | Anselm R Garbe <anselm@garbe.us> | 2013-08-13 19:11:07 +0200 |
---|---|---|
committer | Anselm R Garbe <anselm@garbe.us> | 2013-08-13 19:11:07 +0200 |
commit | 1114a8345a83b776d12e7721af45342b7f2f5174 (patch) | |
tree | e953c61035b10e109974960856165467ea723414 | |
parent | 60de8fe08b6f7f589e40a457526572c7b8d81f06 (diff) | |
download | wmname-1114a8345a83b776d12e7721af45342b7f2f5174.tar.gz wmname-1114a8345a83b776d12e7721af45342b7f2f5174.zip |
-rw-r--r-- | LICENSE | 2 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | wmname.1 | 17 | ||||
-rw-r--r-- | wmname.c | 2 |
5 files changed, 25 insertions, 4 deletions
@@ -1,6 +1,6 @@ MIT/X Consortium License -© 2008 Anselm R Garbe <garbeam at gmail dot com> +© 2008-2013 Anselm R Garbe <garbeam at gmail dot com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -32,7 +32,7 @@ clean: dist: clean @echo creating dist tarball @mkdir -p wmname-${VERSION} - @cp -R LICENSE Makefile README config.mk ${SRC} wmname-${VERSION} + @cp -R LICENSE Makefile README config.mk wmname.1 ${SRC} wmname-${VERSION} @tar -cf wmname-${VERSION}.tar wmname-${VERSION} @gzip wmname-${VERSION}.tar @rm -rf wmname-${VERSION} @@ -42,6 +42,10 @@ install: all @mkdir -p ${DESTDIR}${PREFIX}/bin @cp -f wmname ${DESTDIR}${PREFIX}/bin @chmod 755 ${DESTDIR}${PREFIX}/bin/wmname + @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 + @mkdir -p ${DESTDIR}${MANPREFIX}/man1 + @sed "s/VERSION/${VERSION}/g" < wmname.1 > ${DESTDIR}${MANPREFIX}/man1/wmname.1 + @chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmname.1 uninstall: @echo removing executable file from ${DESTDIR}${PREFIX}/bin @@ -1,5 +1,5 @@ # wmname version -VERSION = 0.1 +VERSION = 0.2 # Customize below to fit your system diff --git a/wmname.1 b/wmname.1 new file mode 100644 index 0000000..46f9ec4 --- /dev/null +++ b/wmname.1 @@ -0,0 +1,17 @@ +.TH WMNAME 1 wmname\-VERSION +.SH NAME +wmname \- prints/sets the EWMH WM name property. +.SH SYNOPSIS +.B wmname +.IR [name] +.SH DESCRIPTION +.B wmname +Prints/sets the window manager name property of the root window similar to how hostname(1) behaves. +.B wmname +wmname is a nice utility to fix problems with JDK versions and other broken programs assuming a reparenting window manager for instance. +.SH AUTHORS +Anselm R Garbe <garbeam at gmail dot com> +.SH LICENSE +MIT/X Consortium License. See the LICENSE file for the terms of redistribution. +.SH SEE ALSO +.BR dwm (1) @@ -29,7 +29,7 @@ main(int argc, char **argv) { if(argc > 2) eprint("usage: wmname [name] [-v]\n"); else if(argc == 2 && !strncmp(argv[1], "-v", 3)) - eprint("wmname-"VERSION", © 2008 Anselm R Garbe\n", stdout); + eprint("wmname-"VERSION", © 2008-2013 Anselm R Garbe\n", stdout); if(!(dpy = XOpenDisplay(0))) eprint("wmname: cannot open display\n"); |