only add splash attribute under i3
This commit is contained in:
parent
bc57724197
commit
a52e4c23f3
2
timer.py
2
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,6 +84,7 @@ def main(enddate):
|
||||
root.bind("<Configure>", resize)
|
||||
root.bind("<Escape>", lambda x: root.destroy())
|
||||
root.after(1, update)
|
||||
if os.environ.get("XDG_CURRENT_DESKTOP", "") == "i3":
|
||||
root.wm_attributes("-type", "splash")
|
||||
root.mainloop()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user