This commit is contained in:
unknown 2024-10-09 19:37:06 +02:00
parent 62359a59d0
commit 774ead6705
3 changed files with 12 additions and 15 deletions

View file

@ -1,5 +0,0 @@
[Desktop Entry]
Type=Application
Name=Quotes
Exec=alacritty -e ~/quotes_display/start.sh
Hidden=true

View file

@ -59,10 +59,15 @@ with Live(
) as live:
first_it = True
while True:
quotes = refresh_quotes()
for _ in range(500):
for q in render_quote(random.choice(quotes) if not first_it else quotes[-1]):
live.update(q)
time.sleep(0.05)
time.sleep(30)
first_it = False
try:
quotes = refresh_quotes()
for _ in range(500):
for q in render_quote(random.choice(quotes) if not first_it else quotes[-1]):
live.update(q)
time.sleep(0.05)
time.sleep(30)
first_it = False
except KeyboardInterrupt:
# Ctrl-C reloads, kill me with Ctrl-\
first_it = True
pass

View file

@ -1,3 +0,0 @@
#!/bin/bash
pkill i3
kill -HUP $(pgrep -t tty1 bash)