summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/Run/Exec.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-02-11 04:40:34 +0000
committerjao <jao@gnu.org>2025-02-11 11:58:06 +0000
commit4beda5f4d1067117f2c2786727697f79cf986244 (patch)
treed3f93ff60771e554648c05ae1a055d50b0b828a9 /src/Xmobar/Run/Exec.hs
parent7390d759240785f660cbdb0ca55898732aa12c98 (diff)
downloadxmobar-4beda5f4d1067117f2c2786727697f79cf986244.tar.gz
xmobar-4beda5f4d1067117f2c2786727697f79cf986244.tar.bz2
prototype for onClick method in Exec
Diffstat (limited to 'src/Xmobar/Run/Exec.hs')
-rw-r--r--src/Xmobar/Run/Exec.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Xmobar/Run/Exec.hs b/src/Xmobar/Run/Exec.hs
index 1879361..e5c5c8c 100644
--- a/src/Xmobar/Run/Exec.hs
+++ b/src/Xmobar/Run/Exec.hs
@@ -21,6 +21,7 @@ module Xmobar.Run.Exec (Exec (..), tenthSeconds, doEveryTenthSeconds) where
import Prelude
import Data.Char
+import Data.Word (Word32)
import Xmobar.Run.Timer (doEveryTenthSeconds, tenthSeconds)
import Xmobar.System.Signal
@@ -37,3 +38,5 @@ class Show e => Exec e where
where go = doEveryTenthSeconds (rate e) $ run e >>= cb
trigger :: e -> (Maybe SignalType -> IO ()) -> IO ()
trigger _ sh = sh Nothing
+ onClick :: e -> Word32 -> IO ()
+ onClick _ _ = return ()