![](/static/61a827a1/assets/icons/icon-96x96.png)
![](https://lemmy.ml/pictrs/image/c0ed0a36-2496-4b4d-ac77-7d2fd7f2b5b7.png)
8·
4 months agoThis is brilliantly disgusting.
Literal interpretation of the regex
The regex matches either a line with a single character or a line with a sequence of two or more characters that’s repeated two or more times. For some examples: the regex matches “a”, “b”, “abab”, “ababab”, “aaaa”, and “bbbbbb”, but does not match “aa”, “bb”, “aaa”, “ab”, “aba”, or “ababa”.
Hint for the special thing it matches
For a line with a single character repeated n times, what does matching (or not matching) this regex say about the number n?
wl-gammarelay-rs has worked for me. This is a daemon controlled through dbus, but there are some applets listed in the readme as well as a script in the repo for adjusting based on the time of day.