From 3079f1aab2a82e5a22857ec386ad642b3a62d06b Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Thu, 15 Sep 2011 23:07:37 +0200 Subject: NEWS/README update --- README | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README') diff --git a/README b/README index caaa882..11c94d2 100644 --- a/README +++ b/README @@ -144,6 +144,14 @@ or if you have the default configuration file saved as `~/.xmobarrc` +### Signal Handling + +Since 0.14 xmobar reacts to SIGHUP and SIGUSR1: + +- After receiving SIGHUP xmobar moves its position to the next screen. + +- After receiving SIGUSR1 xmobar repositions it self on the current screen. + Configuration ============= -- cgit v1.2.3 From 8833a8166387075d75ee15690a58cbd2aacf2a67 Mon Sep 17 00:00:00 2001 From: Martin Perner Date: Fri, 16 Sep 2011 13:13:47 +0200 Subject: Changes signals used Switches HUP to USR1 and USR1 to USR2, as requested --- README | 6 +++--- src/Xmobar.hs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'README') diff --git a/README b/README index 11c94d2..55254a6 100644 --- a/README +++ b/README @@ -146,11 +146,11 @@ if you have the default configuration file saved as `~/.xmobarrc` ### Signal Handling -Since 0.14 xmobar reacts to SIGHUP and SIGUSR1: +Since 0.14 xmobar reacts to SIGUSR1 and SIGUSR2: -- After receiving SIGHUP xmobar moves its position to the next screen. +- After receiving SIGUSR1 xmobar moves its position to the next screen. -- After receiving SIGUSR1 xmobar repositions it self on the current screen. +- After receiving SIGUSR2 xmobar repositions it self on the current screen. Configuration ============= diff --git a/src/Xmobar.hs b/src/Xmobar.hs index c107d46..37fd653 100644 --- a/src/Xmobar.hs +++ b/src/Xmobar.hs @@ -150,8 +150,8 @@ eventLoop xcfg@(XConf d _ w fs _) vs = do setupSignalHandler :: IO (MVar SignalType) setupSignalHandler = do tid <- newEmptyMVar - installHandler sigUSR1 (Catch $ updatePosHandler tid) Nothing - installHandler sigHUP (Catch $ changeScreenHandler tid) Nothing + installHandler sigUSR2 (Catch $ updatePosHandler tid) Nothing + installHandler sigUSR1 (Catch $ changeScreenHandler tid) Nothing return tid updatePosHandler :: MVar SignalType -> IO () -- cgit v1.2.3