Configure system to restore brightness level to previous value on reboot
This commit is contained in:
parent
6988751a83
commit
09e4fe531e
|
@ -0,0 +1,3 @@
|
|||
grep -q '^display.brightness=' /etc/wsconsctl.conf &&
|
||||
sed -i "s/^display.brightness=.*/$(wsconsctl display.brightness)/" /etc/wsconsctl.conf ||
|
||||
wsconsctl display.brightness >> /etc/wsconsctl.conf
|
3
setup.sh
3
setup.sh
|
@ -49,6 +49,9 @@ doas cp xenodm.Xresources /etc/X11/xenodm/Xresources
|
|||
doas cp xenodm.Xsetup_0 /etc/X11/xenodm/Xsetup_0
|
||||
echo "pkill xmessage" | cat - /etc/X11/xenodm/GiveConsole > /etc/X11/xenodm/GiveConsole
|
||||
|
||||
echo "Copying rc.shutdown -> /etc/"
|
||||
doas cp rc.shutdown /etc/
|
||||
|
||||
groups="staff,_shutdown"
|
||||
echo "Adding user $USER to groups: $groups"
|
||||
doas usermod -G $groups jbauer
|
||||
|
|
|
@ -25,4 +25,3 @@ done) &
|
|||
|
||||
# Message with OS and release number
|
||||
xmessage -geometry +850-0 -buttons "" "($(uname -sr))" &
|
||||
xbacklight -set 10
|
||||
|
|
Loading…
Reference in New Issue