mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 15:42:14 +02:00
added a function to increase the brightness
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
function increase_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