updates
This commit is contained in:
parent
62359a59d0
commit
774ead6705
3 changed files with 12 additions and 15 deletions
|
@ -1,5 +0,0 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Quotes
|
||||
Exec=alacritty -e ~/quotes_display/start.sh
|
||||
Hidden=true
|
19
quotes.py
19
quotes.py
|
@ -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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
pkill i3
|
||||
kill -HUP $(pgrep -t tty1 bash)
|
Loading…
Reference in a new issue