mirror of
https://github.com/AquaMorph/dotfiles.git
synced 2025-06-02 14:31:41 +00:00
Compare commits
No commits in common. "a6f824524124d0cae7dcb06d55207cf8109d7b18" and "6f807aa72fd214e7cbeb3c56497f4f28dc70ff08" have entirely different histories.
a6f8245241
...
6f807aa72f
@ -26,7 +26,7 @@ function fixPulse() {
|
|||||||
function launchi3() {
|
function launchi3() {
|
||||||
if [ -z "$skipi3" ]; then
|
if [ -z "$skipi3" ]; then
|
||||||
echo Opening i3wm sound workspaces
|
echo Opening i3wm sound workspaces
|
||||||
sleep .1 && i3-msg 'workspace 5; exec librewolf'
|
sleep .1 && i3-msg 'workspace 5; exec firefox'
|
||||||
sleep 5.1 && python ~/bin/start-firefox.py
|
sleep 5.1 && python ~/bin/start-firefox.py
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -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 librewolf --new-window robinhood.com \
|
os.system("i3-msg 'workspace 10; exec firefox --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(windows):
|
def isPagesLoaded(firefoxWindows):
|
||||||
for w in windows:
|
for w in firefoxWindows:
|
||||||
if 'http' not in w.name:
|
if 'http' not in w.name:
|
||||||
return True
|
return True
|
||||||
return True
|
return True
|
||||||
i3 = Connection()
|
i3 = Connection()
|
||||||
windows = filterWindowsByClass('librewolf-default', getWindows(i3))
|
firefoxWindows = filterWindowsByClass('firefox', getWindows(i3))
|
||||||
|
|
||||||
while(not isPagesLoaded(windows)):
|
while(not isPagesLoaded(firefoxWindows)):
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
|
||||||
switchWorkspace('10')
|
switchWorkspace('10')
|
||||||
switchWorkspace('1')
|
switchWorkspace('1')
|
||||||
|
|
||||||
# Music
|
# Music
|
||||||
if not isProgramRunning(['music.youtube.com'], windows, '10'):
|
if not isProgramRunning(['music.youtube.com'], firefoxWindows, '10'):
|
||||||
launchProgram('librewolf --new-window music.youtube.com', '10')
|
launchProgram('firefox --new-window music.youtube.com', '10')
|
||||||
|
|
||||||
# Stocks
|
# Stocks
|
||||||
if not isProgramRunning(['Robinhood', 'Webull'], windows, '10'):
|
if not isProgramRunning(['Robinhood', 'Webull'], firefoxWindows, '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'],
|
||||||
windows, '10'):
|
firefoxWindows, '10'):
|
||||||
launchProgram('librewolf --new-window youtube.com/feed/subscriptions', '10')
|
launchProgram('firefox --new-window youtube.com/feed/subscriptions', '10')
|
||||||
launchProgram('sleep 1 && librewolf -new-tab odysee.com/$/following', '10')
|
launchProgram('sleep 1 && firefox -new-tab odysee.com/$/following', '10')
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
load_script("/home/aqua/.config/wireplumber/scripts/auto-connect-ports.lua")
|
@ -32,41 +32,6 @@ function link_port(output_port, input_port)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
function delete_link(link_om, output_port, input_port)
|
|
||||||
print("Trying to delete")
|
|
||||||
|
|
||||||
if not input_port or not output_port then
|
|
||||||
print("No ports")
|
|
||||||
return false
|
|
||||||
end
|
|
||||||
|
|
||||||
local link = link_om:lookup {
|
|
||||||
Constraint {
|
|
||||||
"link.input.node", "equals", input_port.properties["node.id"]
|
|
||||||
},
|
|
||||||
Constraint {
|
|
||||||
"link.input.port", "equals", input_port.properties["object.id"],
|
|
||||||
},
|
|
||||||
Constraint {
|
|
||||||
"link.output.node", "equals", output_port.properties["node.id"],
|
|
||||||
},
|
|
||||||
Constraint {
|
|
||||||
"link.output.port", "equals", output_port.properties["object.id"],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if not link then
|
|
||||||
|
|
||||||
print("No link!")
|
|
||||||
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
print("Deleting link!")
|
|
||||||
|
|
||||||
link:request_destroy()
|
|
||||||
end
|
|
||||||
|
|
||||||
-- Automatically link ports together by their specific audio channels.
|
-- Automatically link ports together by their specific audio channels.
|
||||||
--
|
--
|
||||||
-- ┌──────────────────┐ ┌───────────────────┐
|
-- ┌──────────────────┐ ┌───────────────────┐
|
||||||
@ -166,6 +131,9 @@ function auto_connect_ports(args)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
-- pw-cli list-objects | grep object.path
|
||||||
|
|
||||||
-- Connect to speakers
|
-- Connect to speakers
|
||||||
auto_connect_ports {
|
auto_connect_ports {
|
||||||
output = Constraint { "object.path", "matches", "speakers:*" },
|
output = Constraint { "object.path", "matches", "speakers:*" },
|
||||||
@ -176,3 +144,12 @@ auto_connect_ports {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Connect to mic
|
||||||
|
auto_connect_ports {
|
||||||
|
output = Constraint { "object.path", "matches", "alsa:pcm:2:hw:2,0:capture:*" },
|
||||||
|
input = Constraint { "object.path", "matches", "sm7b-processed:" },
|
||||||
|
connect = {
|
||||||
|
["AUX0"] = "FL",
|
||||||
|
["AUX1"] = "FR"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
wireplumber.components = [
|
|
||||||
{
|
|
||||||
name = /home/aqua/.config/wireplumber/scripts/auto-connect-ports.lua,
|
|
||||||
type = script/lua
|
|
||||||
provides = custom.my-script
|
|
||||||
}
|
|
||||||
]
|
|
||||||
|
|
||||||
wireplumber.profiles = {
|
|
||||||
main = {
|
|
||||||
custom.my-script = required
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -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-10-2020-q4-major/bin
|
GCC_PATH=~/dev/gcc-arm-none-eabi-9-2020-q2-update/bin
|
||||||
export PATH=$GCC_PATH:$PATH
|
export PATH=$GCC_PATH:$PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user