92 lines
2.0 KiB
Lua
92 lines
2.0 KiB
Lua
local function exit_submap()
|
|
hl.dispatch(hl.dsp.submap("reset"))
|
|
end
|
|
|
|
hl.define_submap("launch", function()
|
|
-- Librewolf
|
|
hl.bind("l", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("librewolf"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Steam
|
|
hl.bind("s", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("steam"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Discord
|
|
hl.bind("d", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("vesktop"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Kitty
|
|
hl.bind("k", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("kitty"))
|
|
exit_submap()
|
|
end)
|
|
hl.bind("Return", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("kitty"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Filezilla
|
|
hl.bind("f", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("filezilla"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Thunderbird
|
|
hl.bind("t", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("thunderbird"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Zathura
|
|
hl.bind("z", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("zathura"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Brave
|
|
hl.bind("Shift + B", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("brave"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- bsmanager
|
|
hl.bind("b", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("/opt/bs-manager/bs-manager"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- ALVR
|
|
hl.bind("p", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("alvr_dashboard"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Qalculate
|
|
hl.bind("c", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("qalculate-qt"))
|
|
exit_submap()
|
|
end)
|
|
|
|
-- AirPlay
|
|
hl.bind("a", function()
|
|
hl.dispatch(hl.dsp.exec_cmd("notify-send 'AirPlay server is starting...' --app-name='AirPlay Video'"))
|
|
hl.dispatch(
|
|
hl.dsp.exec_cmd(
|
|
"terminator -T 'hiddent'terminator' -e 'systemctl start avahi-daemon' && sleep 5 && uxplay -n LinuxVideoplay -nh"
|
|
)
|
|
)
|
|
exit_submap()
|
|
end)
|
|
|
|
-- Escape
|
|
hl.bind("Escape", function()
|
|
exit_submap()
|
|
end)
|
|
end)
|