diff --git a/modeset.py b/modeset.py index 301b84b..120612e 100755 --- a/modeset.py +++ b/modeset.py @@ -9,6 +9,7 @@ import random import sys import os + START_NIGHT = "22.30" START_DAY = "8.20" PATH_SCPT_KEYBRD = "$HOME/scripts/keyboard" @@ -82,8 +83,7 @@ def lock(): def pause_media(): - if do_query("playerctl status") == "Playing": - run_command("playerctl pause") + run_command("playerctl pause") def get_wallpapers(): diff --git a/reboot.sh b/reboot.sh index 17e6c37..fd0d1cf 100644 --- a/reboot.sh +++ b/reboot.sh @@ -1,6 +1,5 @@ #!/usr/bin/env bash dt=$(date +'%d/%m/%y-%H.%M.%S') echo "[$dt] navi restarting..." >> $HOME/navi.log -brightnessctl --device amdgpu_bl1 set 128 -brightnessctl --device asus::kbd_backlight 1 +$HOME/scripts/modeset.py --shutdown reboot diff --git a/shutdown.sh b/shutdown.sh index dad86b8..ea552b1 100755 --- a/shutdown.sh +++ b/shutdown.sh @@ -1,6 +1,5 @@ #!/bin/bash dt=$(date +'%d/%m/%y-%H.%M.%S') echo "[$dt] navi shutting down..." >> navi.log -brightnessctl set 128 -brightnessctl --device asus::kbd_backlight 1 +$HOME/scripts/modeset.py --shutdown shutdown -h now diff --git a/wait_unlock.sh b/wait_unlock.sh index 92fc6a6..752bcb5 100755 --- a/wait_unlock.sh +++ b/wait_unlock.sh @@ -8,7 +8,7 @@ while : ; do then sleep 5 else - python $HOME/scripts/modeset2.py --unlock + python $HOME/scripts/modeset.py --unlock break fi done