It's just a visual thing in the script, but switching the if statement for a case statement.
Ah, you've chosen the values based on brightness jumps in your screen? The reason I said 33 and 66 is because those are approximately ⅓ and ⅔ of 100 ✌️😅
It's just a visual thing in the script, but switching the if statement for a case statement.
Ah, you've chosen the values based on brightness jumps in your screen? The reason I said 33 and 66 is because those are approximately ⅓ and ⅔ of 100 ✌️😅
thanks for the feedback, i will keep that in mind.. ..and yes, my screen has non-linear jumps in brightness, but at least it's super-easy to adjust those values on a per-laptop basis
so far i've kept an if statement, but i did simplify and clean this up a bit..
https://git.sr.ht/~e33io/dotfiles/tree/main/item/.local/bin/brightness.sh