(Unfortunately I've so far only been able to test this on one terminal)
It looks to me that the comparison value used in the is_dark_rgb function is wrong.
The RGB values returned from my terminal (iTerm2) are all between 0x00 and 0xff and therefore R+B+G is always smaller then (.6 * (0xffff * 3)) leading to the script always reporting dark mode.
(Unfortunately I've so far only been able to test this on one terminal)
It looks to me that the comparison value used in the
is_dark_rgb
function is wrong.The RGB values returned from my terminal (iTerm2) are all between
0x00
and0xff
and thereforeR+B+G
is always smaller then(.6 * (0xffff * 3))
leading to the script always reporting dark mode.