aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/chrome/xor-barcode.kdl
blob: 6038fd70f57fa2468737b8a1749551fdc19abd34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// xor barcode — chrome
//
// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
//     states { bell { ... } }
//
// The top rule only, where the title sits: four brightnesses out of two bits of
// `x ^ clock`, which slides the whole barcode sideways a character at a time.
// `y == 0` picks the rule out and leaves the rest of the frame alone, so this
// stacks with anything that lights the sides.

shaders {
    tint where="chrome" channel="fg" color="#ffcc00" amount="(y == 0) * ((x ^ t / 90) & 3) * 60"
}