From 4ef3f2d6542f2d7dd11460cb8776a2bef6f8cb5d Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Wed, 1 Apr 2020 16:01:16 -0400 Subject: [PATCH] REF update readme --- README.md | 15 +++++++++------ app/Main.hs | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 605252d..d83128f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ A daemon to manage [xcape](https://github.com/alols/xcape) instances based on which app is in focus. -Xcape allows one to configure any key to send an arbitrary key upon release (for instance, the Control key can function as itself on keypress and an Escape key on key release). +Xcape allows one to configure any key to send an arbitrary key upon release (for +instance, the Control key can function as itself on keypress and an Escape key +on key release). This works beautifully except when one tries to switch to a virtual machine (VM), particularly a windows machine with an Autohotkey script to replicate the @@ -13,13 +15,14 @@ on which apps have focus. # Usage ``` -xcape-hs KEYS REGEXP [REGEXP [REGEXP] ...] +xcape-hs BINDINGS REGEXP [[REGEXP] ...] ``` -Where `KEYS` are the keys supplied to the `-e` argument of `xcape` and `REGEXP` -is a POSIX-style regular expression matching a window title for which xcape will -not be running when it is in focus. To find a window title, use the `xprop` -program and look for the `WM_NAME` and `_NET_WM_NAME` atoms in the output. +Where `BINDINGS` are the keys supplied to the `-e` argument of `xcape` and +`REGEXP` is a POSIX-style regular expression matching a window title for which +xcape will not be running when it is in focus. To find a window title, use the +`xprop` program and look for the `WM_NAME` and `_NET_WM_NAME` atoms in the +output. # Dependencies diff --git a/app/Main.hs b/app/Main.hs index 70fb1ae..34d25b5 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -94,7 +94,7 @@ parse _ = usage -- | Print the usage and exit usage :: IO () -usage = putStrLn "xman BINDINGS REGEXP [[REGEXP]...]" +usage = putStrLn "xman BINDINGS REGEXP [[REGEXP] ...]" -- | Given xcape bindings and regular expression patterns to match the window -- titles we care about, initialize the XMan monad and run the main event loop