Finalize configuration
This commit is contained in:
parent
eb2297554a
commit
b4f1dc76ac
@ -9,6 +9,7 @@ import random
|
|||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
START_NIGHT = "22.30"
|
START_NIGHT = "22.30"
|
||||||
START_DAY = "8.20"
|
START_DAY = "8.20"
|
||||||
PATH_SCPT_KEYBRD = "$HOME/scripts/keyboard"
|
PATH_SCPT_KEYBRD = "$HOME/scripts/keyboard"
|
||||||
@ -82,8 +83,7 @@ def lock():
|
|||||||
|
|
||||||
|
|
||||||
def pause_media():
|
def pause_media():
|
||||||
if do_query("playerctl status") == "Playing":
|
run_command("playerctl pause")
|
||||||
run_command("playerctl pause")
|
|
||||||
|
|
||||||
|
|
||||||
def get_wallpapers():
|
def get_wallpapers():
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
dt=$(date +'%d/%m/%y-%H.%M.%S')
|
dt=$(date +'%d/%m/%y-%H.%M.%S')
|
||||||
echo "[$dt] navi restarting..." >> $HOME/navi.log
|
echo "[$dt] navi restarting..." >> $HOME/navi.log
|
||||||
brightnessctl --device amdgpu_bl1 set 128
|
$HOME/scripts/modeset.py --shutdown
|
||||||
brightnessctl --device asus::kbd_backlight 1
|
|
||||||
reboot
|
reboot
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
dt=$(date +'%d/%m/%y-%H.%M.%S')
|
dt=$(date +'%d/%m/%y-%H.%M.%S')
|
||||||
echo "[$dt] navi shutting down..." >> navi.log
|
echo "[$dt] navi shutting down..." >> navi.log
|
||||||
brightnessctl set 128
|
$HOME/scripts/modeset.py --shutdown
|
||||||
brightnessctl --device asus::kbd_backlight 1
|
|
||||||
shutdown -h now
|
shutdown -h now
|
||||||
|
@ -8,7 +8,7 @@ while : ; do
|
|||||||
then
|
then
|
||||||
sleep 5
|
sleep 5
|
||||||
else
|
else
|
||||||
python $HOME/scripts/modeset2.py --unlock
|
python $HOME/scripts/modeset.py --unlock
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user