From 6aefd6bd92bf957556d42003ec5f085c3dd11e88 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 28 Jan 2024 21:19:21 +0100 Subject: [PATCH] Update pomo directory --- .bin/pomo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.bin/pomo b/.bin/pomo index dd36778..29cb71a 100755 --- a/.bin/pomo +++ b/.bin/pomo @@ -17,8 +17,8 @@ from plyer import notification @atexit.register def clear(): - os.system('rm /tmp/pomo') - + if os.path.exists('/home/h/.local/share/pomo'): + os.remove('/home/h/.local/share/pomo') def format_mins_secs(mins, secs): return f"{mins:02d}:{secs:02d}" @@ -30,7 +30,7 @@ def make_countdown(): mins = duration // 60 secs = duration % 60 time_str = format_mins_secs(mins, secs) - os.system(f'echo -n "{time_str}" > /tmp/pomo') + os.system(f'echo -n "{time_str}" > /home/h/.local/share/pomo') sleep(1) duration -= 1 return countdown