From e3adda6dcd8b07732a745bb1323330fc83330262 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 14 Mar 2014 22:59:32 +0100 Subject: improve xmonad example by having the dimming of monitors being workspace dependent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/xmonad | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/xmonad b/examples/xmonad index 061d241..dfac44b 100644 --- a/examples/xmonad +++ b/examples/xmonad @@ -51,7 +51,8 @@ _ = 5000 temperatures = [_, _, _, _, _, _, _, 3000, 6500] # Additional brightness modifier for monitors there the rat is not located. -non_rat_brightness = 0.8 +_ = 0.8 +non_rat_brightness = [_, _, _, _, _, _, _, _, 1] wait_period = 0.2 # TODO it is better to wait for updates @@ -173,7 +174,7 @@ def periodically(year, month, day, hour, minute, second, weekday, fade): monitor += 1 start_over() - cie_brightness(brightnesses[workspace] * (1 if rat == monitor else non_rat_brightness)) + cie_brightness(brightnesses[workspace] * (1 if rat == monitor else non_rat_brightness[workspace])) temperature(temperatures[workspace], lambda t : divide_by_maximum(cmf_10deg(t))) gamma(*gammas[monitor]) -- cgit v1.2.3-70-g09d2