Desktop Brightness Control - shell-ninja/hyprconf GitHub Wiki
Info
In this configuration, you can change your brightness also. If you run the Installation script, it will automatically set the environment for you. If you Copy only the dotfiles, you need to follow some steps to achieve this feature.
packages
You'll require ddcutil package for it. Just install this package using your package manager.
- For Arch and Arch based distros:
sudo pacman -S ddcutil
- For Fedora and Fedora based distros:
sudo dnf install ddcutil
Setup
- Now run these commands one by one:
sudo modprobe i2c-dev
echo i2c-dev | sudo tee /etc/modules-load.d/i2c.conf
sudo usermod -aG i2c $USER
- Now run this command. If you see your monitor info, then it was configured successfully.
ddcutil detect
Script
Now update the hyprconf dotfiles in your system. Press Super + CTRL + U and continue the process. If you have made any changes to the dotfiles and don't want to perform a full update, just copy this into your ~/.config/hypr/scripts/brightness.sh script.