diff options
author | Alexander Polakov <plhk@sdf.org> | 2013-02-07 16:08:56 +0400 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2013-03-13 21:11:46 +0100 |
commit | fcdc939572cfece0a8ce99f9164aa85f217ef369 (patch) | |
tree | 68841ad65e3e7e33ca247bd9c1ef1cb02f1428a5 /src/Signal.hs | |
parent | 8dffc6e722a58924ea65b50dc0e1471b3dd3976b (diff) | |
download | xmobar-fcdc939572cfece0a8ce99f9164aa85f217ef369.tar.gz xmobar-fcdc939572cfece0a8ce99f9164aa85f217ef369.tar.bz2 |
Introduce Actions
Actions are event re-actions.
Currently only ButtonPress event is handled by Actions and only
one action is defined, which is called Spawn (run external command).
Type (and parser) can be extended to EWMH actions (switch to desktop,
close window, whatever).
Diffstat (limited to 'src/Signal.hs')
-rw-r--r-- | src/Signal.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Signal.hs b/src/Signal.hs index 8b3b325..34d8cd7 100644 --- a/src/Signal.hs +++ b/src/Signal.hs @@ -22,6 +22,7 @@ import Data.Typeable (Typeable) import Control.Concurrent.STM import Control.Exception hiding (handle) import System.Posix.Signals +import Graphics.X11.Xlib.Types (Position) #ifdef DBUS import DBus (IsVariant(..)) @@ -40,6 +41,7 @@ data SignalType = Wakeup | Reveal Int | Toggle Int | TogglePersistent + | Action Position deriving (Read, Show) #ifdef DBUS |