add brightness and stuff

This commit is contained in:
randomuser 2022-07-07 23:03:24 -05:00
parent 555b570d1d
commit c2073a8440
2 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@ sh:
cp -f sh/net $(DESTDIR)$(PREFIX)/bin
cp -f sh/bspwm-toggle-gaps $(DESTDIR)$(PREFIX)/bin
cp -f sh/machine $(DESTDIR)$(PREFIX)/bin
cp -f sh/brightness $(DESTDIR)$(PREFIX)/bin
check:
shellcheck sh/*

4
sh/brightness Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
brightness=$(printf "250\n500\n1000\n2000\n3000\n4000\n" | tmenu)
st -c st-gpg-menu -e sh -c "sudo sh -c \"echo $brightness >> /sys/class/backlight/intel_backlight/brightness\""