diff --git a/timer.py b/timer.py index 57f26c3..459ffd3 100755 --- a/timer.py +++ b/timer.py @@ -3,6 +3,7 @@ import datetime from tkinter import Tk, CENTER, Label import click import typing as t +import os DELTASECONDS = "+%Ss" DELTAMINUTES = "+%Mm" @@ -83,7 +84,8 @@ def main(enddate): root.bind("", resize) root.bind("", lambda x: root.destroy()) root.after(1, update) - root.wm_attributes("-type", "splash") + if os.environ.get("XDG_CURRENT_DESKTOP", "") == "i3": + root.wm_attributes("-type", "splash") root.mainloop()