mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 16:52:12 +02:00
added a function to decrease the brightness
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
function decrease_brightness_by --argument-names amount
|
||||||
|
set --local brightness (cat /sys/class/backlight/*/brightness)
|
||||||
|
set --local brightness_increased (math $brightness - $amount)
|
||||||
|
echo $brightness_increased | sudo tee /sys/class/backlight/*/brightness > /dev/null
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user