This commit is contained in:
Digital Studium 2024-03-02 17:56:52 +03:00
parent cebe457134
commit 8c88a4cea6
2 changed files with 4 additions and 2 deletions

View File

@ -90,3 +90,5 @@ echo "firefox &" >> $HOME/.dwm/autostart.sh
echo "telegram-desktop &" >> $HOME/.dwm/autostart.sh echo "telegram-desktop &" >> $HOME/.dwm/autostart.sh
echo "st &" >> $HOME/.dwm/autostart.sh echo "st &" >> $HOME/.dwm/autostart.sh
chmod +x $HOME/.dwm/autostart.sh chmod +x $HOME/.dwm/autostart.sh
sudo timedatectl set-timezone Europe/Moscow

View File

@ -8,10 +8,10 @@ if (( $H >= 0 && $H <= 7 )); then
elif (( $H > 7 && $H <= 10 )); then elif (( $H > 7 && $H <= 10 )); then
/usr/bin/xrandr --output eDP --brightness .5 /usr/bin/xrandr --output eDP --brightness .5
sudo /usr/bin/brightnessctl --device='asus::kbd_backlight' set 1 sudo /usr/bin/brightnessctl --device='asus::kbd_backlight' set 1
elif (( $H > 10 && $H <= 19 )); then elif (( $H > 10 && $H < 17 )); then
/usr/bin/xrandr --output eDP --brightness .7 /usr/bin/xrandr --output eDP --brightness .7
sudo /usr/bin/brightnessctl --device='asus::kbd_backlight' set 0 sudo /usr/bin/brightnessctl --device='asus::kbd_backlight' set 0
elif (( $H > 19 && $H <= 22 )); then elif (( $H >= 17 && $H <= 22 )); then
/usr/bin/xrandr --output eDP --brightness .5 /usr/bin/xrandr --output eDP --brightness .5
sudo /usr/bin/brightnessctl --device='asus::kbd_backlight' set 1 sudo /usr/bin/brightnessctl --device='asus::kbd_backlight' set 1
elif (( $H > 22 && $H <= 23 )); then elif (( $H > 22 && $H <= 23 )); then