summaryrefslogtreecommitdiffstats
path: root/examples/xmonad
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-14 22:59:32 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-14 22:59:32 +0100
commite3adda6dcd8b07732a745bb1323330fc83330262 (patch)
tree49af7af01e89dd95363b20eb9a16e4913a64268c /examples/xmonad
parentderp (diff)
downloadblueshift-e3adda6dcd8b07732a745bb1323330fc83330262.tar.gz
blueshift-e3adda6dcd8b07732a745bb1323330fc83330262.tar.bz2
blueshift-e3adda6dcd8b07732a745bb1323330fc83330262.tar.xz
improve xmonad example by having the dimming of monitors being workspace dependent
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/xmonad')
-rw-r--r--examples/xmonad5
1 files 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])