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:
|
) as live:
|
||||||
first_it = True
|
first_it = True
|
||||||
while True:
|
while True:
|
||||||
quotes = refresh_quotes()
|
try:
|
||||||
for _ in range(500):
|
quotes = refresh_quotes()
|
||||||
for q in render_quote(random.choice(quotes) if not first_it else quotes[-1]):
|
for _ in range(500):
|
||||||
live.update(q)
|
for q in render_quote(random.choice(quotes) if not first_it else quotes[-1]):
|
||||||
time.sleep(0.05)
|
live.update(q)
|
||||||
time.sleep(30)
|
time.sleep(0.05)
|
||||||
first_it = False
|
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