summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJochen Keil <jochen.keil@gmail.com>2012-08-08 20:01:38 +0200
committerJochen Keil <jochen.keil@gmail.com>2012-08-09 10:44:53 +0200
commitdb34ddc05fd308986a1be4140f8f8ddf14598122 (patch)
tree941e88f23da874872644462a58ce1feb20bf9e07
parent77ce9cbe7f8371aadf24713a6d700a436d983eaf (diff)
downloadxmobar-db34ddc05fd308986a1be4140f8f8ddf14598122.tar.gz
xmobar-db34ddc05fd308986a1be4140f8f8ddf14598122.tar.bz2
Add signals for {show,hid,toggl}ing
Also make them {Read,Show}able which can be useful for printf debugging and does not hurt otherwise.
-rw-r--r--src/Signal.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Signal.hs b/src/Signal.hs
index 3919d86..0acdea1 100644
--- a/src/Signal.hs
+++ b/src/Signal.hs
@@ -13,6 +13,10 @@ instance Exception WakeUp
data SignalType = Wakeup
| Reposition
| ChangeScreen
+ | Hide
+ | Reveal
+ | Toggle
+ deriving (Read, Show)
-- | Signal handling
setupSignalHandler :: IO (MVar SignalType)