dotfiles/dot_config/i3/executable_backlight_system.sh
2023-01-30 14:28:59 +01:00

4 lines
228 B
Bash

#!/bin/bash
set -x
if lspci | grep -e VGA -e 3D -m 1 | grep AMD; then echo $1 | sudo tee --append /sys/class/backlight/amdgpu_bl*/brightness; else echo $2 | sudo tee --append /sys/class/backlight/intel_backlight/brightness; fi