2023-04-01 02:25:14 +00:00
|
|
|
#!/bin/bash
|
2023-10-23 22:44:47 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
2023-04-01 02:25:14 +00:00
|
|
|
# Copyright (C) 2021-present Fewtarius (https://github.com/fewtarius)
|
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
|
|
|
|
# Configure default contrast saturation and hue values
|
|
|
|
for PROPERTY in brightness contrast saturation hue
|
|
|
|
do
|
|
|
|
MYVAL=$(get_setting display.${PROPERTY})
|
|
|
|
if [ -z "${MYVAL}" ]
|
|
|
|
then
|
|
|
|
MYVAL=$(drm_tool list | sed -n '/Connector: 133/,$p' | awk '/'${PROPERTY}'/ {print $5}')
|
|
|
|
fi
|
2023-05-12 19:37:53 +00:00
|
|
|
paneladj ${PROPERTY} ${MYVAL}
|
2023-04-01 02:25:14 +00:00
|
|
|
done
|