1
0
mirror of https://github.com/AquaMorph/dotfiles.git synced 2025-05-24 02:36:58 +00:00

Firefox startup delay

This commit is contained in:
Christian Colglazier 2022-09-02 20:26:19 -04:00
parent 4a2341ce6f
commit 4a369196c9

@ -53,8 +53,18 @@ def isProgramRunning(name, windows, workspace):
return True
return False
def isPagesLoaded(firefoxWindows):
for w in firefoxWindows:
if 'http' not in w.name:
return True
return True
i3 = Connection()
firefoxWindows = filterWindowsByClass('Firefox', getWindows(i3))
firefoxWindows = filterWindowsByClass('firefox', getWindows(i3))
while(not isPagesLoaded(firefoxWindows)):
time.sleep(0.1)
switchWorkspace('10')
switchWorkspace('1')