stuff and things

This commit is contained in:
Crispy 2022-05-28 14:13:11 +02:00
parent 19059fd75a
commit 7e9daa986f
4 changed files with 11 additions and 8 deletions

View file

@ -16,7 +16,6 @@ def delay(seconds=30):
time.sleep(0.1) time.sleep(0.1)
def scan(): def scan():
print("scanning")
date = datetime.datetime.now() date = datetime.datetime.now()
month = f"{date.year}-{date.month:02d}/" month = f"{date.year}-{date.month:02d}/"
path = ROOT_DIR + month path = ROOT_DIR + month
@ -29,7 +28,9 @@ def scan():
# input(f) # input(f)
call(f"convert {f} temp.{f}", cwd=path, shell=True) call(f"convert {f} temp.{f}", cwd=path, shell=True)
call(f"mv temp.{f} {f}", cwd=path, shell=True) call(f"mv temp.{f} {f}", cwd=path, shell=True)
print(f"compressed {f}")
PROCESSED.append(f) PROCESSED.append(f)
print("done")
while True: while True:
scan() scan()

View file

@ -28,6 +28,6 @@ os.system("killall vrmonitor")
time.sleep(2) time.sleep(2)
# start steamvr # start steamvr
os.system("steam steam://rungameid/250820") os.system("steam steam://rungameid/250820")
time.sleep(7)
# start vrchat # start vrchat
os.system("steam steam://rungameid/438100") # time.sleep(7)
# os.system("steam steam://rungameid/438100")

View file

@ -0,0 +1,7 @@
# vrchat launch options
## using script from this repo:
`$(python3 /home/crispypin/dotfiles/scripts/vrc-monitor.py) & touch /tmp/VRC_RUNNING && PROTON_LOG=1 PROTON_LOG_DIR=/tmp %command% --melonloader.hideconsole && rm /tmp/VRC_RUNNING`
## simple standalone:
`$(sleep 150 && notify-send "Gaming time?" "VRChat was launched 150s ago" --icon /home/crispypin/pictures/emotes/screech.gif) & PROTON_LOG=1 PROTON_LOG_DIR=/tmp %command% --melonloader.hideconsole`

View file

@ -1,5 +0,0 @@
# uses script from this repo
$(python3 /home/crispypin/dotfiles/scripts/vrc-monitor.py) & touch /tmp/VRC_RUNNING && PROTON_LOG=1 PROTON_LOG_DIR=/tmp %command% --melonloader.hideconsole && rm /tmp/VRC_RUNNING
# simple, standalone:
$(sleep 150 && notify-send "Gaming time?" "VRChat was launched 150s ago" --icon /home/crispypin/pictures/emotes/screech.gif) & PROTON_LOG=1 PROTON_LOG_DIR=/tmp %command% --melonloader.hideconsole