From 5bc9b12ced99e942ea4eea122fb70dda7042b60c Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 8 Jun 2017 16:41:00 +0800 Subject: whitespace, config update --- scripts/x-banish | 4 ++-- x-focus-manager.c | 4 ++-- x-placement-manager.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/x-banish b/scripts/x-banish index 47208d3..df9f939 100755 --- a/scripts/x-banish +++ b/scripts/x-banish @@ -1,6 +1,6 @@ #!/bin/bash dir="${HOME}/.wm-banished" -programs_to_stop='(surf|acroread)' +programs_to_stop='(surf|acroread|firefox)' pid() { action=$1 @@ -26,7 +26,7 @@ pid() { w_id=$( xdotool search --maxdepth 1 --onlyvisible . 2>/dev/null | tail -1 ) xdotool windowunmap $w_id pid "stop" $w_id - echo "banished $(xdotool getwindowname $w_id)" | ~/bin/dmenu.sh + #echo "banished $(xdotool getwindowname $w_id)" | dmenu #~/bin/dmenu.sh touch "${dir}/${w_id}" exit 0 } diff --git a/x-focus-manager.c b/x-focus-manager.c index c1fae73..6a92235 100644 --- a/x-focus-manager.c +++ b/x-focus-manager.c @@ -32,7 +32,7 @@ static void (*handler[LASTEvent]) (Display *d, XEvent *) = { void reset_focus(Display *d, XEvent *e) { - XSetInputFocus(d, PointerRoot , RevertToPointerRoot, CurrentTime); + XSetInputFocus(d, PointerRoot, RevertToPointerRoot, CurrentTime); } void set_atoms(Display *dpy) { // from scrotwm via euclid-wm @@ -60,7 +60,7 @@ main(int argc, char **argv) { wa.cursor = XCreateFontCursor(dpy, XC_left_ptr); wa.event_mask = SubstructureNotifyMask|StructureNotifyMask; - XChangeWindowAttributes(dpy, DefaultRootWindow(dpy) , CWEventMask|CWCursor, &wa); + XChangeWindowAttributes(dpy, DefaultRootWindow(dpy), CWEventMask|CWCursor, &wa); set_atoms(dpy); for(;;) { diff --git a/x-placement-manager.c b/x-placement-manager.c index fdc1269..35a8644 100644 --- a/x-placement-manager.c +++ b/x-placement-manager.c @@ -64,7 +64,7 @@ main(int argc, char **argv) { wa.cursor = XCreateFontCursor(dpy, XC_left_ptr); wa.event_mask = SubstructureNotifyMask|StructureNotifyMask; - XChangeWindowAttributes(dpy, DefaultRootWindow(dpy) , CWEventMask|CWCursor, &wa); + XChangeWindowAttributes(dpy, DefaultRootWindow(dpy), CWEventMask|CWCursor, &wa); for(;;) { XNextEvent(dpy, &e); -- cgit v1.2.3