wmname

sets/prints window manager name similiar to hostname(1)
git clone git://git.suckless.org/wmname
Log | Files | Refs | README | LICENSE

commit 64b3a1fd857f961f62094d47c61cd3d1577adb5b
parent b0a608b5385f53252de9508f250592880ef479e9
Author: Anselm R Garbe <garbeam@gmail.com>
Date:   Sat,  2 Aug 2008 19:36:01 +0100

prepared first release
Diffstat:
MLICENSE | 2+-
Mconfig.mk | 2+-
Mwmname.c | 6+++---
3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -1,6 +1,6 @@ MIT/X Consortium License -© 2008 Anselm R. Garbe <garbeam at gmail dot com> +© 2008 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"), diff --git a/config.mk b/config.mk @@ -1,5 +1,5 @@ # wmname version -VERSION = 0.2 +VERSION = 0.1 # Customize below to fit your system diff --git a/wmname.c b/wmname.c @@ -27,12 +27,12 @@ main(int argc, char **argv) { Atom netwmcheck, netwmname, utf8_string, real; if(argc > 2) - eprint("usage: setwmname [name] [-v]\n"); + eprint("usage: wmname [name] [-v]\n"); else if(argc == 2 && !strncmp(argv[1], "-v", 3)) - eprint("setwmname-"VERSION", © 2008 Anselm R Garbe\n", stdout); + eprint("wmname-"VERSION", © 2008 Anselm R Garbe\n", stdout); if(!(dpy = XOpenDisplay(0))) - eprint("setwmname: cannot open display\n"); + eprint("wmname: cannot open display\n"); root = DefaultRootWindow(dpy); netwmcheck = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False); netwmname = XInternAtom(dpy, "_NET_WM_NAME", False);