DEV Community

Discussion on: Fish Shell: Functions

Collapse
 
tarikwaleed profile image
Tarik Waleed

Thanks for this great tutorial.
here is a function i created to change the brightness of the laptop from the command line(tested on Ubuntu)

function dim --argument value
    echo $value | sudo tee /sys/class/backlight/intel_backlight/brightness
end
Enter fullscreen mode Exit fullscreen mode