mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-04-29 17:25:34 +00:00
Switch to Librewolf
This commit is contained in:
parent
6f807aa72f
commit
390daca277
@ -26,5 +26,5 @@ def closed():
|
|||||||
return False
|
return False
|
||||||
if (openToday() and not closed()):
|
if (openToday() and not closed()):
|
||||||
print("Open")
|
print("Open")
|
||||||
os.system("i3-msg 'workspace 10; exec firefox --new-window robinhood.com \
|
os.system("i3-msg 'workspace 10; exec librewolf --new-window robinhood.com \
|
||||||
&& sleep 1 && firefox -new-tab app.webull.com/watch'")
|
&& sleep 1 && firefox -new-tab app.webull.com/watch'")
|
||||||
|
@ -54,32 +54,32 @@ def isProgramRunning(name, windows, workspace):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
def isPagesLoaded(firefoxWindows):
|
def isPagesLoaded(windows):
|
||||||
for w in firefoxWindows:
|
for w in windows:
|
||||||
if 'http' not in w.name:
|
if 'http' not in w.name:
|
||||||
return True
|
return True
|
||||||
return True
|
return True
|
||||||
i3 = Connection()
|
i3 = Connection()
|
||||||
firefoxWindows = filterWindowsByClass('firefox', getWindows(i3))
|
windows = filterWindowsByClass('librewolf-default', getWindows(i3))
|
||||||
|
|
||||||
while(not isPagesLoaded(firefoxWindows)):
|
while(not isPagesLoaded(windows)):
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
switchWorkspace('10')
|
switchWorkspace('10')
|
||||||
switchWorkspace('1')
|
switchWorkspace('1')
|
||||||
|
|
||||||
# Music
|
# Music
|
||||||
if not isProgramRunning(['music.youtube.com'], firefoxWindows, '10'):
|
if not isProgramRunning(['music.youtube.com'], windows, '10'):
|
||||||
launchProgram('firefox --new-window music.youtube.com', '10')
|
launchProgram('librewolf --new-window music.youtube.com', '10')
|
||||||
|
|
||||||
# Stocks
|
# Stocks
|
||||||
if not isProgramRunning(['Robinhood', 'Webull'], firefoxWindows, '10'):
|
if not isProgramRunning(['Robinhood', 'Webull'], windows, '10'):
|
||||||
os.system('python ~/bin/launch-stocks-tracker.py')
|
os.system('python ~/bin/launch-stocks-tracker.py')
|
||||||
|
|
||||||
# Videos
|
# Videos
|
||||||
if not isProgramRunning(['odysee.com', 'lbry.tv', 'www.youtube.com',
|
if not isProgramRunning(['odysee.com', 'lbry.tv', 'www.youtube.com',
|
||||||
' - YouTube', 'hulu.com', 'netflix.com',
|
' - YouTube', 'hulu.com', 'netflix.com',
|
||||||
'disneyplus.com', 'tv.youtube.com'],
|
'disneyplus.com', 'tv.youtube.com'],
|
||||||
firefoxWindows, '10'):
|
windows, '10'):
|
||||||
launchProgram('firefox --new-window youtube.com/feed/subscriptions', '10')
|
launchProgram('librewolf --new-window youtube.com/feed/subscriptions', '10')
|
||||||
launchProgram('sleep 1 && firefox -new-tab odysee.com/$/following', '10')
|
launchProgram('sleep 1 && librewolf -new-tab odysee.com/$/following', '10')
|
||||||
|
@ -41,5 +41,5 @@ export TERM=xterm
|
|||||||
export EDITOR=emacs
|
export EDITOR=emacs
|
||||||
|
|
||||||
# Daisy build toolkit
|
# Daisy build toolkit
|
||||||
GCC_PATH=~/dev/gcc-arm-none-eabi-9-2020-q2-update/bin
|
GCC_PATH=~/dev/gcc-arm-none-eabi-10-2020-q4-major/bin
|
||||||
export PATH=$GCC_PATH:$PATH
|
export PATH=$GCC_PATH:$PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user